UX: suppress outgoing right arrow on gutter links

This commit is contained in:
Jeff Atwood 2014-09-08 01:15:40 -07:00
parent 107cffcc84
commit 9b2e850553
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ export default Em.Component.extend({
clicks = Em.get(l, 'clicks');
buffer.push("<li><a href='" + Em.get(l, 'url') + "' class='track-link'>");
buffer.push("<i class='fa fa-arrow-" + direction + "'></i>");
/* suppress right arrow as it is the common, expected case */
if (direction == 'left') {
buffer.push("<i class='fa fa-arrow-" + direction + "'></i>");
}
var title = Em.get(l, 'title');
if (!Em.isEmpty(title)) {
buffer.push(Handlebars.Utils.escapeExpression(title));