Merge pull request #5605 from nbianca/favorites

Added the required hooks for discourse-favorites plugin.
This commit is contained in:
Guo Xiang Tan 2018-02-23 07:12:09 +08:00 committed by GitHub
commit 9f5bc7a5ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export default Ember.Component.extend({
tagName: ''
});

View File

@ -11,6 +11,7 @@
{{#if c.read_restricted}}
{{d-icon 'lock'}}
{{/if}}
{{category-title-before category=c}}
{{c.name}}
</h3>
</a>

View File

@ -24,6 +24,7 @@
<div class='subcategories'>
{{#each c.subcategories as |s|}}
<span class='subcategory'>
{{category-title-before category=s}}
{{category-link s hideParent="true"}}
{{category-unread category=s}}
</span>

View File

@ -0,0 +1 @@
{{plugin-outlet name="category-title-before" noTags=true args=(hash category=category)}}

View File

@ -1,3 +1,4 @@
{{category-title-before category=category}}
<a class="category-title-link" href={{category.url}}>
{{#if category.read_restricted}}
{{d-icon 'lock'}}