Category boxes with feature topics will show pins and locks as bullet for pinned and closed/archived topics
This commit is contained in:
parent
df246c79b6
commit
2836d548fb
|
@ -0,0 +1,14 @@
|
|||
import computed from 'ember-addons/ember-computed-decorators';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
tagName: "li",
|
||||
classNameBindings: ['topicStatusIcon'],
|
||||
|
||||
@computed('topic.pinned', 'topic.closed', 'topic.archived')
|
||||
topicStatusIcon() {
|
||||
if(this.get('topic.pinned')) { return 'topic-pinned'; }
|
||||
if(this.get('topic.closed')) { return 'topic-closed'; }
|
||||
if(this.get('topic.archived')) { return 'topic-archived'; }
|
||||
return 'topic-open';
|
||||
}
|
||||
});
|
|
@ -0,0 +1,3 @@
|
|||
<a class='title' href="{{unbound topic.lastUnreadUrl}}">
|
||||
{{text-overflow class="overflow" text=topic.fancyTitle}}
|
||||
</a>
|
|
@ -20,11 +20,7 @@
|
|||
{{#if c.topics}}
|
||||
<ul>
|
||||
{{#each c.topics as |topic|}}
|
||||
<li>
|
||||
<a class='title' href="{{unbound topic.lastUnreadUrl}}">
|
||||
{{text-overflow class="overflow" text=topic.fancyTitle}}
|
||||
</a>
|
||||
</li>
|
||||
{{categories-boxes-topic topic=topic}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/if}}
|
||||
|
|
|
@ -309,5 +309,7 @@
|
|||
float: left;
|
||||
margin-left: -1.5em;
|
||||
}
|
||||
li.topic-pinned:before { content: '\f08d'; }
|
||||
li.topic-closed:before, li.topic-archived:before { content: '\f023'; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue