allow uncategorized category in 2 more spots (hamburger and drop down)

This commit is contained in:
Sam 2013-10-28 08:39:55 +11:00
parent c77a20eea5
commit 88ccd287b4
2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{{#if category}} {{#if category}}
{{boundCategoryLink category}} {{boundCategoryLink category allowUncategorized=true}}
{{else}} {{else}}
<a href='/' class='badge-category home' {{bindAttr style="badgeStyle"}}><i class='icon icon-home'></i></a> <a href='/' class='badge-category home' {{bindAttr style="badgeStyle"}}><i class='icon icon-home'></i></a>
{{/if}} {{/if}}
@ -7,8 +7,6 @@
{{#if categories}} {{#if categories}}
<a href='#' {{action expand}} class='badge-category category-dropdown-button' {{bindAttr style="badgeStyle"}}><i {{bindAttr class="iconClass"}}></i></a> <a href='#' {{action expand}} class='badge-category category-dropdown-button' {{bindAttr style="badgeStyle"}}><i {{bindAttr class="iconClass"}}></i></a>
<section {{bindAttr class="expanded::hidden :category-dropdown-menu"}} class='chooser'> <section {{bindAttr class="expanded::hidden :category-dropdown-menu"}} class='chooser'>
{{#each categories}} {{#each categories}}<div class='cat'>{{categoryLink this allowUncategorized=true}}</div>{{/each}}
<div class='cat'>{{categoryLink this}}</div>
{{/each}}
</section> </section>
{{/if}} {{/if}}

View File

@ -144,7 +144,7 @@
{{#each categories}} {{#each categories}}
<li class='category'> <li class='category'>
{{categoryLink this}} {{categoryLink this allowUncategorized=true}}
<b>{{unbound topic_count}}</b></a> <b>{{unbound topic_count}}</b></a>
</li> </li>
{{/each}} {{/each}}