mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 06:43:45 +08:00
Merge pull request #5605 from nbianca/favorites
Added the required hooks for discourse-favorites plugin.
This commit is contained in:
commit
9f5bc7a5ee
|
@ -0,0 +1,3 @@
|
|||
export default Ember.Component.extend({
|
||||
tagName: ''
|
||||
});
|
|
@ -11,6 +11,7 @@
|
|||
{{#if c.read_restricted}}
|
||||
{{d-icon 'lock'}}
|
||||
{{/if}}
|
||||
{{category-title-before category=c}}
|
||||
{{c.name}}
|
||||
</h3>
|
||||
</a>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{{plugin-outlet name="category-title-before" noTags=true args=(hash category=category)}}
|
|
@ -1,3 +1,4 @@
|
|||
{{category-title-before category=category}}
|
||||
<a class="category-title-link" href={{category.url}}>
|
||||
{{#if category.read_restricted}}
|
||||
{{d-icon 'lock'}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user