PERF: split out category column rendering
This commit is contained in:
parent
e11f73889a
commit
09f6011bbd
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{{#unless hideCategory}}
|
||||
<td class='category'>{{category-link "category" showParent=true}}</td>
|
||||
{{/unless}}
|
|
@ -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"}}
|
||||
|
|
Loading…
Reference in New Issue