DEV: Convert <button> tags to {{d-button}} components (#8224)
* DEV: Convert <button> tags to {{d-button}} * Fixes
This commit is contained in:
parent
b7327d2c34
commit
d43e7354ec
|
@ -39,7 +39,10 @@
|
||||||
content=badgeGroupings
|
content=badgeGroupings
|
||||||
class="badge-selector"
|
class="badge-selector"
|
||||||
nameProperty="name"}}
|
nameProperty="name"}}
|
||||||
<button {{action "editGroupings"}} class='btn btn-icon no-text btn-default'>{{d-icon "pencil-alt"}}</button>
|
{{d-button
|
||||||
|
class="btn-default"
|
||||||
|
action=(route-action "editGroupings")
|
||||||
|
icon="pencil-alt"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -138,7 +141,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='buttons'>
|
<div class='buttons'>
|
||||||
<button {{action "save"}} disabled={{saving}} class='btn btn-primary'>{{i18n 'admin.badges.save'}}</button>
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "save")
|
||||||
|
disabled=saving
|
||||||
|
label="admin.badges.save"}}
|
||||||
<span class='saving'>{{savingStatus}}</span>
|
<span class='saving'>{{savingStatus}}</span>
|
||||||
{{#unless readOnly}}
|
{{#unless readOnly}}
|
||||||
<a {{action "destroy"}} class='delete-link'>{{i18n 'admin.badges.delete'}}</a>
|
<a {{action "destroy"}} class='delete-link'>{{i18n 'admin.badges.delete'}}</a>
|
||||||
|
|
|
@ -3,15 +3,31 @@
|
||||||
<h1>{{#if model.theme_id}}{{model.name}}{{else}}{{text-field class="style-name" value=model.name}}{{/if}}</h1>
|
<h1>{{#if model.theme_id}}{{model.name}}{{else}}{{text-field class="style-name" value=model.name}}{{/if}}</h1>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{#unless model.theme_id}}
|
{{#unless model.theme_id}}
|
||||||
<button {{action "save"}} disabled={{model.disableSave}} class='btn btn-primary'>{{i18n 'admin.customize.save'}}</button>
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "save")
|
||||||
|
disabled=model.disableSave
|
||||||
|
label="admin.customize.save"}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
<button {{action "copy" model}} class='btn btn-default'>{{d-icon "copy"}} {{i18n 'admin.customize.copy'}}</button>
|
{{d-button
|
||||||
<button {{action "copyToClipboard" model}} class='btn btn-default'>{{d-icon "far-clipboard"}} {{i18n 'admin.customize.copy_to_clipboard'}}</button>
|
class="btn-default"
|
||||||
|
action=(action "copy" model)
|
||||||
|
icon="copy"
|
||||||
|
label="admin.customize.copy"}}
|
||||||
|
{{d-button
|
||||||
|
class="btn-default"
|
||||||
|
action=(action "copyToClipboard" model)
|
||||||
|
icon="far-clipboard"
|
||||||
|
label="admin.customize.copy_to_clipboard"}}
|
||||||
{{#if model.theme_id}}
|
{{#if model.theme_id}}
|
||||||
{{i18n "admin.customize.theme_owner"}}
|
{{i18n "admin.customize.theme_owner"}}
|
||||||
{{#link-to "adminCustomizeThemes.show" model.theme_id}}{{model.theme_name}}{{/link-to}}
|
{{#link-to "adminCustomizeThemes.show" model.theme_id}}{{model.theme_name}}{{/link-to}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<button {{action "destroy"}} class='btn btn-danger'>{{d-icon "far-trash-alt"}} {{i18n 'admin.customize.delete'}}</button>
|
{{d-button
|
||||||
|
action=(action "destroy")
|
||||||
|
class="btn-danger"
|
||||||
|
icon="far-trash-alt"
|
||||||
|
label="admin.customize.delete"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="saving {{unless model.savingStatus 'hidden'}}">{{model.savingStatus}}</span>
|
<span class="saving {{unless model.savingStatus 'hidden'}}">{{model.savingStatus}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,8 +62,16 @@
|
||||||
<td class="hex">{{color-input hexValue=c.hex brightnessValue=c.brightness valid=c.valid}}</td>
|
<td class="hex">{{color-input hexValue=c.hex brightnessValue=c.brightness valid=c.valid}}</td>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
{{#unless model.theme_id}}
|
{{#unless model.theme_id}}
|
||||||
<button class="btn btn-default revert {{unless c.savedIsOverriden 'invisible'}}" {{action "revert" c}} title="{{i18n 'admin.customize.colors.revert_title'}}">{{i18n 'revert'}}</button>
|
{{d-button
|
||||||
<button class="btn btn-default undo {{unless c.changed 'invisible'}}" {{action "undo" c}} title="{{i18n 'admin.customize.colors.undo_title'}}">{{i18n 'undo'}}</button>
|
class=(concat "btn-default revert " (unless c.savedIsOverriden "invisible"))
|
||||||
|
action=(action "revert" c)
|
||||||
|
title="admin.customize.colors.revert_title"
|
||||||
|
label="revert"}}
|
||||||
|
{{d-button
|
||||||
|
class=(concat "btn-default undo " (unless c.changed "invisible"))
|
||||||
|
action=(action "undo" c)
|
||||||
|
title="admin.customize.colors.undo_title"
|
||||||
|
label="undo"}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -171,7 +171,10 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#d-button action=(action "editTheme") class="btn btn-default edit"}}{{i18n 'admin.customize.theme.edit_css_html'}}{{/d-button}}
|
{{d-button
|
||||||
|
class="btn-default edit"
|
||||||
|
action=(action "editTheme")
|
||||||
|
label="admin.customize.theme.edit_css_html"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-unit">
|
<div class="control-unit">
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
<div class='email-advanced-test'>
|
<div class='email-advanced-test'>
|
||||||
<label for="email">{{i18n 'admin.email.advanced_test.email'}}</label>
|
<label for="email">{{i18n 'admin.email.advanced_test.email'}}</label>
|
||||||
{{textarea name="email" value=email class="email-body"}}
|
{{textarea name="email" value=email class="email-body"}}
|
||||||
<button class='btn' {{action "run"}}>{{i18n 'admin.email.advanced_test.run'}}</button>
|
{{d-button
|
||||||
|
action=(action "run")
|
||||||
|
label="admin.email.advanced_test.run"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#conditional-loading-spinner condition=loading}}
|
{{#conditional-loading-spinner condition=loading}}
|
||||||
|
|
|
@ -20,7 +20,11 @@
|
||||||
{{text-field value=testEmailAddress placeholderKey="admin.email.test_email_address"}}
|
{{text-field value=testEmailAddress placeholderKey="admin.email.test_email_address"}}
|
||||||
</div>
|
</div>
|
||||||
<div class='controls'>
|
<div class='controls'>
|
||||||
<button class='btn btn-primary' {{action "sendTestEmail"}} disabled={{sendTestEmailDisabled}}>{{i18n 'admin.email.send_test'}}</button>
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "sendTestEmail")
|
||||||
|
disabled=sendTestEmailDisabled
|
||||||
|
label="admin.email.send_test"}}
|
||||||
{{#if sentTestEmailMessage}}<span class='result-message'>{{sentTestEmailMessage}}</span>{{/if}}
|
{{#if sentTestEmailMessage}}<span class='result-message'>{{sentTestEmailMessage}}</span>{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -6,7 +6,10 @@
|
||||||
{{date-picker-past value=lastSeen id="last-seen"}}
|
{{date-picker-past value=lastSeen id="last-seen"}}
|
||||||
<label>{{i18n 'admin.email.user'}}:</label>
|
<label>{{i18n 'admin.email.user'}}:</label>
|
||||||
{{user-selector single="true" usernames=username canReceiveUpdates="true"}}
|
{{user-selector single="true" usernames=username canReceiveUpdates="true"}}
|
||||||
<button class='btn btn-primary digest-refresh-button' {{action "refresh"}}>{{i18n 'admin.email.refresh'}}</button>
|
{{d-button
|
||||||
|
class="btn-primary digest-refresh-button"
|
||||||
|
action=(action "refresh")
|
||||||
|
label="admin.email.refresh"}}
|
||||||
<div class="toggle">
|
<div class="toggle">
|
||||||
<label>{{i18n 'admin.email.format'}}</label>
|
<label>{{i18n 'admin.email.format'}}</label>
|
||||||
{{#if showHtml}}
|
{{#if showHtml}}
|
||||||
|
@ -30,7 +33,11 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
<label>{{i18n 'admin.email.send_digest_label'}}</label>
|
<label>{{i18n 'admin.email.send_digest_label'}}</label>
|
||||||
{{text-field value=email placeholderKey="admin.email.test_email_address"}}
|
{{text-field value=email placeholderKey="admin.email.test_email_address"}}
|
||||||
<button class='btn btn-default' {{action "sendEmail"}} disabled={{sendEmailDisabled}}>{{i18n 'admin.email.send_digest'}}</button>
|
{{d-button
|
||||||
|
class="btn-default"
|
||||||
|
action=(action "sendEmail")
|
||||||
|
disabled=sendEmailDisabled
|
||||||
|
label="admin.email.send_digest"}}
|
||||||
{{#if sentEmail}}
|
{{#if sentEmail}}
|
||||||
<span class='result-message'>{{i18n 'admin.email.sent_test'}}</span>
|
<span class='result-message'>{{i18n 'admin.email.sent_test'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -51,4 +58,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{/conditional-loading-spinner}}
|
{{/conditional-loading-spinner}}
|
||||||
|
|
|
@ -20,7 +20,12 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th><img class="emoji emoji-custom" src="{{unbound e.url}}" title="{{unbound e.name}}"></th>
|
<th><img class="emoji emoji-custom" src="{{unbound e.url}}" title="{{unbound e.name}}"></th>
|
||||||
<th>:{{e.name}}:</th>
|
<th>:{{e.name}}:</th>
|
||||||
<th><button {{action "destroy" e}} class='btn btn-danger no-text pull-right'>{{d-icon "far-trash-alt"}} </button></th>
|
<th>
|
||||||
|
{{d-button
|
||||||
|
action=(action "destroy" e)
|
||||||
|
class="btn-danger pull-right"
|
||||||
|
icon="far-trash-alt"}}
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
<p>
|
<p>
|
||||||
{{i18n 'admin.logs.screened_emails.description'}}
|
{{i18n 'admin.logs.screened_emails.description'}}
|
||||||
</p>
|
</p>
|
||||||
<button class="btn btn-default screened-email-export" {{action "exportScreenedEmailList"}} title="{{i18n 'admin.export_csv.button_title.screened_email'}}">{{d-icon "download"}}{{i18n 'admin.export_csv.button_text'}}</button>
|
|
||||||
|
{{d-button
|
||||||
|
class="btn-default screened-email-export"
|
||||||
|
action=(action "exportScreenedEmailList")
|
||||||
|
title="admin.export_csv.button_title.screened_email"
|
||||||
|
icon="download"
|
||||||
|
label="admin.export_csv.button_text"}}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
<p>
|
<p>
|
||||||
{{i18n 'admin.logs.screened_urls.description'}}
|
{{i18n 'admin.logs.screened_urls.description'}}
|
||||||
</p>
|
</p>
|
||||||
<button class="btn btn-default" {{action "exportScreenedUrlList"}} title="{{i18n 'admin.export_csv.button_title.screened_url'}}">{{d-icon "download"}}{{i18n 'admin.export_csv.button_text'}}</button>
|
{{d-button
|
||||||
|
class="btn-default"
|
||||||
|
action=(action "exportScreenedUrlList")
|
||||||
|
title="admin.export_csv.button_title.screened_url"
|
||||||
|
icon="download"
|
||||||
|
label="admin.export_csv.button_text"}}
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
{{#conditional-loading-spinner condition=loading}}
|
{{#conditional-loading-spinner condition=loading}}
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
valueAttribute="base_scheme_id"}}
|
valueAttribute="base_scheme_id"}}
|
||||||
{{/d-modal-body}}
|
{{/d-modal-body}}
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class='btn btn-primary' {{action "selectBase"}}>{{d-icon 'plus'}}{{i18n 'admin.customize.new'}}</button>
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "selectBase")
|
||||||
|
icon="plus"
|
||||||
|
label="admin.customize.new"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
{{#d-modal-body title="admin.backups.operations.backup.confirm"}}
|
{{#d-modal-body title="admin.backups.operations.backup.confirm"}}
|
||||||
<button {{action "startBackupWithUploads"}} class="btn btn-primary">{{i18n 'yes_value'}}</button>
|
{{d-button
|
||||||
<button {{action "startBackupWithoutUploads"}} class="btn">{{i18n 'admin.backups.operations.backup.without_uploads'}}</button>
|
class="btn-primary"
|
||||||
<button {{action "cancel"}} class="btn">{{i18n 'no_value'}}</button>
|
action=(action "startBackupWithUploads")
|
||||||
|
label="yes_value"}}
|
||||||
|
{{d-button
|
||||||
|
action=(action "startBackupWithoutUploads")
|
||||||
|
label="admin.backups.operations.backup.without_uploads"}}
|
||||||
|
{{d-button
|
||||||
|
action=(action "cancel")
|
||||||
|
label="no_value"}}
|
||||||
{{/d-modal-body}}
|
{{/d-modal-body}}
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
{{{diff}}}
|
{{{diff}}}
|
||||||
{{/d-modal-body}}
|
{{/d-modal-body}}
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
{{d-button class="btn btn-primary" action=(route-action "closeModal") label="close"}}
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(route-action "closeModal")
|
||||||
|
label="close"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -22,7 +22,10 @@
|
||||||
<label>{{i18n 'admin.badges.reason'}}</label>
|
<label>{{i18n 'admin.badges.reason'}}</label>
|
||||||
{{input type="text" value=badgeReason}}<br><small>{{i18n 'admin.badges.reason_help'}}</small>
|
{{input type="text" value=badgeReason}}<br><small>{{i18n 'admin.badges.reason_help'}}</small>
|
||||||
</div>
|
</div>
|
||||||
<button class='btn btn-primary' {{action "grantBadge"}}>{{i18n 'admin.badges.grant'}}</button>
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "grantBadge")
|
||||||
|
label="admin.badges.grant"}}
|
||||||
</form>
|
</form>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -52,9 +55,14 @@
|
||||||
<td>{{age-with-tooltip userBadge.granted_at}}</td>
|
<td>{{age-with-tooltip userBadge.granted_at}}</td>
|
||||||
<td>
|
<td>
|
||||||
{{#if userBadge.grouped}}
|
{{#if userBadge.grouped}}
|
||||||
<button class='btn' {{action "expandGroup" userBadge}}>{{{i18n 'admin.badges.expand'}}}</button>
|
{{d-button
|
||||||
|
action=(action "expandGroup" userBadge)
|
||||||
|
label="admin.badges.expand"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<button class='btn btn-danger' {{action "revokeBadge" userBadge}}>{{i18n 'admin.badges.revoke'}}</button>
|
{{d-button
|
||||||
|
class="btn-danger"
|
||||||
|
action=(action "revokeBadge" userBadge)
|
||||||
|
label="admin.badges.revoke"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -1,16 +1,22 @@
|
||||||
<div class="admin-title">
|
<div class="admin-title">
|
||||||
<h2>{{title}}</h2>
|
<h2>{{title}}</h2>
|
||||||
{{#if canCheckEmails}}
|
{{#if canCheckEmails}}
|
||||||
{{#if showEmails}}
|
{{#if showEmails}}
|
||||||
<button {{action "toggleEmailVisibility"}} class="hide-emails btn btn-default">{{i18n 'admin.users.hide_emails'}}</button>
|
{{d-button
|
||||||
{{else}}
|
action=(action "toggleEmailVisibility")
|
||||||
<button {{action "toggleEmailVisibility"}} class="show-emails btn btn-default">{{i18n 'admin.users.show_emails'}}</button>
|
class="hide-emails btn-default"
|
||||||
{{/if}}
|
label="admin.users.hide_emails"}}
|
||||||
|
{{else}}
|
||||||
|
{{d-button
|
||||||
|
action=(action "toggleEmailVisibility")
|
||||||
|
class="show-emails btn-default"
|
||||||
|
label="admin.users.show_emails"}}
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='username controls'>
|
<div class='username controls'>
|
||||||
{{text-field value=listFilter placeholder=searchHint}}
|
{{text-field value=listFilter placeholder=searchHint}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#load-more selector=".users-list tr" action=(action "loadMore")}}
|
{{#load-more selector=".users-list tr" action=(action "loadMore")}}
|
||||||
|
|
|
@ -8,11 +8,6 @@ export default Component.extend({
|
||||||
saved: false,
|
saved: false,
|
||||||
saving: false,
|
saving: false,
|
||||||
|
|
||||||
@computed("saving")
|
|
||||||
savingStatus(saving) {
|
|
||||||
return saving ? I18n.t("saving") : I18n.t("save");
|
|
||||||
},
|
|
||||||
|
|
||||||
@computed("selectableUserBadges", "selectedUserBadgeId")
|
@computed("selectableUserBadges", "selectedUserBadgeId")
|
||||||
selectedUserBadge(selectableUserBadges, selectedUserBadgeId) {
|
selectedUserBadge(selectableUserBadges, selectedUserBadgeId) {
|
||||||
return selectableUserBadges.findBy("id", parseInt(selectedUserBadgeId));
|
return selectableUserBadges.findBy("id", parseInt(selectedUserBadgeId));
|
||||||
|
|
|
@ -21,11 +21,6 @@ export default Controller.extend(ModalFunctionality, {
|
||||||
return saving || isEmpty(newUser);
|
return saving || isEmpty(newUser);
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("saving")
|
|
||||||
buttonTitle(saving) {
|
|
||||||
return saving ? I18n.t("saving") : I18n.t("topic.change_owner.action");
|
|
||||||
},
|
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
this.setProperties({
|
this.setProperties({
|
||||||
saving: false,
|
saving: false,
|
||||||
|
|
|
@ -16,7 +16,6 @@ import {
|
||||||
import Category from "discourse/models/category";
|
import Category from "discourse/models/category";
|
||||||
import { escapeExpression } from "discourse/lib/utilities";
|
import { escapeExpression } from "discourse/lib/utilities";
|
||||||
import { setTransient } from "discourse/lib/page-tracker";
|
import { setTransient } from "discourse/lib/page-tracker";
|
||||||
import { iconHTML } from "discourse-common/lib/icon-library";
|
|
||||||
import Composer from "discourse/models/composer";
|
import Composer from "discourse/models/composer";
|
||||||
import { scrollTop } from "discourse/mixins/scroll-top";
|
import { scrollTop } from "discourse/mixins/scroll-top";
|
||||||
|
|
||||||
|
@ -199,11 +198,6 @@ export default Controller.extend({
|
||||||
return this.currentUser && userCanCreateTopic;
|
return this.currentUser && userCanCreateTopic;
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("expanded")
|
|
||||||
searchAdvancedIcon(expanded) {
|
|
||||||
return iconHTML(expanded ? "caret-down" : "caret-right");
|
|
||||||
},
|
|
||||||
|
|
||||||
@computed("page")
|
@computed("page")
|
||||||
isLastPage(page) {
|
isLastPage(page) {
|
||||||
return page === PAGE_LIMIT;
|
return page === PAGE_LIMIT;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div class='grant-info-item'>
|
<div class='grant-info-item'>
|
||||||
{{i18n 'badges.allow_title'}}
|
{{i18n 'badges.allow_title'}}
|
||||||
{{d-button
|
{{d-button
|
||||||
class="btn btn-default pad-left no-text"
|
class="btn-default pad-left"
|
||||||
action=(action "toggleSetUserTitle")
|
action=(action "toggleSetUserTitle")
|
||||||
icon="pencil-alt"}}
|
icon="pencil-alt"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -18,7 +18,11 @@
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<button class="btn btn-primary" disabled={{saving}} {{action "save"}}> {{savingStatus}} </button>
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "save")
|
||||||
|
disabled=saving
|
||||||
|
label=(if saving "saving" "save")}}
|
||||||
{{#if saved}}{{i18n 'saved'}}{{/if}}
|
{{#if saved}}{{i18n 'saved'}}{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{#if canCreateTopic}}
|
{{#if canCreateTopic}}
|
||||||
{{d-button
|
{{d-button
|
||||||
|
class="btn-default"
|
||||||
id="create-topic"
|
id="create-topic"
|
||||||
class="btn btn-default"
|
|
||||||
action=action
|
action=action
|
||||||
icon="plus"
|
icon="plus"
|
||||||
disabled=disabled
|
disabled=disabled
|
||||||
|
|
|
@ -47,7 +47,10 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#unless category.is_special}}
|
{{#unless category.is_special}}
|
||||||
<button {{action "editPermissions"}} class="btn btn-default btn-default edit-permission">{{i18n 'category.edit_permissions'}}</button>
|
{{d-button
|
||||||
|
action=(action "editPermissions")
|
||||||
|
class="btn-default edit-permission"
|
||||||
|
label="category.edit_permissions"}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{{#if ip}}
|
{{#if ip}}
|
||||||
<button class="btn btn-default" {{action "lookup"}}>
|
{{d-button
|
||||||
{{d-icon "globe"}}
|
class="btn-default"
|
||||||
{{i18n "admin.user.ip_lookup"}}
|
action=(action "lookup")
|
||||||
</button>
|
icon="globe"
|
||||||
|
label="admin.user.ip_lookup"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if show}}
|
{{#if show}}
|
||||||
<div class="location-box">
|
<div class="location-box">
|
||||||
|
@ -44,10 +45,13 @@
|
||||||
{{i18n "ip_lookup.other_accounts"}}
|
{{i18n "ip_lookup.other_accounts"}}
|
||||||
<strong>{{totalOthersWithSameIP}}</strong>
|
<strong>{{totalOthersWithSameIP}}</strong>
|
||||||
{{#if other_accounts.length}}
|
{{#if other_accounts.length}}
|
||||||
<button class="btn btn-danger pull-right" {{action "deleteOtherAccounts"}}>
|
{{#d-button
|
||||||
{{d-icon "warning"}}
|
class="btn-danger pull-right"
|
||||||
|
action=(action "deleteOtherAccounts")
|
||||||
|
icon="warning"
|
||||||
|
}}
|
||||||
{{i18n "ip_lookup.delete_other_accounts" count=otherAccountsToDelete}}
|
{{i18n "ip_lookup.delete_other_accounts" count=otherAccountsToDelete}}
|
||||||
</button>
|
{{/d-button}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
{{d-button class="btn btn-primary" action=(route-action "closeModal") label="close"}}
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(route-action "closeModal")
|
||||||
|
label="close"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -72,6 +72,16 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<button {{action "save"}} disabled={{savingDisabled}} class='btn btn-default'>{{i18n 'tagging.groups.save'}}</button>
|
{{d-button
|
||||||
<button {{action "destroy"}} disabled={{buffered.isNew}} class='btn btn-danger'>{{d-icon "far-trash-alt"}} {{i18n 'tagging.groups.delete'}}</button>
|
class="btn-default"
|
||||||
|
action=(action "save")
|
||||||
|
disabled=savingDisabled
|
||||||
|
label="tagging.groups.save"}}
|
||||||
|
|
||||||
|
{{d-button
|
||||||
|
class="btn-danger"
|
||||||
|
action=(action "destroy")
|
||||||
|
disabled=buffered.isNew
|
||||||
|
icon="far-trash-alt"
|
||||||
|
label="tagging.groups.delete"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -48,9 +48,11 @@
|
||||||
{{d-icon child.icon class="icon"}}
|
{{d-icon child.icon class="icon"}}
|
||||||
{{#each child.items as |grandChild|}}
|
{{#each child.items as |grandChild|}}
|
||||||
{{#if grandChild.removableBookmark}}
|
{{#if grandChild.removableBookmark}}
|
||||||
<button class="btn btn-default remove-bookmark" {{action removeBookmark grandChild}}>
|
{{d-button
|
||||||
{{d-icon 'times'}} {{i18n "bookmarks.remove"}}
|
class="btn-default remove-bookmark"
|
||||||
</button>
|
action=(action removeBookmark grandChild)
|
||||||
|
icon="times"
|
||||||
|
label="bookmarks.remove"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<a href={{grandChild.userUrl}} data-user-card={{grandChild.username}} class='avatar-link'><div class='avatar-wrapper'>{{avatar grandChild imageSize="tiny" extraClasses="actor" ignoreTitle="true" avatarTemplatePath="acting_avatar_template"}}</div></a>
|
<a href={{grandChild.userUrl}} data-user-card={{grandChild.username}} class='avatar-link'><div class='avatar-wrapper'>{{avatar grandChild imageSize="tiny" extraClasses="actor" ignoreTitle="true" avatarTemplatePath="acting_avatar_template"}}</div></a>
|
||||||
{{#if grandChild.edit_reason}} — <span class="edit-reason">{{grandChild.edit_reason}}</span>{{/if}}
|
{{#if grandChild.edit_reason}} — <span class="edit-reason">{{grandChild.edit_reason}}</span>{{/if}}
|
||||||
|
|
|
@ -5,10 +5,20 @@
|
||||||
{{#if showDismissAtTop}}
|
{{#if showDismissAtTop}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{#if showDismissRead}}
|
{{#if showDismissRead}}
|
||||||
<button title="{{i18n 'topics.bulk.dismiss_tooltip'}}" id='dismiss-topics-top' class='btn btn-default dismiss-read' {{action "dismissReadPosts"}}>{{i18n 'topics.bulk.dismiss_button'}}</button>
|
{{d-button
|
||||||
|
class="btn-default dismiss-read"
|
||||||
|
id="dismiss-topics-top"
|
||||||
|
action=(action "dismissReadPosts")
|
||||||
|
title="topics.bulk.dismiss_tooltip"
|
||||||
|
label="topics.bulk.dismiss_button"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if showResetNew}}
|
{{#if showResetNew}}
|
||||||
<button id='dismiss-new-top' class='btn btn-default dismiss-read' {{action "resetNew"}}>{{d-icon "check"}} {{i18n 'topics.bulk.dismiss_new'}}</button>
|
{{d-button
|
||||||
|
class="btn-default dismiss-read"
|
||||||
|
id="dismiss-new-top"
|
||||||
|
action=(action "resetNew")
|
||||||
|
icon="check"
|
||||||
|
label="topics.bulk.dismiss_new"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -70,11 +80,20 @@
|
||||||
{{conditional-loading-spinner condition=model.loadingMore}}
|
{{conditional-loading-spinner condition=model.loadingMore}}
|
||||||
{{#if allLoaded}}
|
{{#if allLoaded}}
|
||||||
{{#if showDismissRead}}
|
{{#if showDismissRead}}
|
||||||
<button title="{{i18n 'topics.bulk.dismiss_tooltip'}}" id='dismiss-topics' class='btn btn-default dismiss-read' {{action "dismissReadPosts"}}>{{i18n 'topics.bulk.dismiss_button'}}</button>
|
{{d-button
|
||||||
|
class="btn-default dismiss-read"
|
||||||
|
id="dismiss-topics"
|
||||||
|
action=(action "dismissReadPosts")
|
||||||
|
title="topics.bulk.dismiss_tooltip"
|
||||||
|
label="topics.bulk.dismiss_button"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if showResetNew}}
|
{{#if showResetNew}}
|
||||||
<button id='dismiss-new' class='btn btn-default dismiss-read' {{action "resetNew"}}>
|
{{d-button
|
||||||
{{d-icon "check"}} {{i18n 'topics.bulk.dismiss_new'}}</button>
|
class="btn-default dismiss-read"
|
||||||
|
action=(action "resetNew")
|
||||||
|
id="dismiss-new"
|
||||||
|
icon="check"
|
||||||
|
label="topics.bulk.dismiss_new"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#footer-message education=footerEducation message=footerMessage}}
|
{{#footer-message education=footerEducation message=footerMessage}}
|
||||||
|
|
|
@ -179,9 +179,11 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if site.mobileView}}
|
{{#if site.mobileView}}
|
||||||
<button class="search-advanced-title btn" {{action "toggleAdvancedSearch"}}>
|
{{d-button
|
||||||
{{{searchAdvancedIcon}}} {{i18n "search.advanced.title"}}
|
class="search-advanced-title"
|
||||||
</button>
|
action=(action "toggleAdvancedSearch")
|
||||||
|
icon=(if expanded "caret-down" "caret-right")
|
||||||
|
label="search.advanced.title"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="search-advanced-title">
|
<span class="search-advanced-title">
|
||||||
{{i18n "search.advanced.title"}}
|
{{i18n "search.advanced.title"}}
|
||||||
|
|
|
@ -56,7 +56,11 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<button class='btn btn-primary' {{action "submit"}} disabled={{submitDisabled}}>{{i18n 'invites.accept_invite'}}</button>
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "submit")
|
||||||
|
disabled=submitDisabled
|
||||||
|
label="invites.accept_invite"}}
|
||||||
|
|
||||||
{{#if errorMessage}}
|
{{#if errorMessage}}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
|
@ -30,12 +30,20 @@
|
||||||
{{conditional-loading-spinner condition=model.loadingMore}}
|
{{conditional-loading-spinner condition=model.loadingMore}}
|
||||||
{{#if allLoaded}}
|
{{#if allLoaded}}
|
||||||
{{#if showDismissRead}}
|
{{#if showDismissRead}}
|
||||||
<button title="{{i18n 'topics.bulk.dismiss_tooltip'}}" id='dismiss-topics' class='btn btn-default dismiss-read' {{action "dismissReadPosts"}}>{{i18n 'topics.bulk.dismiss_button'}}</button>
|
{{d-button
|
||||||
|
class="btn-default dismiss-read"
|
||||||
|
id="dismiss-topics"
|
||||||
|
action=(action "dismissReadPosts")
|
||||||
|
title="topics.bulk.dismiss_tooltip"
|
||||||
|
label="topics.bulk.dismiss_button"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if showResetNew}}
|
{{#if showResetNew}}
|
||||||
<button id='dismiss-new' class='btn btn-default dismiss-read' {{action "resetNew"}}>
|
{{d-button
|
||||||
{{d-icon "check"}}
|
class="btn-default dismiss-read"
|
||||||
{{i18n 'topics.bulk.dismiss_new'}}</button>
|
id="dismiss-new"
|
||||||
|
action=(action "resetNew")
|
||||||
|
icon="check"
|
||||||
|
label="topics.bulk.dismiss_new"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#footer-message education=footerEducation message=footerMessage}}
|
{{#footer-message education=footerEducation message=footerMessage}}
|
||||||
|
|
|
@ -30,6 +30,10 @@
|
||||||
{{/d-modal-body}}
|
{{/d-modal-body}}
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
{{d-button class="btn btn-primary" icon="lock" label="user.auth_tokens.secure_account" action=(action "highlightSecure")}}
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "highlightSecure")
|
||||||
|
icon="lock"
|
||||||
|
label="user.auth_tokens.secure_account"}}
|
||||||
{{d-modal-cancel close=(route-action "closeModal")}}
|
{{d-modal-cancel close=(route-action "closeModal")}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,4 +7,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
<button class='btn' disabled={{disabled}} {{action "changeNotificationLevel"}}>{{i18n 'topics.bulk.notification_level'}}</button>
|
{{d-button
|
||||||
|
disabled=disabled
|
||||||
|
action=(action "changeNotificationLevel")
|
||||||
|
label="topics.bulk.notification_level"}}
|
||||||
|
|
|
@ -11,5 +11,9 @@
|
||||||
{{/d-modal-body}}
|
{{/d-modal-body}}
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class='btn btn-primary' disabled={{buttonDisabled}} {{action "changeOwnershipOfPosts"}}>{{buttonTitle}}</button>
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "changeOwnershipOfPosts")
|
||||||
|
disabled=buttonDisabled
|
||||||
|
label=(if saving "saving" "topic.change_owner.action")}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -113,10 +113,14 @@
|
||||||
|
|
||||||
{{#if showCreateForm}}
|
{{#if showCreateForm}}
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class='btn btn-large btn-primary' disabled={{submitDisabled}} {{action "createAccount"}}>{{i18n 'create_account.title'}}</button>
|
{{d-button
|
||||||
|
class="btn-large btn-primary"
|
||||||
|
action=(action "createAccount")
|
||||||
|
disabled=submitDisabled
|
||||||
|
label="create_account.title"}}
|
||||||
|
|
||||||
{{#conditional-loading-spinner condition=formSubmitted size="small"}}
|
{{#conditional-loading-spinner condition=formSubmitted size="small"}}
|
||||||
{{#d-button class="btn btn-large" id="login-link" action=(route-action "showLogin")}}
|
{{#d-button class="btn-large" id="login-link" action=(route-action "showLogin")}}
|
||||||
{{i18n "log_in"}}
|
{{i18n "log_in"}}
|
||||||
{{/d-button}}
|
{{/d-button}}
|
||||||
{{/conditional-loading-spinner}}
|
{{/conditional-loading-spinner}}
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
{{/d-modal-body}}
|
{{/d-modal-body}}
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class='btn btn-primary' {{action "dismissReadTopics" dismissTopics}}>
|
{{d-button
|
||||||
{{d-icon "check"}} {{i18n 'topics.bulk.dismiss'}}</button>
|
class="btn-primary"
|
||||||
|
action=(route-action "dismissReadTopics" dismissTopics)
|
||||||
|
icon="check"
|
||||||
|
label="topics.bulk.dismiss"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
{{/d-modal-body}}
|
{{/d-modal-body}}
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class='btn btn-primary' disabled={{buttonDisabled}} {{action "grantBadge"}}>
|
{{d-button
|
||||||
{{i18n 'admin.badges.grant'}}
|
class="btn-primary"
|
||||||
</button>
|
disabled=buttonDisabled
|
||||||
|
action=(action "grantBadge")
|
||||||
|
label="admin.badges.grant"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -67,9 +67,11 @@
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if showSignupLink}}
|
{{#if showSignupLink}}
|
||||||
<button class="btn btn-large" id="new-account-link" {{action "createAccount"}}>
|
{{d-button
|
||||||
{{i18n 'create_account.title'}}
|
class="btn-large"
|
||||||
</button>
|
id="new-account-link"
|
||||||
|
action=(action "createAccount")
|
||||||
|
label="create_account.title"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,9 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{#unless webauthnUnsupported}}
|
{{#unless webauthnUnsupported}}
|
||||||
{{d-button action=(action "registerSecurityKey")
|
{{d-button
|
||||||
class="btn btn-primary add-totp"
|
class="btn-primary add-totp"
|
||||||
|
action=(action "registerSecurityKey")
|
||||||
label="user.second_factor.security_key.register"}}
|
label="user.second_factor.security_key.register"}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -46,8 +46,9 @@
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{d-button action=(action "enableSecondFactor")
|
{{d-button
|
||||||
class="btn btn-primary add-totp"
|
class="btn-primary add-totp"
|
||||||
|
action=(action "enableSecondFactor")
|
||||||
label="enable"}}
|
label="enable"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,14 +19,14 @@
|
||||||
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
{{d-button
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
action=(action "generateSecondFactorCodes")
|
action=(action "generateSecondFactorCodes")
|
||||||
class="btn btn-primary"
|
|
||||||
disabled=loading
|
disabled=loading
|
||||||
label=generateBackupCodeBtnLabel}}
|
label=generateBackupCodeBtnLabel}}
|
||||||
{{#if backupEnabled}}
|
{{#if backupEnabled}}
|
||||||
{{d-button
|
{{d-button
|
||||||
|
class="btn-danger"
|
||||||
action=(action "disableSecondFactorBackup")
|
action=(action "disableSecondFactorBackup")
|
||||||
class="btn btn-danger"
|
|
||||||
disabled=loading
|
disabled=loading
|
||||||
label="user.second_factor_backup.disable"}}
|
label="user.second_factor_backup.disable"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -49,7 +49,11 @@
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{#d-button class="btn btn-primary" action=(action "changeEmail") disabled=saveDisabled}}
|
{{#d-button
|
||||||
|
class="btn-primary"
|
||||||
|
action=(action "changeEmail")
|
||||||
|
disabled=saveDisabled
|
||||||
|
}}
|
||||||
{{saveButtonText}}
|
{{saveButtonText}}
|
||||||
{{/d-button}}
|
{{/d-button}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -109,8 +109,9 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<h2>{{i18n "user.second_factor.disable_title"}}</h2>
|
<h2>{{i18n "user.second_factor.disable_title"}}</h2>
|
||||||
{{d-button action=(action "disableAllSecondFactors")
|
{{d-button
|
||||||
class="btn btn-danger"
|
class="btn-danger"
|
||||||
|
action=(action "disableAllSecondFactors")
|
||||||
disabled=loading
|
disabled=loading
|
||||||
label="disable"}}
|
label="disable"}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -137,8 +138,10 @@
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{d-button action=(action "confirmPassword")
|
{{d-button
|
||||||
class="btn-primary"
|
class="btn-primary"
|
||||||
|
type="submit"
|
||||||
|
action=(action "confirmPassword")
|
||||||
disabled=loading
|
disabled=loading
|
||||||
label="continue"}}
|
label="continue"}}
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,15 @@
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<button {{action "changeUsername"}} disabled={{saveDisabled}} class="btn btn-primary">{{saveButtonText}}</button>
|
{{#d-button
|
||||||
{{#if saved}}{{i18n 'saved'}}{{/if}}
|
class="btn-primary"
|
||||||
|
action=(action "changeUsername")
|
||||||
|
disabled=saveDisabled
|
||||||
|
}}
|
||||||
|
{{saveButtonText}}
|
||||||
|
{{/d-button}}
|
||||||
|
|
||||||
|
{{#if saved}}{{i18n 'saved'}}{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,11 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{{#if this.siteSettings.tagging_enabled}}
|
{{#if this.siteSettings.tagging_enabled}}
|
||||||
<button {{action "newTagGroup"}} class='btn btn-default'>{{d-icon "plus"}}{{i18n 'tagging.groups.new'}}</button>
|
{{d-button
|
||||||
|
class="btn-default"
|
||||||
|
action=(action "newTagGroup")
|
||||||
|
icon="plus"
|
||||||
|
label="tagging.groups.new"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -58,37 +58,46 @@
|
||||||
<section class='user-content'>
|
<section class='user-content'>
|
||||||
|
|
||||||
<div class="list-actions">
|
<div class="list-actions">
|
||||||
|
|
||||||
{{#unless site.mobileView}}
|
{{#unless site.mobileView}}
|
||||||
{{#if showToggleBulkSelect}}
|
{{#if showToggleBulkSelect}}
|
||||||
<button {{action "toggleBulkSelect"}} class="btn btn-default bulk-select no-text" title="{{i18n "user.messages.bulk_select"}}">
|
{{d-button
|
||||||
{{d-icon "list"}}
|
class="btn-default bulk-select"
|
||||||
</button>
|
action=(action "toggleBulkSelect")
|
||||||
|
title="user.messages.bulk_select"
|
||||||
|
icon="list"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if site.mobileView}}
|
{{#if site.mobileView}}
|
||||||
{{#if showNewPM}}
|
{{#if showNewPM}}
|
||||||
{{d-button class="btn-primary new-private-message" action=(route-action "composePrivateMessage") icon="envelope" label="user.new_private_message"}}
|
{{d-button
|
||||||
|
class="btn-primary new-private-message"
|
||||||
|
action=(route-action "composePrivateMessage")
|
||||||
|
icon="envelope"
|
||||||
|
label="user.new_private_message"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if canArchive}}
|
{{#if canArchive}}
|
||||||
<button {{action "archive"}} class="btn btn-default btn-archive">
|
{{d-button
|
||||||
{{i18n "user.messages.move_to_archive"}}
|
class="btn-default btn-archive"
|
||||||
</button>
|
action=(action "archive")
|
||||||
|
label="user.messages.move_to_archive"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if canMoveToInbox}}
|
{{#if canMoveToInbox}}
|
||||||
<button {{action "toInbox"}} class="btn btn-default btn-to-inbox">
|
{{d-button
|
||||||
{{i18n "user.messages.move_to_inbox"}}
|
class="btn-default btn-to-inbox"
|
||||||
</button>
|
action=(action "toInbox")
|
||||||
|
label="user.messages.move_to_inbox"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if bulkSelectEnabled}}
|
{{#if bulkSelectEnabled}}
|
||||||
<button {{action "selectAll"}} class="btn btn-default btn-select-all">
|
{{d-button
|
||||||
{{i18n "user.messages.select_all"}}
|
class="btn-default btn-select-all"
|
||||||
</button>
|
action=(action "selectAll")
|
||||||
|
label="user.messages.select_all"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isGroup}}
|
{{#if isGroup}}
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{{#d-button action=(action "save") disabled=model.isSaving class="btn btn-primary save-user"}}
|
{{#d-button
|
||||||
|
class="btn-primary save-user"
|
||||||
|
action=(action "save")
|
||||||
|
disabled=model.isSaving
|
||||||
|
}}
|
||||||
{{saveButtonText}}
|
{{saveButtonText}}
|
||||||
{{/d-button}}
|
{{/d-button}}
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,10 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{{#if shouldDisplayClearableButton}}
|
{{#if shouldDisplayClearableButton}}
|
||||||
<button class="btn-clear" {{action onClearSelection bubbles=false}}>
|
{{d-button
|
||||||
{{d-icon 'times'}}
|
class="btn-clear"
|
||||||
</button>
|
action=(action onClearSelection bubbles=false)
|
||||||
|
icon="times"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{d-icon caretIcon class="caret-icon"}}
|
{{d-icon caretIcon class="caret-icon"}}
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if shouldDisplayClearableButton}}
|
{{#if shouldDisplayClearableButton}}
|
||||||
<button class="btn-clear" {{action onClearSelection bubbles=false}}>
|
{{d-button
|
||||||
{{d-icon 'times'}}
|
class="btn-clear"
|
||||||
</button>
|
action=(action onClearSelection bubbles=false)
|
||||||
|
icon="times"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{d-icon caretIcon class="caret-icon"}}
|
{{d-icon caretIcon class="caret-icon"}}
|
||||||
|
|
|
@ -468,7 +468,6 @@
|
||||||
}
|
}
|
||||||
.color-scheme {
|
.color-scheme {
|
||||||
.controls {
|
.controls {
|
||||||
span,
|
|
||||||
button,
|
button,
|
||||||
a {
|
a {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
|
|
@ -136,7 +136,8 @@
|
||||||
|
|
||||||
<div class="modal-footer discourse-local-dates-create-modal-footer">
|
<div class="modal-footer discourse-local-dates-create-modal-footer">
|
||||||
{{#if isValid}}
|
{{#if isValid}}
|
||||||
{{d-button class="btn btn-primary"
|
{{d-button
|
||||||
|
class="btn-primary"
|
||||||
action=(action "save")
|
action=(action "save")
|
||||||
label="discourse_local_dates.create.form.insert"}}
|
label="discourse_local_dates.create.form.insert"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue