mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
UX: suppress outgoing right arrow on gutter links
This commit is contained in:
parent
107cffcc84
commit
9b2e850553
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user