PERF: split out category column rendering

This commit is contained in:
Sam 2014-10-28 14:56:11 +11:00
parent e11f73889a
commit 09f6011bbd
3 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ Handlebars.registerHelper('handlebars', function(property, options) {
if(params) {
for(var prop in params){
params[prop] = Em.Handlebars.get(this, params[prop]) || params[prop];
params[prop] = Em.Handlebars.get(this, params[prop]);
}
}

View File

@ -0,0 +1,3 @@
{{#unless hideCategory}}
<td class='category'>{{category-link "category" showParent=true}}</td>
{{/unless}}

View File

@ -27,10 +27,7 @@
{{/if}}
</td>
{{#unless hideCategory}}
<td class='category'>{{bound-category-link category showParent=true}}</td>
{{/unless}}
{{handlebars 'list/category_column' hideCategory=hideCategory category=category}}
{{handlebars 'list/posters_column' posters=posters}}
{{posts-count-column topic=model class="num" action="showTopicEntrance"}}