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
|
@ -33,11 +33,11 @@ export default Em.Component.extend({
|
||||||
|
|
||||||
buffer.push("<ul class='post-links'>");
|
buffer.push("<ul class='post-links'>");
|
||||||
toRender.forEach(function(l) {
|
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');
|
clicks = Em.get(l, 'clicks');
|
||||||
|
|
||||||
buffer.push("<li><a href='" + Em.get(l, 'url') + "' class='track-link'>");
|
buffer.push("<li><a href='" + Em.get(l, 'url') + "' class='track-link " + direction + "'>");
|
||||||
/* suppress both left and right arrow for now */
|
|
||||||
var title = Em.get(l, 'title');
|
var title = Em.get(l, 'title');
|
||||||
if (!Em.isEmpty(title)) {
|
if (!Em.isEmpty(title)) {
|
||||||
buffer.push(Handlebars.Utils.escapeExpression(title));
|
buffer.push(Handlebars.Utils.escapeExpression(title));
|
||||||
|
|
Loading…
Reference in New Issue