mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Removed many unnecessary controller. uses in templates.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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}}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user