mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
UX: Add class to gutter links so you can infer if they are inbound or outbound using CSS
This commit is contained in:
parent
da4e19af5b
commit
fdfde22d0b
1 changed files with 3 additions and 3 deletions
|
@ -33,11 +33,11 @@ export default Em.Component.extend({
|
|||
|
||||
buffer.push("<ul class='post-links'>");
|
||||
toRender.forEach(function(l) {
|
||||
var direction = Em.get(l, 'reflection') ? 'left' : 'right',
|
||||
var direction = Em.get(l, 'reflection') ? 'inbound' : 'outbound',
|
||||
clicks = Em.get(l, 'clicks');
|
||||
|
||||
buffer.push("<li><a href='" + Em.get(l, 'url') + "' class='track-link'>");
|
||||
/* suppress both left and right arrow for now */
|
||||
buffer.push("<li><a href='" + Em.get(l, 'url') + "' class='track-link " + direction + "'>");
|
||||
|
||||
var title = Em.get(l, 'title');
|
||||
if (!Em.isEmpty(title)) {
|
||||
buffer.push(Handlebars.Utils.escapeExpression(title));
|
||||
|
|
Loading…
Reference in a new issue