Uncategorized doesn't have a topic url

This commit is contained in:
Robin Ward 2013-02-22 14:33:43 -05:00
parent 2d5cddc1b4
commit c3ba7b9741
1 changed files with 7 additions and 2 deletions

View File

@ -8,9 +8,14 @@
{{#if view.category.description}}
{{view.category.description}}
<a href="#" {{action showCategoryTopic target="view"}}>{{i18n category.change_in_category_topic}}</a>
{{#if view.category.topic_url}}
<a href="#" {{action showCategoryTopic target="view"}}>{{i18n category.change_in_category_topic}}</a>
{{/if}}
{{else}}
{{i18n category.no_description}} <a {{action showCategoryTopic target="view"}} href="#">{{i18n category.change_in_category_topic}}</a>
{{i18n category.no_description}}
{{#if view.category.topic_url}}
<a {{action showCategoryTopic target="view"}} href="#">{{i18n category.change_in_category_topic}}</a>
{{/if}}}
{{/if}}
</div>