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:
commit
7124456ae4
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue