Replace the rest of the deprecated `{{action xyz}}` with `{{action

"xyz"}}`
This commit is contained in:
Robin Ward 2014-10-03 14:42:58 -04:00
parent f2520939b8
commit e55b437eb9
64 changed files with 110 additions and 119 deletions

View File

@ -16,7 +16,7 @@
{{else}} {{else}}
<br> <br>
{{combo-box valueAttribute="id" value=controller.selectedBadgeId content=controller.grantableBadges}} {{combo-box valueAttribute="id" value=controller.selectedBadgeId content=controller.grantableBadges}}
<button class='btn btn-primary' {{action grantBadge controller.selectedBadgeId}}>{{i18n admin.badges.grant}}</button> <button class='btn btn-primary' {{action "grantBadge" controller.selectedBadgeId}}>{{i18n admin.badges.grant}}</button>
{{/if}} {{/if}}
<br> <br>
@ -44,7 +44,7 @@
</td> </td>
<td>{{age-with-tooltip granted_at}}</td> <td>{{age-with-tooltip granted_at}}</td>
<td> <td>
<button class='btn' {{action revokeBadge this}}>{{i18n admin.badges.revoke}}</button> <button class='btn' {{action "revokeBadge" this}}>{{i18n admin.badges.revoke}}</button>
</td> </td>
</tr> </tr>
{{else}} {{else}}

View File

@ -16,15 +16,15 @@
{{text-field value=username placeholderKey="search_hint"}} {{text-field value=username placeholderKey="search_hint"}}
</div> </div>
<div class="pull-right"> <div class="pull-right">
<button {{action exportUsers}} class="btn" title="{{i18n admin.export_csv.users.title}}"><i class="fa fa-download"></i>{{i18n admin.export_csv.users.text}}</button> <button {{action "exportUsers"}} class="btn" title="{{i18n admin.export_csv.users.title}}"><i class="fa fa-download"></i>{{i18n admin.export_csv.users.text}}</button>
</div> </div>
</div> </div>
<div class="admin-container"> <div class="admin-container">
{{#if hasSelection}} {{#if hasSelection}}
<div id='selected-controls'> <div id='selected-controls'>
<button {{action approveUsers}} class='btn'>{{countI18n admin.users.approved_selected countBinding="selectedCount"}}</button> <button {{action "approveUsers"}} class='btn'>{{countI18n admin.users.approved_selected countBinding="selectedCount"}}</button>
<button {{action rejectUsers}} class='btn btn-danger'>{{countI18n admin.users.reject_selected countBinding="selectedCount"}}</button> <button {{action "rejectUsers"}} class='btn btn-danger'>{{countI18n admin.users.reject_selected countBinding="selectedCount"}}</button>
</div> </div>
{{/if}} {{/if}}

View File

@ -1,11 +1,3 @@
/**
The controls at the top of a private message in the map area.
@class PrivateMessageMapComponent
@extends Ember.Component
@namespace Discourse
@module Discourse
**/
export default Ember.Component.extend({ export default Ember.Component.extend({
layoutName: 'components/private-message-map', layoutName: 'components/private-message-map',
tagName: 'section', tagName: 'section',

View File

@ -8,7 +8,7 @@
<ul class='notification-dropdown-menu'> <ul class='notification-dropdown-menu'>
{{#each level in view.dropDownContent}} {{#each level in view.dropDownContent}}
<li data-id="{{level.id}}"> <li data-id="{{level.id}}">
<a {{action setNotification level.id}} href="#"> <a {{action "setNotification" level.id}} href="#">
<span class="title"><i {{bind-attr class=level.styleClasses}}></i>&nbsp;{{level.title}}</span><span>{{level.description}}</span> <span class="title"><i {{bind-attr class=level.styleClasses}}></i>&nbsp;{{level.title}}</span><span>{{level.description}}</span>
</a> </a>
</li> </li>

View File

@ -11,7 +11,7 @@
{{#each view.topics}} {{#each view.topics}}
<div class='controls'> <div class='controls'>
<label class='radio'> <label class='radio'>
<input type='radio' id="choose-topic-{{unbound id}}" name='choose_topic_id' {{action chooseTopic this target="view"}}>{{title}} <input type='radio' id="choose-topic-{{unbound id}}" name='choose_topic_id' {{action "chooseTopic" this target="view"}}>{{title}}
{{#if category.parentCategory}} {{#if category.parentCategory}}
{{bound-category-link category.parentCategory}} {{bound-category-link category.parentCategory}}
{{/if}} {{/if}}

View File

@ -1,5 +1,5 @@
<input type="file" accept="image/*" style="display:none" /> <input type="file" accept="image/*" style="display:none" />
<button class="btn" {{action selectFile}} {{bind-attr disabled="uploading"}} title="{{i18n user.change_avatar.upload_title}}"> <button class="btn" {{action "selectFile"}} {{bind-attr disabled="uploading"}} title="{{i18n user.change_avatar.upload_title}}">
<i class="fa fa-picture-o"></i>&nbsp;{{uploadButtonText}} <i class="fa fa-picture-o"></i>&nbsp;{{uploadButtonText}}
</button> </button>
{{#if uploading}} {{#if uploading}}

View File

@ -1,5 +1,5 @@
{{#if category}} {{#if category}}
<a href="#" {{action expand}} class="badge-category" {{bind-attr style="badgeStyle"}}> <a href="#" {{action "expand"}} class="badge-category" {{bind-attr style="badgeStyle"}}>
{{#if category.read_restricted}} {{#if category.read_restricted}}
<i class='fa fa-group'></i> <i class='fa fa-group'></i>
{{/if}} {{/if}}
@ -7,14 +7,14 @@
</a> </a>
{{else}} {{else}}
{{#if noSubcategories}} {{#if noSubcategories}}
<a href='#' {{action expand}} class='badge-category home' {{bind-attr style="badgeStyle"}}>{{i18n categories.no_subcategory}}</a> <a href='#' {{action "expand"}} class='badge-category home' {{bind-attr style="badgeStyle"}}>{{i18n categories.no_subcategory}}</a>
{{else}} {{else}}
<a href='#' {{action expand}} class='badge-category home' {{bind-attr style="badgeStyle"}}>{{allCategoriesLabel}}</a> <a href='#' {{action "expand"}} class='badge-category home' {{bind-attr style="badgeStyle"}}>{{allCategoriesLabel}}</a>
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#if categories}} {{#if categories}}
<a href='#' {{action expand}} {{bind-attr class="dropdownButtonClass" style="badgeStyle"}}><i {{bind-attr class="iconClass"}}></i></a> <a href='#' {{action "expand"}} {{bind-attr class="dropdownButtonClass" style="badgeStyle"}}><i {{bind-attr class="iconClass"}}></i></a>
<section {{bind-attr class="expanded::hidden :category-dropdown-menu"}} class='chooser'> <section {{bind-attr class="expanded::hidden :category-dropdown-menu"}} class='chooser'>
<div class='cat'><a {{bind-attr href=allCategoriesUrl}} data-drop-close="true" class='badge-category home'>{{allCategoriesLabel}}</a></div> <div class='cat'><a {{bind-attr href=allCategoriesUrl}} data-drop-close="true" class='badge-category home'>{{allCategoriesLabel}}</a></div>
{{#if subCategory}} {{#if subCategory}}

View File

@ -2,7 +2,7 @@
<div class="row"> <div class="row">
<div id="banner" {{bind-attr class="overlay"}}> <div id="banner" {{bind-attr class="overlay"}}>
<div id="banner-content"> <div id="banner-content">
<div class="close" {{action dismiss}}><i class="fa fa-times" title="{{i18n banner.close}}"></i></div> <div class="close" {{action "dismiss"}}><i class="fa fa-times" title="{{i18n banner.close}}"></i></div>
{{{banner.html}}} {{{banner.html}}}
</div> </div>
</div> </div>

View File

@ -1 +1 @@
<a href {{action select}}>{{title}}</a> <a href {{action "select"}}>{{title}}</a>

View File

@ -1,9 +1,9 @@
<input type="file" accept="image/*" style="display:none" /> <input type="file" accept="image/*" style="display:none" />
<div class="uploaded-image-preview" class="input-xxlarge" {{bind-attr style="backgroundStyle"}}> <div class="uploaded-image-preview" class="input-xxlarge" {{bind-attr style="backgroundStyle"}}>
<div class="image-upload-controls"> <div class="image-upload-controls">
<button {{action selectFile}} class="btn pad-left no-text"><i class="fa fa-picture-o"></i></button> <button {{action "selectFile"}} class="btn pad-left no-text"><i class="fa fa-picture-o"></i></button>
{{#if backgroundStyle}} {{#if backgroundStyle}}
<button {{action trash}} class="btn btn-danger pad-left no-text"><i class="fa fa-trash-o"></i></button> <button {{action "trash"}} class="btn btn-danger pad-left no-text"><i class="fa fa-trash-o"></i></button>
{{/if}} {{/if}}
<span {{bind-attr class=":btn uploading::hidden"}}>{{i18n upload_selector.uploading}} {{uploadProgress}}%</span> <span {{bind-attr class=":btn uploading::hidden"}}>{{i18n upload_selector.uploading}} {{uploadProgress}}%</span>
</div> </div>

View File

@ -1,5 +1,5 @@
{{#if ip}} {{#if ip}}
<button class="btn" {{action lookup}}> <button class="btn" {{action "lookup"}}>
<span class="fa fa-globe"></span>&nbsp;{{i18n admin.user.ip_lookup}} <span class="fa fa-globe"></span>&nbsp;{{i18n admin.user.ip_lookup}}
</button> </button>
{{/if}} {{/if}}
@ -49,6 +49,6 @@
{{/if}} {{/if}}
<dd> <dd>
</dl> </dl>
<button class="btn close" {{action hide}}>{{i18n close}}</button> <button class="btn close" {{action "hide"}}>{{i18n close}}</button>
</div> </div>
{{/if}} {{/if}}

View File

@ -1,3 +1,3 @@
{{#each buttons}} {{#each buttons}}
<button {{bind-attr class=":btn :btn-social name"}} {{action externalLogin this}}>{{title}}</button> <button {{bind-attr class=":btn :btn-social name"}} {{action "externalLogin" this}}>{{title}}</button>
{{/each}} {{/each}}

View File

@ -14,13 +14,13 @@
{{unbound username}} {{unbound username}}
{{/link-to}} {{/link-to}}
{{#if details.can_remove_allowed_users}} {{#if details.can_remove_allowed_users}}
<a class='remove-invited' {{action removeAllowedUser this}}><i class="fa fa-times"></i></a> <a class='remove-invited' {{action "removeAllowedUser" this}}><i class="fa fa-times"></i></a>
{{/if}} {{/if}}
</div> </div>
{{/grouped-each}} {{/grouped-each}}
</div> </div>
{{#if details.can_invite_to}} {{#if details.can_invite_to}}
<div class='controls'> <div class='controls'>
<button class='btn' {{action showPrivateInvite}}>{{i18n private_message_info.invite}}</button> <button class='btn' {{action "showPrivateInvite"}}>{{i18n private_message_info.invite}}</button>
</div> </div>
{{/if}} {{/if}}

View File

@ -1,4 +1,4 @@
<b>{{i18n admin.logs.screened_ips.form.label}}</b> <b>{{i18n admin.logs.screened_ips.form.label}}</b>
{{text-field value=ip_address disabled=formSubmitted class="ip-address-input" placeholderKey="admin.logs.screened_ips.form.ip_address" autocorrect="off" autocapitalize="off"}} {{text-field value=ip_address disabled=formSubmitted class="ip-address-input" placeholderKey="admin.logs.screened_ips.form.ip_address" autocorrect="off" autocapitalize="off"}}
{{combo-box content=actionNames value=actionName}} {{combo-box content=actionNames value=actionName}}
<button class="btn btn-small" {{action submit target="view"}} {{bind-attr disabled="formSubmitted"}}>{{i18n admin.logs.screened_ips.form.add}}</button> <button class="btn btn-small" {{action "submit" target="view"}} {{bind-attr disabled="formSubmitted"}}>{{i18n admin.logs.screened_ips.form.add}}</button>

View File

@ -1,7 +1,7 @@
{{#if postStream.show_deleted}} {{#if postStream.show_deleted}}
<p>{{i18n deleted_filter.disabled_description}}</p> <p>{{i18n deleted_filter.disabled_description}}</p>
<button class='btn btn-danger' {{action toggleDeleted}}>{{i18n deleted_filter.enable}}</button> <button class='btn btn-danger' {{action "toggleDeleted"}}>{{i18n deleted_filter.enable}}</button>
{{else}} {{else}}
<p>{{i18n deleted_filter.enabled_description}}</p> <p>{{i18n deleted_filter.enabled_description}}</p>
<button class='btn btn-danger' {{action toggleDeleted}}>{{i18n deleted_filter.disable}}</button> <button class='btn btn-danger' {{action "toggleDeleted"}}>{{i18n deleted_filter.disable}}</button>
{{/if}} {{/if}}

View File

@ -1,6 +1,6 @@
{{#if postStream.summary}} {{#if postStream.summary}}
<p>{{{i18n summary.enabled_description}}}</p> <p>{{{i18n summary.enabled_description}}}</p>
<button class='btn btn-primary' {{action toggleSummary}}>{{i18n summary.disable}}</button> <button class='btn btn-primary' {{action "toggleSummary"}}>{{i18n summary.disable}}</button>
{{else}} {{else}}
{{#if topic.estimatedReadingTime}} {{#if topic.estimatedReadingTime}}
<p>{{{i18n summary.description_time count="topic.posts_count" readingTime="topic.estimatedReadingTime"}}}</p> <p>{{{i18n summary.description_time count="topic.posts_count" readingTime="topic.estimatedReadingTime"}}}</p>
@ -8,5 +8,5 @@
<p>{{{i18n summary.description count="topic.posts_count"}}}</p> <p>{{{i18n summary.description count="topic.posts_count"}}}</p>
{{/if}} {{/if}}
<button class='btn btn-primary' {{action toggleSummary}}>{{i18n summary.enable}}</button> <button class='btn btn-primary' {{action "toggleSummary"}}>{{i18n summary.enable}}</button>
{{/if}} {{/if}}

View File

@ -1,5 +1,5 @@
<nav class='buttons'> <nav class='buttons'>
<button class='btn' {{action toggleMap}} title="{{i18n topic.toggle_information}}"> <button class='btn' {{action "toggleMap"}} title="{{i18n topic.toggle_information}}">
<i {{bind-attr class=":fa toggleMapClass"}}></i> <i {{bind-attr class=":fa toggleMapClass"}}></i>
</button> </button>
</nav> </nav>
@ -78,7 +78,7 @@
{{#if showAllLinksControls}} {{#if showAllLinksControls}}
<div class='link-summary'> <div class='link-summary'>
<a href='#' {{action showAllLinks}}>{{i18n topic_map.links_shown totalLinks="details.links.length"}}</a> <a href='#' {{action "showAllLinks"}}>{{i18n topic_map.links_shown totalLinks="details.links.length"}}</a>
</div> </div>
{{/if}} {{/if}}

View File

@ -1,4 +1,4 @@
<a href='#' {{bind-attr class=":poster toggled"}} {{action toggle}} title="{{unbound participant.username}}"> <a href='#' {{bind-attr class=":poster toggled"}} {{action "toggle"}} title="{{unbound participant.username}}">
{{#if showPostCount}} {{#if showPostCount}}
<span class='post-count'>{{unbound participant.post_count}}</span> <span class='post-count'>{{unbound participant.post_count}}</span>
{{/if}} {{/if}}

View File

@ -1,2 +1,2 @@
<a href='#' {{action closeMessage this}} class='close'><i class='fa fa-times-circle'></i></a> <a href='#' {{action "closeMessage" this}} class='close'><i class='fa fa-times-circle'></i></a>
{{{body}}} {{{body}}}

View File

@ -1,4 +1,4 @@
<a href='#' {{action closeMessage this}} class='close'><i class='fa fa-times-circle'></i></a> <a href='#' {{action "closeMessage" this}} class='close'><i class='fa fa-times-circle'></i></a>
<h3>{{i18n composer.similar_topics}}</h3> <h3>{{i18n composer.similar_topics}}</h3>
<ul class='topics'> <ul class='topics'>

View File

@ -5,7 +5,7 @@
{{else}} {{else}}
{{#if canStar}} {{#if canStar}}
<td class='star'> <td class='star'>
<a {{bind-attr class=":star :fa :fa-star starred:starred"}} {{action toggleStar}} href='#' {{bind-attr title="starTooltip"}}></a> <a {{bind-attr class=":star :fa :fa-star starred:starred"}} {{action "toggleStar"}} href='#' {{bind-attr title="starTooltip"}}></a>
</td> </td>
{{/if}} {{/if}}
{{/if}} {{/if}}
@ -24,7 +24,7 @@
{{#unless canClearPin}}<a href="{{url}}">{{i18n read_more}}</a>{{/unless}} {{#unless canClearPin}}<a href="{{url}}">{{i18n read_more}}</a>{{/unless}}
{{/if}} {{/if}}
{{#if canClearPin}} {{#if canClearPin}}
<a href="#" {{action clearPin this}} title="{{i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a> <a href="#" {{action "clearPin" this}} title="{{i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a>
{{/if}} {{/if}}
</div> </div>
{{/if}} {{/if}}

View File

@ -19,7 +19,7 @@
{{#unless canClearPin}}<a href="{{url}}">{{i18n read_more}}</a>{{/unless}} {{#unless canClearPin}}<a href="{{url}}">{{i18n read_more}}</a>{{/unless}}
{{/if}} {{/if}}
{{#if canClearPin}} {{#if canClearPin}}
<a href="#" {{action clearPin this}} title="{{i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a> <a href="#" {{action "clearPin" this}} title="{{i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a>
{{/if}} {{/if}}
</div> </div>
{{/if}} {{/if}}

View File

@ -30,7 +30,7 @@
{{#unless canClearPin}}<a href="{{url}}">{{i18n read_more}}</a>{{/unless}} {{#unless canClearPin}}<a href="{{url}}">{{i18n read_more}}</a>{{/unless}}
{{/if}} {{/if}}
{{#if canClearPin}} {{#if canClearPin}}
<a href="#" {{action clearPin this}} title="{{unbound i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a> <a href="#" {{action "clearPin" this}} title="{{unbound i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a>
{{/if}} {{/if}}
</div> </div>
{{/if}} {{/if}}
@ -60,7 +60,7 @@
<figure title="{{i18n week_desc}}">{{number topics_week}} <figcaption>{{i18n week}}</figcaption></figure> <figure title="{{i18n week_desc}}">{{number topics_week}} <figcaption>{{i18n week}}</figcaption></figure>
{{#if controller.canEdit}} {{#if controller.canEdit}}
<a href='#' {{action editCategory this}} class='btn btn-small'>{{i18n category.edit}}</a> <a href='#' {{action "editCategory" this}} class='btn btn-small'>{{i18n category.edit}}</a>
{{/if}} {{/if}}
</footer> </footer>

View File

@ -14,7 +14,7 @@
{{#unless canClearPin}}<a href="{{url}}">{{i18n read_more}}</a>{{/unless}} {{#unless canClearPin}}<a href="{{url}}">{{i18n read_more}}</a>{{/unless}}
{{/if}} {{/if}}
{{#if canClearPin}} {{#if canClearPin}}
<a href="#" {{action clearPin this}} title="{{i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a> <a href="#" {{action "clearPin" this}} title="{{i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a>
{{/if}} {{/if}}
</div> </div>
{{/if}} {{/if}}

View File

@ -23,7 +23,7 @@
<tr> <tr>
<td></td> <td></td>
<td> <td>
<a id="forgot-password-link" {{action showForgotPassword}}>{{i18n forgot_password.action}}</a> <a id="forgot-password-link" {{action "showForgotPassword"}}>{{i18n forgot_password.action}}</a>
</td> </td>
</tr> </tr>
</table> </table>
@ -40,12 +40,12 @@
{{#if canLoginLocal}} {{#if canLoginLocal}}
<button class='btn btn-large btn-primary' <button class='btn btn-large btn-primary'
{{bind-attr disabled="loginDisabled"}} {{bind-attr disabled="loginDisabled"}}
{{action login}}> {{action "login"}}>
<i class="fa fa-unlock"></i>&nbsp;{{loginButtonText}} <i class="fa fa-unlock"></i>&nbsp;{{loginButtonText}}
</button> </button>
{{#if showSignupLink}} {{#if showSignupLink}}
<button class="btn btn-large" id="new-account-link" {{action showCreateAccount}}> <button class="btn btn-large" id="new-account-link" {{action "showCreateAccount"}}>
{{i18n create_account.title}} {{i18n create_account.title}}
</button> </button>
{{/if}} {{/if}}

View File

@ -4,5 +4,5 @@
</form> </form>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-primary' {{action closeModal}}>{{i18n post.archetypes.save}}</button> <button class='btn btn-primary' {{action "closeModal"}}>{{i18n post.archetypes.save}}</button>
</div> </div>

View File

@ -1,10 +1,10 @@
<form {{action saveAutoClose on="submit"}}> <form {{action "saveAutoClose" on="submit"}}>
<div class="modal-body"> <div class="modal-body">
{{auto-close-form autoCloseTime=auto_close_time autoCloseValid=auto_close_valid}} {{auto-close-form autoCloseTime=auto_close_time autoCloseValid=auto_close_valid}}
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-primary' type='submit' {{bind-attr disabled="auto_close_invalid"}}>{{i18n topic.auto_close_save}}</button> <button class='btn btn-primary' type='submit' {{bind-attr disabled="auto_close_invalid"}}>{{i18n topic.auto_close_save}}</button>
<a {{action closeModal}}>{{i18n cancel}}</a> <a {{action "closeModal"}}>{{i18n cancel}}</a>
<button class='btn pull-right' {{action removeAutoClose}}>{{i18n topic.auto_close_remove}}</button> <button class='btn pull-right' {{action "removeAutoClose"}}>{{i18n topic.auto_close_remove}}</button>
</div> </div>
</form> </form>

View File

@ -5,6 +5,6 @@
{{#if loading}} {{#if loading}}
<div class='loading'>{{i18n loading}}</div> <div class='loading'>{{i18n loading}}</div>
{{else}} {{else}}
<button class='btn' {{action changeCategory}}>Change Category</button> <button class='btn' {{action "changeCategory"}}>Change Category</button>
{{/if}} {{/if}}

View File

@ -7,4 +7,4 @@
</div> </div>
{{/each}} {{/each}}
<button class='btn' {{bind-attr disabled="disabled"}} {{action changeNotificationLevel}}>{{i18n topics.bulk.notification_level}}</button> <button class='btn' {{bind-attr disabled="disabled"}} {{action "changeNotificationLevel"}}>{{i18n topics.bulk.notification_level}}</button>

View File

@ -12,5 +12,5 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-primary' {{bind-attr disabled="buttonDisabled"}} {{action changeOwnershipOfPosts}}>{{buttonTitle}}</button> <button class='btn btn-primary' {{bind-attr disabled="buttonDisabled"}} {{action "changeOwnershipOfPosts"}}>{{buttonTitle}}</button>
</div> </div>

View File

@ -71,7 +71,6 @@
</table> </table>
{{log userFields}}
{{#if userFields}} {{#if userFields}}
<div class='user-fields'> <div class='user-fields'>
{{#each userFields}} {{#each userFields}}
@ -87,11 +86,11 @@
{{#if showCreateForm}} {{#if showCreateForm}}
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-large btn-primary' {{bind-attr disabled="submitDisabled"}} {{action createAccount}}>{{i18n create_account.title}}</button> <button class='btn btn-large btn-primary' {{bind-attr disabled="submitDisabled"}} {{action "createAccount"}}>{{i18n create_account.title}}</button>
{{#if formSubmitted}} {{#if formSubmitted}}
&nbsp; <i class='fa fa-spinner fa-spin'></i> &nbsp; <i class='fa fa-spinner fa-spin'></i>
{{else}} {{else}}
<button class="btn btn-large" id="login-link" {{action showLogin}}> <button class="btn btn-large" id="login-link" {{action "showLogin"}}>
{{i18n log_in}} {{i18n log_in}}
</button> </button>
{{/if}} {{/if}}

View File

@ -29,7 +29,7 @@
{{/if}} {{/if}}
{{#if topic_url}} {{#if topic_url}}
<br/> <br/>
<button class="btn btn-small" {{action showCategoryTopic}}><i class="fa fa-pencil"></i>{{i18n category.change_in_category_topic}}</button> <button class="btn btn-small" {{action "showCategoryTopic"}}><i class="fa fa-pencil"></i>{{i18n category.change_in_category_topic}}</button>
{{/if}} {{/if}}
</section> </section>
{{/if}} {{/if}}

View File

@ -6,7 +6,7 @@
{{{i18n "category.can"}}} {{{i18n "category.can"}}}
<span class="permission">{{permission.description}}</span> <span class="permission">{{permission.description}}</span>
{{#if controller.editingPermissions}} {{#if controller.editingPermissions}}
<a {{action removePermission this}}><i class="fa fa-times-circle"></i></a> <a {{action "removePermission" this}}><i class="fa fa-times-circle"></i></a>
{{/if}} {{/if}}
</li> </li>
{{/each}} {{/each}}
@ -14,8 +14,8 @@
{{#if controller.editingPermissions}} {{#if controller.editingPermissions}}
{{view Ember.Select content=availableGroups value=selectedGroup}} {{view Ember.Select content=availableGroups value=selectedGroup}}
{{view Ember.Select class="permission-selector" optionValuePath="content.id" optionLabelPath="content.description" content=availablePermissions value=selectedPermission}} {{view Ember.Select class="permission-selector" optionValuePath="content.id" optionLabelPath="content.description" content=availablePermissions value=selectedPermission}}
<button {{action addPermission selectedGroup selectedPermission}} class="btn btn-small">{{i18n category.add_permission}}</button> <button {{action "addPermission" selectedGroup selectedPermission}} class="btn btn-small">{{i18n category.add_permission}}</button>
{{else}} {{else}}
<button {{action editPermissions}} class="btn btn-small">{{i18n category.edit_permissions}}</button> <button {{action "editPermissions"}} class="btn btn-small">{{i18n category.edit_permissions}}</button>
{{/if}} {{/if}}
</section> </section>

View File

@ -15,9 +15,9 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-primary' {{bind-attr disabled="disabled"}} {{action saveCategory}}>{{buttonTitle}}</button> <button class='btn btn-primary' {{bind-attr disabled="disabled"}} {{action "saveCategory"}}>{{buttonTitle}}</button>
{{#if can_delete}} {{#if can_delete}}
<button class='btn btn-danger pull-right' {{bind-attr disabled="deleteDisabled"}} {{action deleteCategory}}><i class="fa fa-trash-o"></i>{{deleteButtonTitle}}</button> <button class='btn btn-danger pull-right' {{bind-attr disabled="deleteDisabled"}} {{action "deleteCategory"}}><i class="fa fa-trash-o"></i>{{deleteButtonTitle}}</button>
{{else}} {{else}}
<div class="cannot_delete_reason"> <div class="cannot_delete_reason">
{{{cannot_delete_reason}}} {{{cannot_delete_reason}}}

View File

@ -4,7 +4,7 @@
{{#each flagsAvailable itemController="flag-action-type"}} {{#each flagsAvailable itemController="flag-action-type"}}
<div class='controls'> <div class='controls'>
<label class='radio'> <label class='radio'>
<input type='radio' id="radio_{{unbound name_key}}" {{action changePostActionType this}} name='post_action_type_index'> <strong>{{formattedName}}</strong> <input type='radio' id="radio_{{unbound name_key}}" {{action "changePostActionType" this}} name='post_action_type_index'> <strong>{{formattedName}}</strong>
{{#if showDescription}} {{#if showDescription}}
<div class='description'>{{{description}}}</div> <div class='description'>{{{description}}}</div>
{{/if}} {{/if}}
@ -21,13 +21,13 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-primary' {{action createFlag}} {{bind-attr disabled="submitDisabled"}} title="{{i18n flagging.submit_tooltip}}">{{{submitText}}}</button> <button class='btn btn-primary' {{action "createFlag"}} {{bind-attr disabled="submitDisabled"}} title="{{i18n flagging.submit_tooltip}}">{{{submitText}}}</button>
{{#if canTakeAction}} {{#if canTakeAction}}
<button class='btn btn-danger' {{action takeAction}} {{bind-attr disabled="submitDisabled"}} title="{{i18n flagging.take_action_tooltip}}"><i class="fa fa-gavel"></i>{{i18n flagging.take_action}}</button> <button class='btn btn-danger' {{action "takeAction"}} {{bind-attr disabled="submitDisabled"}} title="{{i18n flagging.take_action_tooltip}}"><i class="fa fa-gavel"></i>{{i18n flagging.take_action}}</button>
{{/if}} {{/if}}
{{#if canDeleteSpammer}} {{#if canDeleteSpammer}}
<button class="btn btn-danger" {{action deleteSpammer userDetails}} {{bind-attr disabled="submitDisabled"}} title="{{i18n flagging.delete_spammer}}"><i class="fa fa-exclamation-triangle"></i> {{i18n flagging.delete_spammer}}</button> <button class="btn btn-danger" {{action "deleteSpammer" userDetails}} {{bind-attr disabled="submitDisabled"}} title="{{i18n flagging.delete_spammer}}"><i class="fa fa-exclamation-triangle"></i> {{i18n flagging.delete_spammer}}</button>
{{/if}} {{/if}}
</div> </div>

View File

@ -4,6 +4,6 @@
{{text-field value=accountEmailOrUsername placeholderKey="login.email_placeholder" id="username-or-email" autocorrect="off" autocapitalize="off"}} {{text-field value=accountEmailOrUsername placeholderKey="login.email_placeholder" id="username-or-email" autocorrect="off" autocapitalize="off"}}
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-large btn-primary' {{bind-attr disabled="submitDisabled"}} {{action submit}}>{{i18n forgot_password.reset}}</button> <button class='btn btn-large btn-primary' {{bind-attr disabled="submitDisabled"}} {{action "submit"}}>{{i18n forgot_password.reset}}</button>
</div> </div>
</form> </form>

View File

@ -1,18 +1,18 @@
<div class="modal-body"> <div class="modal-body">
<div> <div>
<div id="revision-controls"> <div id="revision-controls">
<button title="{{i18n post.revisions.controls.first}}" {{bind-attr class=":btn :standard displayGoToFirst::invisible" disabled=loading}} {{action loadFirstVersion}}><i class="fa fa-fast-backward"></i></button> <button title="{{i18n post.revisions.controls.first}}" {{bind-attr class=":btn :standard displayGoToFirst::invisible" disabled=loading}} {{action "loadFirstVersion"}}><i class="fa fa-fast-backward"></i></button>
<button title="{{i18n post.revisions.controls.previous}}" {{bind-attr class=":btn :standard displayGoToPrevious::invisible" disabled=loading}} {{action loadPreviousVersion}}><i class="fa fa-backward"></i></button> <button title="{{i18n post.revisions.controls.previous}}" {{bind-attr class=":btn :standard displayGoToPrevious::invisible" disabled=loading}} {{action "loadPreviousVersion"}}><i class="fa fa-backward"></i></button>
<div id="revision-numbers" {{bind-attr class="displayRevisions::invisible"}}>{{{boundI18n revisionsTextKey previousBinding="previousVersion" currentBinding="version" totalBinding="revisions_count"}}}</div> <div id="revision-numbers" {{bind-attr class="displayRevisions::invisible"}}>{{{boundI18n revisionsTextKey previousBinding="previousVersion" currentBinding="version" totalBinding="revisions_count"}}}</div>
<button title="{{i18n post.revisions.controls.next}}" {{bind-attr class=":btn :standard displayGoToNext::invisible" disabled=loading}} {{action loadNextVersion}}><i class="fa fa-forward"></i></button> <button title="{{i18n post.revisions.controls.next}}" {{bind-attr class=":btn :standard displayGoToNext::invisible" disabled=loading}} {{action "loadNextVersion"}}><i class="fa fa-forward"></i></button>
<button title="{{i18n post.revisions.controls.last}}" {{bind-attr class=":btn :standard displayGoToLast::invisible" disabled=loading}} {{action loadLastVersion}}><i class="fa fa-fast-forward"></i></button> <button title="{{i18n post.revisions.controls.last}}" {{bind-attr class=":btn :standard displayGoToLast::invisible" disabled=loading}} {{action "loadLastVersion"}}><i class="fa fa-fast-forward"></i></button>
</div> </div>
{{#if loading}}<div id='revision-loading'><i class='fa fa-spinner fa-spin'></i>{{i18n loading}}</div>{{/if}} {{#if loading}}<div id='revision-loading'><i class='fa fa-spinner fa-spin'></i>{{i18n loading}}</div>{{/if}}
<div id="display-modes"> <div id="display-modes">
<button {{bind-attr class=":btn displayingInline:btn-primary:standard"}} title="{{i18n post.revisions.displays.inline.title}}" {{action displayInline}}>{{{i18n post.revisions.displays.inline.button}}}</button> <button {{bind-attr class=":btn displayingInline:btn-primary:standard"}} title="{{i18n post.revisions.displays.inline.title}}" {{action "displayInline"}}>{{{i18n post.revisions.displays.inline.button}}}</button>
{{#unless site.mobileView}} {{#unless site.mobileView}}
<button {{bind-attr class=":btn displayingSideBySide:btn-primary:standard"}} title="{{i18n post.revisions.displays.side_by_side.title}}" {{action displaySideBySide}}>{{{i18n post.revisions.displays.side_by_side.button}}}</button> <button {{bind-attr class=":btn displayingSideBySide:btn-primary:standard"}} title="{{i18n post.revisions.displays.side_by_side.title}}" {{action "displaySideBySide"}}>{{{i18n post.revisions.displays.side_by_side.button}}}</button>
<button {{bind-attr class=":btn displayingSideBySideMarkdown:btn-primary:standard"}} title="{{i18n post.revisions.displays.side_by_side_markdown.title}}" {{action displaySideBySideMarkdown}}>{{{i18n post.revisions.displays.side_by_side_markdown.button}}}</button> <button {{bind-attr class=":btn displayingSideBySideMarkdown:btn-primary:standard"}} title="{{i18n post.revisions.displays.side_by_side_markdown.title}}" {{action "displaySideBySideMarkdown"}}>{{{i18n post.revisions.displays.side_by_side_markdown.button}}}</button>
{{/unless}} {{/unless}}
</div> </div>
</div> </div>

View File

@ -21,9 +21,9 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
{{#if finished}} {{#if finished}}
<button class='btn btn-primary' {{action closeModal}}>{{i18n close}}</button> <button class='btn btn-primary' {{action "closeModal"}}>{{i18n close}}</button>
{{else}} {{else}}
<button class='btn btn-primary' {{bind-attr disabled="disabled"}} {{action createInvite}}><i class="fa fa-envelope"></i>{{buttonTitle}}</button> <button class='btn btn-primary' {{bind-attr disabled="disabled"}} {{action "createInvite"}}><i class="fa fa-envelope"></i>{{buttonTitle}}</button>
{{/if}} {{/if}}
</div> </div>

View File

@ -15,9 +15,9 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
{{#if finished}} {{#if finished}}
<button class='btn btn-primary' {{action closeModal}}>{{i18n close}}</button> <button class='btn btn-primary' {{action "closeModal"}}>{{i18n close}}</button>
{{else}} {{else}}
<button class='btn btn-primary' {{bind-attr disabled="disabled"}} {{action invite}}>{{buttonTitle}}</button> <button class='btn btn-primary' {{bind-attr disabled="disabled"}} {{action "invite"}}>{{buttonTitle}}</button>
{{/if}} {{/if}}
</div> </div>

View File

@ -21,7 +21,7 @@
{{password-field value=loginPassword type="password" id="login-account-password" maxlength="200" capsLockOn=capsLockOn}} &nbsp; {{password-field value=loginPassword type="password" id="login-account-password" maxlength="200" capsLockOn=capsLockOn}} &nbsp;
</td> </td>
<td> <td>
<a id="forgot-password-link" {{action showForgotPassword}}>{{i18n forgot_password.action}}</a> <a id="forgot-password-link" {{action "showForgotPassword"}}>{{i18n forgot_password.action}}</a>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -40,13 +40,13 @@
{{#if canLoginLocal}} {{#if canLoginLocal}}
<button class="btn btn-large btn-primary" <button class="btn btn-large btn-primary"
{{bind-attr disabled="loginDisabled"}} {{bind-attr disabled="loginDisabled"}}
{{action login}}> {{action "login"}}>
<i class="fa fa-unlock"></i>&nbsp;{{loginButtonText}} <i class="fa fa-unlock"></i>&nbsp;{{loginButtonText}}
</button> </button>
{{#if showSignupLink}} {{#if showSignupLink}}
&nbsp; &nbsp;
<button class="btn btn-large" id="new-account-link" {{action createAccount}}> <button class="btn btn-large" id="new-account-link" {{action "createAccount"}}>
{{i18n create_account.title}} {{i18n create_account.title}}
</button> </button>
{{/if}} {{/if}}

View File

@ -13,5 +13,5 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-primary' {{bind-attr disabled="buttonDisabled"}} {{action movePostsToExistingTopic}}><i class="fa fa-sign-out"></i>{{buttonTitle}}</button> <button class='btn btn-primary' {{bind-attr disabled="buttonDisabled"}} {{action "movePostsToExistingTopic"}}><i class="fa fa-sign-out"></i>{{buttonTitle}}</button>
</div> </div>

View File

@ -3,7 +3,7 @@
<div class="modal-inner-container"> <div class="modal-inner-container">
<div class="modal-header"> <div class="modal-header">
<a class="close" {{action closeModal}}><i class='fa fa-times'></i></a> <a class="close" {{action "closeModal"}}><i class='fa fa-times'></i></a>
<h3>{{title}}</h3> <h3>{{title}}</h3>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>

View File

@ -7,5 +7,5 @@
{{/if}} {{/if}}
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-primary' {{action closeModal}}>{{i18n close}}</button> <button class='btn btn-primary' {{action "closeModal"}}>{{i18n close}}</button>
</div> </div>

View File

@ -18,5 +18,5 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class='btn btn-primary' {{bind-attr disabled="buttonDisabled"}} {{action movePostsToNewTopic}}><i class='fa fa-sign-out'></i>{{buttonTitle}}</button> <button class='btn btn-primary' {{bind-attr disabled="buttonDisabled"}} {{action "movePostsToNewTopic"}}><i class='fa fa-sign-out'></i>{{buttonTitle}}</button>
</div> </div>

View File

@ -8,8 +8,8 @@
</ul> </ul>
{{#if canCreateCategory}} {{#if canCreateCategory}}
<button class='btn btn-default' {{action createCategory}}><i class='fa fa-plus'></i>{{i18n category.create}}</button> <button class='btn btn-default' {{action "createCategory"}}><i class='fa fa-plus'></i>{{i18n category.create}}</button>
{{/if}} {{/if}}
{{#if canCreateTopic}} {{#if canCreateTopic}}
<button id="create-topic" class='btn btn-default' {{action createTopic}}><i class='fa fa-plus'></i>{{i18n topic.create}}</button> <button id="create-topic" class='btn btn-default' {{action "createTopic"}}><i class='fa fa-plus'></i>{{i18n topic.create}}</button>
{{/if}} {{/if}}

View File

@ -15,11 +15,11 @@
{{/if}} {{/if}}
{{#if canCreateTopic}} {{#if canCreateTopic}}
<button id="create-topic" class='btn btn-default' {{action createTopic}}><i class='fa fa-plus'></i>{{i18n topic.create}}</button> <button id="create-topic" class='btn btn-default' {{action "createTopic"}}><i class='fa fa-plus'></i>{{i18n topic.create}}</button>
{{/if}} {{/if}}
{{#if canEditCategory}} {{#if canEditCategory}}
<button class='btn btn-default' {{action editCategory category}}><i class="fa fa-wrench"></i> {{i18n category.edit_long}}</button> <button class='btn btn-default' {{action "editCategory" category}}><i class="fa fa-wrench"></i> {{i18n category.edit_long}}</button>
{{/if}} {{/if}}
<section class='category-heading'> <section class='category-heading'>

View File

@ -8,5 +8,5 @@
</ul> </ul>
{{#if canCreateTopic}} {{#if canCreateTopic}}
<button id="create-topic" class='btn btn-default' {{action createTopic}}><i class='fa fa-plus'></i>{{i18n topic.create}}</button> <button id="create-topic" class='btn btn-default' {{action "createTopic"}}><i class='fa fa-plus'></i>{{i18n topic.create}}</button>
{{/if}} {{/if}}

View File

@ -19,7 +19,7 @@
</ul> </ul>
<div class='no-results'> <div class='no-results'>
{{#if resultType.more}} {{#if resultType.more}}
<a href='#' class='filter' {{action moreOfType resultType.type bubbles=false}}>{{i18n show_more}} <i class="fa fa-chevron-down"></i></a> <a href='#' class='filter' {{action "moreOfType" resultType.type bubbles=false}}>{{i18n show_more}} <i class="fa fa-chevron-down"></i></a>
{{else}} {{else}}
{{/if}} {{/if}}
</div> </div>

View File

@ -9,5 +9,5 @@
{{each shareLinks itemView='share-link'}} {{each shareLinks itemView='share-link'}}
<div class='link'> <div class='link'>
<a href='#' {{action close}} title='{{i18n share.close}}'><i class="fa fa-times-circle"></i></a> <a href='#' {{action "close"}} title='{{i18n share.close}}'><i class="fa fa-times-circle"></i></a>
</div> </div>

View File

@ -1,5 +1,5 @@
{{#if openInPopup}} {{#if openInPopup}}
<a href="#" {{action sharePopup target href}} {{bind-attr title="title"}}><i {{bind-attr class=":fa iconClass"}}></i></a> <a href="#" {{action "sharePopup" target href}} {{bind-attr title="title"}}><i {{bind-attr class=":fa iconClass"}}></i></a>
{{else}} {{else}}
<a {{bind-attr href="href"}} {{bind-attr title="title"}} target="_blank"><i {{bind-attr class=":fa iconClass"}}></i></a> <a {{bind-attr href="href"}} {{bind-attr title="title"}} target="_blank"><i {{bind-attr class=":fa iconClass"}}></i></a>
{{/if}} {{/if}}

View File

@ -22,7 +22,7 @@
</li> </li>
{{/if}} {{/if}}
{{#if showKeyboardShortcuts}} {{#if showKeyboardShortcuts}}
<li><a href="#" {{action keyboardShortcuts}} class="keyboard-shortcuts-link">{{i18n keyboard_shortcuts_help.title}}</a> <li><a href="#" {{action "keyboardShortcuts"}} class="keyboard-shortcuts-link">{{i18n keyboard_shortcuts_help.title}}</a>
{{/if}} {{/if}}
<li> <li>
<a href="{{unbound faqUrl}}" class="faq-link">{{i18n faq}}</a> <a href="{{unbound faqUrl}}" class="faq-link">{{i18n faq}}</a>
@ -31,7 +31,7 @@
{{#link-to 'about'}}{{i18n about.simple_title}}{{/link-to}} {{#link-to 'about'}}{{i18n about.simple_title}}{{/link-to}}
</li> </li>
{{#if showMobileToggle}} {{#if showMobileToggle}}
<li><a href="#" class="mobile-toggle-link" {{action toggleMobileView}}>{{boundI18n mobileViewLinkTextKey}}</a></li> <li><a href="#" class="mobile-toggle-link" {{action "toggleMobileView"}}>{{boundI18n mobileViewLinkTextKey}}</a></li>
{{/if}} {{/if}}
</ul> </ul>

View File

@ -3,7 +3,7 @@
{{{html}}} {{{html}}}
{{#if showLoginButton}} {{#if showLoginButton}}
<button class="btn btn-primary" {{action showLogin}}><i class="fa fa-user"></i>{{i18n log_in}}</button> <button class="btn btn-primary" {{action "showLogin"}}><i class="fa fa-user"></i>{{i18n log_in}}</button>
{{/if}} {{/if}}
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
<button {{action enterTop}} class='btn full no-text jump-top'> <button {{action "enterTop"}} class='btn full no-text jump-top'>
<i class='fa fa-caret-up'></i> {{{topDate}}} <i class='fa fa-caret-up'></i> {{{topDate}}}
</button> </button>
<button {{action enterBottom}} class='btn full no-text jump-bottom'> <button {{action "enterBottom"}} class='btn full no-text jump-bottom'>
{{{bottomDate}}} <i class='fa fa-caret-down'></i> {{{bottomDate}}} <i class='fa fa-caret-down'></i>
</button> </button>

View File

@ -1,13 +1,13 @@
{{#if expanded}} {{#if expanded}}
<nav id='topic-progress-expanded'> <nav id='topic-progress-expanded'>
<button {{action jumpTop}} {{bind-attr disabled=jumpTopDisabled}} class='btn full no-text'> <button {{action "jumpTop"}} {{bind-attr disabled=jumpTopDisabled}} class='btn full no-text'>
<i class="fa fa-caret-up"></i> <i class="fa fa-caret-up"></i>
{{i18n topic.progress.go_top}} {{i18n topic.progress.go_top}}
</button> </button>
<div class='jump-form'> <div class='jump-form'>
{{input value=toPostIndex}} <button {{action jumpPost}} class='btn'>{{i18n topic.progress.go}}</button> {{input value=toPostIndex}} <button {{action "jumpPost"}} class='btn'>{{i18n topic.progress.go}}</button>
</div> </div>
<button {{action jumpBottom}} {{bind-attr disabled=jumpBottomDisabled}} class='btn full no-text jump-bottom'> <button {{action "jumpBottom"}} {{bind-attr disabled=jumpBottomDisabled}} class='btn full no-text jump-bottom'>
{{i18n topic.progress.go_bottom}} {{i18n topic.progress.go_bottom}}
<i class="fa fa-caret-down"></i> <i class="fa fa-caret-down"></i>
</button> </button>

View File

@ -43,17 +43,17 @@
{{/if}} {{/if}}
{{#if user.can_send_private_message_to_user}} {{#if user.can_send_private_message_to_user}}
<button class='btn btn-primary' {{action composePrivateMessage user}}>{{fa-icon "envelope"}}{{i18n user.private_message}}</button> <button class='btn btn-primary' {{action "composePrivateMessage" user}}>{{fa-icon "envelope"}}{{i18n user.private_message}}</button>
{{/if}} {{/if}}
{{#link-to 'user' user class="btn"}}{{fa-icon "user"}}{{i18n user.profile}}{{/link-to}} {{#link-to 'user' user class="btn"}}{{fa-icon "user"}}{{i18n user.profile}}{{/link-to}}
{{#if showFilter}} {{#if showFilter}}
<button class='btn' {{action togglePosts user}}>{{fa-icon "filter"}}{{i18n topic.filter_to username="username" post_count="participant.post_count"}}</button> <button class='btn' {{action "togglePosts" user}}>{{fa-icon "filter"}}{{i18n topic.filter_to username="username" post_count="participant.post_count"}}</button>
{{/if}} {{/if}}
{{#if hasUserFilters}} {{#if hasUserFilters}}
<button class='btn' {{action cancelFilter}}>{{fa-icon "times"}}{{i18n topic.filters.cancel}}</button> <button class='btn' {{action "cancelFilter"}}>{{fa-icon "times"}}{{i18n topic.filters.cancel}}</button>
{{/if}} {{/if}}
</div> </div>
{{else}} {{else}}

View File

@ -23,7 +23,7 @@
<div class="control-group"> <div class="control-group">
<div class="controls"> <div class="controls">
<button {{action changeAbout}} {{bind-attr disabled="saveDisabled"}} class="btn btn-primary">{{saveButtonText}}</button> <button {{action "changeAbout"}} {{bind-attr disabled="saveDisabled"}} class="btn btn-primary">{{saveButtonText}}</button>
{{#if saved}}{{i18n saved}}{{/if}} {{#if saved}}{{i18n saved}}{{/if}}
</div> </div>
</div> </div>

View File

@ -16,7 +16,7 @@
<div class="control-group"> <div class="control-group">
<div class="controls"> <div class="controls">
<button class="btn btn-primary" {{bind-attr disabled=disableSave}} {{action save}}>{{savingStatus}}</button> <button class="btn btn-primary" {{bind-attr disabled=disableSave}} {{action "save"}}>{{savingStatus}}</button>
{{#if saved}}{{i18n saved}}{{/if}} {{#if saved}}{{i18n saved}}{{/if}}
</div> </div>
</div> </div>

View File

@ -39,7 +39,7 @@
<div class="control-group"> <div class="control-group">
<div class="controls"> <div class="controls">
<button {{action changeEmail}} {{bind-attr disabled="saveDisabled"}} class="btn btn-primary">{{saveButtonText}}</button> <button {{action "changeEmail"}} {{bind-attr disabled="saveDisabled"}} class="btn btn-primary">{{saveButtonText}}</button>
</div> </div>
</div> </div>
{{/if}} {{/if}}

View File

@ -4,7 +4,7 @@
<h2>{{i18n user.invited.title}}</h2> <h2>{{i18n user.invited.title}}</h2>
<div class="pull-right"> <div class="pull-right">
<button {{action showInvite}} class='btn'>{{i18n user.invited.create}}</button> <button {{action "showInvite"}} class='btn'>{{i18n user.invited.create}}</button>
{{#if canBulkInvite}} {{#if canBulkInvite}}
{{resumable-upload target="/invites/upload" success="uploadSuccess" error="uploadError" uploadText=uploadText}} {{resumable-upload target="/invites/upload" success="uploadSuccess" error="uploadError" uploadText=uploadText}}
{{/if}} {{/if}}
@ -55,7 +55,7 @@
{{#if invite.rescinded}} {{#if invite.rescinded}}
{{i18n user.invited.rescinded}} {{i18n user.invited.rescinded}}
{{else}} {{else}}
<button class='btn' {{action rescind invite}}><i class="fa fa-times"></i>{{i18n user.invited.rescind}}</button> <button class='btn' {{action "rescind" invite}}><i class="fa fa-times"></i>{{i18n user.invited.rescind}}</button>
{{/if}} {{/if}}
</td> </td>
{{/if}} {{/if}}

View File

@ -1,2 +1,2 @@
<button {{action save}} {{bind-attr disabled="saving"}} class="btn btn-primary">{{saveButtonText}}</button> <button {{action "save"}} {{bind-attr disabled="saving"}} class="btn btn-primary">{{saveButtonText}}</button>
{{#if saved}}{{i18n saved}}{{/if}} {{#if saved}}{{i18n saved}}{{/if}}

View File

@ -14,7 +14,7 @@
<i class="icon {{unbound icon}}"></i> <i class="icon {{unbound icon}}"></i>
{{#grouped-each items}} {{#grouped-each items}}
{{#if bookmarkType}} {{#if bookmarkType}}
<button class="btn btn-default remove-bookmark" {{action removeBookmark this}}> <button class="btn btn-default remove-bookmark" {{action "removeBookmark" this}}>
<i class="fa fa-times"></i> <i class="fa fa-times"></i>
{{i18n "bookmarks.remove"}} {{i18n "bookmarks.remove"}}
</button> </button>

View File

@ -150,7 +150,7 @@
{{#if email}} {{#if email}}
{{email}} {{email}}
{{else}} {{else}}
<button class="btn" title="{{i18n admin.users.check_email.title}}" {{action checkEmail this}}>{{fa-icon "envelope-o"}} {{i18n admin.users.check_email.text}}</button> <button class="btn" title="{{i18n admin.users.check_email.title}}" {{action "checkEmail" this}}>{{fa-icon "envelope-o"}} {{i18n admin.users.check_email.text}}</button>
{{/if}} {{/if}}
</dd> </dd>
{{/if}} {{/if}}
@ -164,7 +164,7 @@
<section class='controls'> <section class='controls'>
{{#if can_send_private_message_to_user}} {{#if can_send_private_message_to_user}}
<button class='btn btn-primary' {{action composePrivateMessage}}> <button class='btn btn-primary' {{action "composePrivateMessage"}}>
<i class='fa fa-envelope'></i> <i class='fa fa-envelope'></i>
{{i18n user.private_message}} {{i18n user.private_message}}
</button> </button>

View File

@ -30,7 +30,7 @@
<div class="control-group"> <div class="control-group">
<div class="controls"> <div class="controls">
<button {{action changeUsername}} {{bind-attr disabled="saveDisabled"}} class="btn btn-primary">{{saveButtonText}}</button> <button {{action "changeUsername"}} {{bind-attr disabled="saveDisabled"}} class="btn btn-primary">{{saveButtonText}}</button>
{{#if saved}}{{i18n saved}}{{/if}} {{#if saved}}{{i18n saved}}{{/if}}
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
<table> <table>
{{#each poll.options}} {{#each poll.options}}
<tr {{bind-attr class=checked:active}} {{action selectOption option}}> <tr {{bind-attr class=checked:active}} {{action "selectOption" option}}>
<td class="radio"> <td class="radio">
<input type="radio" name="poll" {{bind-attr checked=checked disabled=controller.disableRadio}}> <input type="radio" name="poll" {{bind-attr checked=checked disabled=controller.disableRadio}}>
</td> </td>
@ -15,7 +15,7 @@
</table> </table>
<div class='row'> <div class='row'>
<button {{action toggleShowResults}} class="btn btn-small show-results"> <button {{action "toggleShowResults"}} class="btn btn-small show-results">
{{#if showResults}} {{#if showResults}}
<i class="fa fa-eye-slash"></i> <i class="fa fa-eye-slash"></i>
{{i18n poll.results.hide}} {{i18n poll.results.hide}}
@ -26,7 +26,7 @@
</button> </button>
{{#if showToggleClosePoll}} {{#if showToggleClosePoll}}
<button {{action toggleClosePoll}} class="btn btn-small toggle-poll"> <button {{action "toggleClosePoll"}} class="btn btn-small toggle-poll">
{{#if poll.closed}} {{#if poll.closed}}
<i class="fa fa-unlock-alt"></i> <i class="fa fa-unlock-alt"></i>
{{i18n poll.open_poll}} {{i18n poll.open_poll}}