Removed many unnecessary controller. uses in templates.

This commit is contained in:
Robin Ward
2013-05-20 13:42:26 -04:00
parent c7aebbf4d6
commit a79d53c628
21 changed files with 125 additions and 110 deletions

View File

@@ -4,7 +4,7 @@
</div>
<div class='span10 controls'>
<button class='btn' {{action sendTestEmail}} {{bindAttr disabled="sendTestEmailDisabled"}}>{{i18n admin.email_logs.send_test}}</button>
{{#if controller.sentTestEmail}}<span class='result-message'>{{i18n admin.email_logs.sent_test}}</span>{{/if}}
{{#if sentTestEmail}}<span class='result-message'>{{i18n admin.email_logs.sent_test}}</span>{{/if}}
</div>
</div>

View File

@@ -7,7 +7,6 @@
</div>
</div>
<table class='admin-flags'>
<thead>
<tr>
@@ -27,7 +26,7 @@
<td class='flaggers'>{{#each flaggers}}{{#linkTo 'adminUser' this}}{{avatar this imageSize="small"}} {{/linkTo}}{{/each}}</td>
<td class='last-flagged'>{{date lastFlagged}}</td>
<td class='action'>
{{#if controller.adminActiveFlagsView}}
{{#if adminActiveFlagsView}}
<button title='{{i18n admin.flags.clear_title}}' class='btn' {{action clearFlags this}}>{{i18n admin.flags.clear}}</button>
<button title='{{i18n admin.flags.delete_title}}' class='btn' {{action deletePost this}}>{{i18n admin.flags.delete}}</button>
{{/if}}

View File

@@ -15,16 +15,16 @@
<th>{{yaxis}}</th>
</tr>
{{#each data}}
{{#each row in data}}
<tr>
<td>{{x}}</td>
<td>{{row.x}}</td>
<td>
{{#if controller.viewingTable}}
{{y}}
{{#if viewingTable}}
{{row.y}}
{{/if}}
{{#if controller.viewingBarChart}}
{{#if viewingBarChart}}
<div class='bar-container'>
<div class='bar' style="width: {{unbound percentage}}%">{{y}}</div>
<div class='bar' style="width: {{unbound row.percentage}}%">{{row.y}}</div>
</div>
{{/if}}
</td>