mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 08:45:26 +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}}
|
{{#if c.read_restricted}}
|
||||||
{{d-icon 'lock'}}
|
{{d-icon 'lock'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{category-title-before category=c}}
|
||||||
{{c.name}}
|
{{c.name}}
|
||||||
</h3>
|
</h3>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
<div class='subcategories'>
|
<div class='subcategories'>
|
||||||
{{#each c.subcategories as |s|}}
|
{{#each c.subcategories as |s|}}
|
||||||
<span class='subcategory'>
|
<span class='subcategory'>
|
||||||
|
{{category-title-before category=s}}
|
||||||
{{category-link s hideParent="true"}}
|
{{category-link s hideParent="true"}}
|
||||||
{{category-unread category=s}}
|
{{category-unread category=s}}
|
||||||
</span>
|
</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}}>
|
<a class="category-title-link" href={{category.url}}>
|
||||||
{{#if category.read_restricted}}
|
{{#if category.read_restricted}}
|
||||||
{{d-icon 'lock'}}
|
{{d-icon 'lock'}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user