Merge pull request #3083 from cpradio/pr-add-class-to-gutter-links

UX: Add class to gutter links so you can infer if they are inbound or outbound using CSS
This commit is contained in:
Robin Ward 2015-01-08 17:35:25 -05:00
commit 7124456ae4

View File

@ -37,11 +37,11 @@ export default Em.Component.extend(StringBuffer, {
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));