mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:29:35 +08:00
Added the required hooks for discourse-favorites plugin.
This commit is contained in:
parent
6b67192d99
commit
184d521fc9
|
@ -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