FIX: making sure {{fa-icon}} don't break when we'll update to latest ember

This commit is contained in:
Régis Hanol 2015-01-07 18:14:31 +01:00
parent 2b3e311e8e
commit 8627a1e507
5 changed files with 30 additions and 30 deletions

View File

@ -29,7 +29,7 @@
<td class='excerpt'> <td class='excerpt'>
<h3> <h3>
{{#if flaggedPost.topic.isPrivateMessage}} {{#if flaggedPost.topic.isPrivateMessage}}
<span class="private-message-glyph">{{fa-icon envelope}}</span> <span class="private-message-glyph">{{fa-icon "envelope"}}</span>
{{/if}} {{/if}}
{{topic-status topic=flaggedPost.topic}} {{topic-status topic=flaggedPost.topic}}
<a href='{{unbound flaggedPost.url}}'>{{flaggedPost.topic.title}}</a> <a href='{{unbound flaggedPost.url}}'>{{flaggedPost.topic.title}}</a>

View File

@ -1,7 +1,7 @@
<div class="auto-close-fields"> <div class="auto-close-fields">
<div> <div>
<label> <label>
{{fa-icon clock-o}} {{fa-icon "clock-o"}}
{{i18n 'composer.auto_close.label'}} {{i18n 'composer.auto_close.label'}}
{{text-field value=autoCloseTime}} {{text-field value=autoCloseTime}}
{{autoCloseUnits}} {{autoCloseUnits}}

View File

@ -11,14 +11,14 @@
</button> </button>
{{/if}} {{/if}}
<button {{action "showLogin"}} class='btn btn-primary btn-small login-button'> <button {{action "showLogin"}} class='btn btn-primary btn-small login-button'>
{{fa-icon user}} {{i18n 'log_in'}} {{fa-icon "user"}} {{i18n 'log_in'}}
</button> </button>
{{/unless}} {{/unless}}
<ul class='icons clearfix' role='navigation'> <ul class='icons clearfix' role='navigation'>
{{#if currentUser}} {{#if currentUser}}
<li class='notifications'> <li class='notifications'>
<a class='icon' href="#" {{action "showNotifications" target="view"}} data-notifications="notifications-dropdown" id='user-notifications' title='{{i18n 'notifications.title'}}'> <a class='icon' href="#" {{action "showNotifications" target="view"}} data-notifications="notifications-dropdown" id='user-notifications' title='{{i18n 'notifications.title'}}'>
{{fa-icon comment label="notifications.title"}} {{fa-icon "comment" label="notifications.title"}}
</a> </a>
{{#if currentUser.unread_notifications}} {{#if currentUser.unread_notifications}}
<a href='#' class='badge-notification unread-notifications'>{{currentUser.unread_notifications}}</a> <a href='#' class='badge-notification unread-notifications'>{{currentUser.unread_notifications}}</a>
@ -31,7 +31,7 @@
<li> <li>
{{#if loginRequired}} {{#if loginRequired}}
<a id='search-button' class='icon expand' href='#' aria-hidden="true" {{action "showLogin"}}> <a id='search-button' class='icon expand' href='#' aria-hidden="true" {{action "showLogin"}}>
{{fa-icon search}} {{fa-icon "search"}}
</a> </a>
{{else}} {{else}}
<a id='search-button' <a id='search-button'
@ -39,7 +39,7 @@
href='#' href='#'
data-dropdown="search-dropdown" data-dropdown="search-dropdown"
title='{{i18n 'search.title'}}'> title='{{i18n 'search.title'}}'>
{{fa-icon search label="search.title"}} {{fa-icon "search" label="search.title"}}
</a> </a>
{{/if}} {{/if}}
</li> </li>
@ -50,7 +50,7 @@
aria-hidden="true" aria-hidden="true"
id="site-map" id="site-map"
{{action "showLogin"}}> {{action "showLogin"}}>
{{fa-icon bars}} {{fa-icon "bars"}}
</a> </a>
{{else}} {{else}}
<a class='icon' <a class='icon'
@ -59,7 +59,7 @@
href="#" href="#"
title='{{i18n 'site_map'}}' title='{{i18n 'site_map'}}'
id="site-map"> id="site-map">
{{fa-icon bars label="site_map"}} {{fa-icon "bars" label="site_map"}}
</a> </a>
{{/if}} {{/if}}
{{#if currentUser.site_flagged_posts_count}} {{#if currentUser.site_flagged_posts_count}}
@ -102,7 +102,7 @@
<div class="title-wrapper"> <div class="title-wrapper">
<h1> <h1>
{{#if showPrivateMessageGlyph}} {{#if showPrivateMessageGlyph}}
<span class="private-message-glyph">{{fa-icon envelope}}</span> <span class="private-message-glyph">{{fa-icon "envelope"}}</span>
{{/if}} {{/if}}
{{#if topic.details.loaded}} {{#if topic.details.loaded}}

View File

@ -2,48 +2,48 @@
<ul> <ul>
<li> <li>
<button {{action "toggleMultiSelect"}} class='btn btn-admin'>{{fa-icon tasks}} {{i18n 'topic.actions.multi_select'}}</button> <button {{action "toggleMultiSelect"}} class='btn btn-admin'>{{fa-icon "tasks"}} {{i18n 'topic.actions.multi_select'}}</button>
</li> </li>
{{#if details.can_delete}} {{#if details.can_delete}}
<li> <li>
<button {{action "deleteTopic"}} class='btn btn-admin btn-danger'>{{fa-icon trash-o}} {{i18n 'topic.actions.delete'}}</button> <button {{action "deleteTopic"}} class='btn btn-admin btn-danger'>{{fa-icon "trash-o"}} {{i18n 'topic.actions.delete'}}</button>
</li> </li>
{{/if}} {{/if}}
{{#if showRecover}} {{#if showRecover}}
<li> <li>
<button {{action "recoverTopic"}} class='btn btn-admin'>{{fa-icon undo}} {{i18n 'topic.actions.recover'}}</button> <button {{action "recoverTopic"}} class='btn btn-admin'>{{fa-icon "undo"}} {{i18n 'topic.actions.recover'}}</button>
</li> </li>
{{/if}} {{/if}}
<li> <li>
{{#if closed}} {{#if closed}}
<button {{action "toggleClosed"}} class='btn btn-admin'>{{fa-icon unlock}} {{i18n 'topic.actions.open'}}</button> <button {{action "toggleClosed"}} class='btn btn-admin'>{{fa-icon "unlock"}} {{i18n 'topic.actions.open'}}</button>
{{else}} {{else}}
<button {{action "toggleClosed"}} class='btn btn-admin'>{{fa-icon lock}} {{i18n 'topic.actions.close'}}</button> <button {{action "toggleClosed"}} class='btn btn-admin'>{{fa-icon "lock"}} {{i18n 'topic.actions.close'}}</button>
<button {{action "showAutoClose"}} class='btn btn-admin'>{{fa-icon clock-o}} {{i18n 'topic.actions.auto_close'}}</button> <button {{action "showAutoClose"}} class='btn btn-admin'>{{fa-icon "clock-o"}} {{i18n 'topic.actions.auto_close'}}</button>
{{/if}} {{/if}}
</li> </li>
{{#unless isPrivateMessage}} {{#unless isPrivateMessage}}
<li> <li>
{{#if isBanner}} {{#if isBanner}}
<button {{action "removeBanner"}} class='btn btn-admin'>{{fa-icon bullhorn}} {{i18n 'topic.actions.remove_banner'}}</button> <button {{action "removeBanner"}} class='btn btn-admin'>{{fa-icon "bullhorn"}} {{i18n 'topic.actions.remove_banner'}}</button>
{{else}} {{else}}
{{#if visible}} {{#if visible}}
<button {{action "makeBanner"}} class='btn btn-admin'>{{fa-icon bullhorn}} {{i18n 'topic.actions.make_banner'}}</button> <button {{action "makeBanner"}} class='btn btn-admin'>{{fa-icon "bullhorn"}} {{i18n 'topic.actions.make_banner'}}</button>
{{/if}} {{/if}}
{{/if}} {{/if}}
</li> </li>
<li> <li>
{{#if pinned_at}} {{#if pinned_at}}
<button {{action "togglePinned"}} class='btn btn-admin'>{{fa-icon thumb-tack}} {{i18n 'topic.actions.unpin'}}</button> <button {{action "togglePinned"}} class='btn btn-admin'>{{fa-icon "thumb-tack"}} {{i18n 'topic.actions.unpin'}}</button>
{{else}} {{else}}
{{#if visible}} {{#if visible}}
<button {{action "togglePinned"}} class='btn btn-admin'>{{fa-icon thumb-tack}} {{i18n 'topic.actions.pin'}}</button> <button {{action "togglePinned"}} class='btn btn-admin'>{{fa-icon "thumb-tack"}} {{i18n 'topic.actions.pin'}}</button>
<button {{action "togglePinnedGlobally"}} class='btn btn-admin'>{{fa-icon thumb-tack}} {{i18n 'topic.actions.pin_globally'}}</button> <button {{action "togglePinnedGlobally"}} class='btn btn-admin'>{{fa-icon "thumb-tack"}} {{i18n 'topic.actions.pin_globally'}}</button>
{{/if}} {{/if}}
{{/if}} {{/if}}
</li> </li>
@ -51,17 +51,17 @@
<li> <li>
{{#if archived}} {{#if archived}}
<button {{action "toggleArchived"}} class='btn btn-admin'>{{fa-icon folder}} {{i18n 'topic.actions.unarchive'}}</button> <button {{action "toggleArchived"}} class='btn btn-admin'>{{fa-icon "folder"}} {{i18n 'topic.actions.unarchive'}}</button>
{{else}} {{else}}
<button {{action "toggleArchived"}} class='btn btn-admin'>{{fa-icon folder}} {{i18n 'topic.actions.archive'}}</button> <button {{action "toggleArchived"}} class='btn btn-admin'>{{fa-icon "folder"}} {{i18n 'topic.actions.archive'}}</button>
{{/if}} {{/if}}
</li> </li>
<li> <li>
{{#if visible}} {{#if visible}}
<button {{action "toggleVisibility"}} class='btn btn-admin'>{{fa-icon eye-slash}} {{i18n 'topic.actions.invisible'}}</button> <button {{action "toggleVisibility"}} class='btn btn-admin'>{{fa-icon "eye-slash"}} {{i18n 'topic.actions.invisible'}}</button>
{{else}} {{else}}
<button {{action "toggleVisibility"}} class='btn btn-admin'>{{fa-icon eye}} {{i18n 'topic.actions.visible'}}</button> <button {{action "toggleVisibility"}} class='btn btn-admin'>{{fa-icon "eye"}} {{i18n 'topic.actions.visible'}}</button>
{{/if}} {{/if}}
</li> </li>

View File

@ -12,7 +12,7 @@
<div class="title-wrapper"> <div class="title-wrapper">
{{#if editingTopic}} {{#if editingTopic}}
{{#if isPrivateMessage}} {{#if isPrivateMessage}}
<span class="private-message-glyph">{{fa-icon envelope}}</span> <span class="private-message-glyph">{{fa-icon "envelope"}}</span>
{{autofocus-text-field id='edit-title' value=buffered.title maxLength=maxTitleLength}} {{autofocus-text-field id='edit-title' value=buffered.title maxLength=maxTitleLength}}
{{else}} {{else}}
{{autofocus-text-field id='edit-title' value=buffered.title maxLength=maxTitleLength}} {{autofocus-text-field id='edit-title' value=buffered.title maxLength=maxTitleLength}}
@ -22,12 +22,12 @@
{{plugin-outlet "edit-topic"}} {{plugin-outlet "edit-topic"}}
<button class='btn btn-primary btn-small no-text' {{action "finishedEditingTopic"}}>{{fa-icon check}}</button> <button class='btn btn-primary btn-small no-text' {{action "finishedEditingTopic"}}>{{fa-icon "check"}}</button>
<button class='btn btn-small no-text' {{action "cancelEditingTopic"}}>{{fa-icon times}}</button> <button class='btn btn-small no-text' {{action "cancelEditingTopic"}}>{{fa-icon "times"}}</button>
{{else}} {{else}}
<h1> <h1>
{{#unless is_warning}} {{#unless is_warning}}
<span class="private-message-glyph">{{fa-icon envelope}}</span> <span class="private-message-glyph">{{fa-icon "envelope"}}</span>
{{/unless}} {{/unless}}
{{#if details.loaded}} {{#if details.loaded}}
@ -38,7 +38,7 @@
{{/if}} {{/if}}
{{#if details.can_edit}} {{#if details.can_edit}}
<a href {{action "editTopic"}} class='edit-topic' title='{{i18n 'edit'}}'>{{fa-icon pencil}}</a> <a href {{action "editTopic"}} class='edit-topic' title='{{i18n 'edit'}}'>{{fa-icon "pencil"}}</a>
{{/if}} {{/if}}
</h1> </h1>
@ -118,7 +118,7 @@
<div>{{message}}</div> <div>{{message}}</div>
{{#if noRetry}} {{#if noRetry}}
{{#unless currentUser}} {{#unless currentUser}}
<button {{action "showLogin"}} class='btn btn-primary topic-retry'>{{fa-icon user}} {{i18n 'log_in'}}</button> <button {{action "showLogin"}} class='btn btn-primary topic-retry'>{{fa-icon "user"}} {{i18n 'log_in'}}</button>
{{/unless}} {{/unless}}
{{else}} {{else}}
<button class="btn btn-primary topic-retry" {{action "retryLoading"}}>{{fa-icon "refresh"}} {{i18n 'errors.buttons.again'}}</button> <button class="btn btn-primary topic-retry" {{action "retryLoading"}}>{{fa-icon "refresh"}} {{i18n 'errors.buttons.again'}}</button>