Add btn-default class to all default buttons (#6521)
This commit is contained in:
parent
0140844eb0
commit
c219a5fb1e
|
@ -140,7 +140,7 @@ export default Ember.Component.extend({
|
|||
const modes = forcedModes ? forcedModes.split(",") : reportModes;
|
||||
|
||||
return Ember.makeArray(modes).map(mode => {
|
||||
const base = `mode-btn ${mode}`;
|
||||
const base = `btn-default mode-btn ${mode}`;
|
||||
const cssClass = currentMode === mode ? `${base} is-current` : base;
|
||||
|
||||
return {
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
{{/if}}
|
||||
</td>
|
||||
<td class="key-controls">
|
||||
{{d-button action="regenerateKey" actionParam=k icon="undo" label='admin.api.regenerate'}}
|
||||
{{d-button action="revokeKey" actionParam=k icon="times" label='admin.api.revoke'}}
|
||||
{{d-button class="btn-default" action="regenerateKey" actionParam=k icon="undo" label='admin.api.regenerate'}}
|
||||
{{d-button class="btn-default" action="revokeKey" actionParam=k icon="times" label='admin.api.revoke'}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<div class="backup-options">
|
||||
{{#if localBackupStorage}}
|
||||
{{resumable-upload target="/admin/backups/upload" success="uploadSuccess" error="uploadError" uploadText=uploadLabel title="admin.backups.upload.title"}}
|
||||
{{resumable-upload target="/admin/backups/upload" success="uploadSuccess" error="uploadError" uploadText=uploadLabel title="admin.backups.upload.title" class="btn-default"}}
|
||||
{{else}}
|
||||
{{backup-uploader done="remoteUploadSuccess"}}
|
||||
{{/if}}
|
||||
|
||||
{{#if site.isReadOnly}}
|
||||
{{d-button icon="eye" action="toggleReadOnlyMode" disabled=status.isOperationRunning title="admin.backups.read_only.disable.title" label="admin.backups.read_only.disable.label"}}
|
||||
{{d-button class="btn-default" icon="eye" action="toggleReadOnlyMode" disabled=status.isOperationRunning title="admin.backups.read_only.disable.title" label="admin.backups.read_only.disable.label"}}
|
||||
{{else}}
|
||||
{{d-button icon="eye" action="toggleReadOnlyMode" disabled=status.isOperationRunning title="admin.backups.read_only.enable.title" label="admin.backups.read_only.enable.label"}}
|
||||
{{d-button class="btn-default" icon="eye" action="toggleReadOnlyMode" disabled=status.isOperationRunning title="admin.backups.read_only.enable.title" label="admin.backups.read_only.enable.label"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<table class="grid">
|
||||
|
@ -24,7 +24,7 @@
|
|||
<td class="backup-size">{{human-size backup.size}}</td>
|
||||
<td class="backup-controls">
|
||||
<div>
|
||||
{{d-button class="download"
|
||||
{{d-button class="btn-default download"
|
||||
action="download"
|
||||
actionParam=backup
|
||||
icon="download"
|
||||
|
@ -32,10 +32,10 @@
|
|||
label="admin.backups.operations.download.label"}}
|
||||
{{#if status.isOperationRunning}}
|
||||
{{d-button icon="trash-o" action="destroyBackup" actionParam=backup class="btn-danger" disabled="true" title="admin.backups.operations.is_running"}}
|
||||
{{d-button icon="play" action="startRestore" actionParam=backup disabled=status.restoreDisabled title=restoreTitle label="admin.backups.operations.restore.label"}}
|
||||
{{d-button icon="play" action="startRestore" actionParam=backup disabled=status.restoreDisabled class="btn-default" title=restoreTitle label="admin.backups.operations.restore.label"}}
|
||||
{{else}}
|
||||
{{d-button icon="trash-o" action="destroyBackup" actionParam=backup class="btn-danger" title="admin.backups.operations.destroy.title"}}
|
||||
{{d-button icon="play" action="startRestore" actionParam=backup disabled=status.restoreDisabled title=restoreTitle label="admin.backups.operations.restore.label"}}
|
||||
{{d-button icon="play" action="startRestore" actionParam=backup disabled=status.restoreDisabled class="btn-default" title=restoreTitle label="admin.backups.operations.restore.label"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="admin-actions">
|
||||
{{#if model.canRollback}}
|
||||
{{d-button action="rollback"
|
||||
class="btn-rollback"
|
||||
class="btn-default btn-rollback"
|
||||
label="admin.backups.operations.rollback.label"
|
||||
title="admin.backups.operations.rollback.title"
|
||||
icon="ambulance"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<p>{{i18n 'admin.badges.none_selected'}}</p>
|
||||
|
||||
<div>
|
||||
{{#link-to 'adminBadges.show' 'new' class="btn"}}
|
||||
{{#link-to 'adminBadges.show' 'new' class="btn btn-default"}}
|
||||
{{d-icon "plus"}} {{i18n 'admin.badges.new'}}
|
||||
{{/link-to}}
|
||||
</div>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
value=buffered.badge_grouping_id
|
||||
content=badgeGroupings
|
||||
nameProperty="name"}}
|
||||
<button {{action "editGroupings"}} class='btn'>{{d-icon 'pencil'}}</button>
|
||||
<button {{action "editGroupings"}} class='btn btn-icon btn-default'>{{d-icon 'pencil'}}</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{#link-to 'adminBadges.show' 'new' class="btn"}}
|
||||
{{#link-to 'adminBadges.show' 'new' class="btn btn-default"}}
|
||||
{{d-icon "plus"}} {{i18n 'admin.badges.new'}}
|
||||
{{/link-to}}
|
||||
<br>
|
||||
|
|
|
@ -167,7 +167,7 @@
|
|||
<div class="control">
|
||||
<div class="input">
|
||||
{{d-button
|
||||
class="export-csv-btn"
|
||||
class="btn-default export-csv-btn"
|
||||
action="exportCsv"
|
||||
label="admin.export_csv.button_text"
|
||||
icon="download"}}
|
||||
|
|
|
@ -48,8 +48,8 @@
|
|||
<div class='form-element controls'>
|
||||
{{d-button action="edit" class="btn-default" icon="pencil" label="admin.user_fields.edit"}}
|
||||
{{d-button action="destroy" class="btn-danger" icon="trash-o" label="admin.user_fields.delete"}}
|
||||
{{d-button action="moveUp" icon="arrow-up" disabled=cantMoveUp}}
|
||||
{{d-button action="moveDown" icon="arrow-down" disabled=cantMoveDown}}
|
||||
{{d-button action="moveUp" class="btn-default" icon="arrow-up" disabled=cantMoveUp}}
|
||||
{{d-button action="moveDown" class="btn-default" icon="arrow-down" disabled=cantMoveDown}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">{{flags}}</div>
|
||||
|
|
|
@ -77,21 +77,21 @@
|
|||
{{#if flaggedPost.postHidden}}
|
||||
{{d-button
|
||||
title="admin.flags.disagree_flag_unhide_post_title"
|
||||
class="disagree-flag"
|
||||
class="btn-default disagree-flag"
|
||||
action="disagree"
|
||||
icon="thumbs-o-down"
|
||||
label="admin.flags.disagree_flag_unhide_post"}}
|
||||
{{else}}
|
||||
{{d-button
|
||||
title="admin.flags.disagree_flag_title"
|
||||
class="disagree-flag"
|
||||
class="btn-default disagree-flag"
|
||||
action="disagree"
|
||||
icon="thumbs-o-down"
|
||||
label="admin.flags.disagree_flag"}}
|
||||
{{/if}}
|
||||
|
||||
{{d-button
|
||||
class="defer-flag"
|
||||
class="btn-default defer-flag"
|
||||
title="admin.flags.ignore_flag_title"
|
||||
action="defer"
|
||||
icon="external-link"
|
||||
|
@ -103,6 +103,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{d-button
|
||||
class="btn-default"
|
||||
icon="list"
|
||||
label="admin.flags.moderation_history"
|
||||
action=(action "showModerationHistory")}}
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
{{text-field value=url disabled=formSubmitted class="permalink-url" placeholderKey="admin.permalink.url" autocorrect="off" autocapitalize="off"}}
|
||||
{{combo-box content=permalinkTypes value=permalinkType}}
|
||||
{{text-field value=permalink_type_value disabled=formSubmitted class="external-url" placeholderKey=permalinkTypePlaceholder autocorrect="off" autocapitalize="off"}}
|
||||
{{d-button action="submit" disabled=formSubmitted label="admin.permalink.form.add"}}
|
||||
{{d-button class="btn-default" action="submit" disabled=formSubmitted label="admin.permalink.form.add"}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<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"}}
|
||||
{{combo-box content=actionNames value=actionName}}
|
||||
{{d-button action="submit" disabled=formSubmitted label="admin.logs.screened_ips.form.add"}}
|
||||
{{d-button class="btn-default" action="submit" disabled=formSubmitted label="admin.logs.screened_ips.form.add"}}
|
||||
|
|
|
@ -13,5 +13,5 @@
|
|||
{{#if setting.secret}}
|
||||
{{d-button action="toggleSecret" icon="eye-slash"}}
|
||||
{{/if}}
|
||||
{{d-button class="undo" action="resetDefault" icon="undo" label="admin.settings.reset"}}
|
||||
{{d-button class="btn-default undo" action="resetDefault" icon="undo" label="admin.settings.reset"}}
|
||||
{{/if}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{d-button label="admin.site_text.edit" class='edit' action="edit"}}
|
||||
{{d-button label="admin.site_text.edit" class='btn-default edit' action="edit"}}
|
||||
<h3 class='site-text-id'>{{siteText.id}}</h3>
|
||||
<div class='site-text-value'>{{siteText.value}}</div>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{d-button action="removeValue"
|
||||
actionParam=value
|
||||
icon="times"
|
||||
class="remove-value-btn btn-small"}}
|
||||
class="btn-default remove-value-btn btn-small"}}
|
||||
|
||||
{{input title=value value=value class="value-input" focus-out=(action "changeValue" index)}}
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<b>{{i18n 'admin.watched_words.form.label'}}</b>
|
||||
{{text-field value=word disabled=formSubmitted class="watched-word-input" autocorrect="off" autocapitalize="off" placeholderKey=placeholderKey}}
|
||||
{{d-button action="submit" disabled=formSubmitted label="admin.watched_words.form.add"}}
|
||||
{{d-button class="btn-default" action="submit" disabled=formSubmitted label="admin.watched_words.form.add"}}
|
||||
|
||||
{{#if showMessage}}
|
||||
<span class="success-message">{{message}}</span>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<label class="btn {{if addDisabled 'disabled'}}">
|
||||
<label class="btn btn-default {{if addDisabled 'disabled'}}">
|
||||
{{d-icon "upload"}}
|
||||
{{i18n 'admin.watched_words.form.upload'}}
|
||||
<input class="hidden-upload-field" disabled={{addDisabled}} type="file" accept="text/plain,text/csv" />
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<h1>{{#if model.theme_id}}{{model.name}}{{else}}{{text-field class="style-name" value=model.name}}{{/if}}</h1>
|
||||
<div class="controls">
|
||||
{{#unless model.theme_id}}
|
||||
<button {{action "save"}} disabled={{model.disableSave}} class='btn'>{{i18n 'admin.customize.save'}}</button>
|
||||
<button {{action "save"}} disabled={{model.disableSave}} class='btn btn-primary'>{{i18n 'admin.customize.save'}}</button>
|
||||
{{/unless}}
|
||||
<button {{action "copy" model}} class='btn'>{{d-icon "copy"}} {{i18n 'admin.customize.copy'}}</button>
|
||||
<button {{action "copyToClipboard" model}} class='btn'>{{d-icon "clipboard"}} {{i18n 'admin.customize.copy_to_clipboard'}}</button>
|
||||
<button {{action "copy" model}} class='btn btn-default'>{{d-icon "copy"}} {{i18n 'admin.customize.copy'}}</button>
|
||||
<button {{action "copyToClipboard" model}} class='btn btn-default'>{{d-icon "clipboard"}} {{i18n 'admin.customize.copy_to_clipboard'}}</button>
|
||||
{{#if model.theme_id}}
|
||||
{{i18n "admin.customize.theme_owner"}}
|
||||
{{#link-to "adminCustomizeThemes.show" model.theme_id}}{{model.theme_name}}{{/link-to}}
|
||||
|
@ -47,8 +47,8 @@
|
|||
<td class="hex">{{color-input hexValue=c.hex brightnessValue=c.brightness valid=c.valid}}</td>
|
||||
<td class="actions">
|
||||
{{#unless model.theme_id}}
|
||||
<button class="btn revert {{unless c.savedIsOverriden 'invisible'}}" {{action "revert" c}} title="{{i18n 'admin.customize.colors.revert_title'}}">{{i18n 'revert'}}</button>
|
||||
<button class="btn undo {{unless c.changed 'invisible'}}" {{action "undo" c}} title="{{i18n 'admin.customize.colors.undo_title'}}">{{i18n 'undo'}}</button>
|
||||
<button class="btn btn-default revert {{unless c.savedIsOverriden 'invisible'}}" {{action "revert" c}} title="{{i18n 'admin.customize.colors.revert_title'}}">{{i18n 'revert'}}</button>
|
||||
<button class="btn btn-default undo {{unless c.changed 'invisible'}}" {{action "undo" c}} title="{{i18n 'admin.customize.colors.undo_title'}}">{{i18n 'undo'}}</button>
|
||||
{{/unless}}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{{/unless}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
<button {{action "newColorScheme"}} class='btn'>{{d-icon 'plus'}}{{i18n 'admin.customize.new'}}</button>
|
||||
<button {{action "newColorScheme"}} class='btn btn-default'>{{d-icon 'plus'}}{{i18n 'admin.customize.new'}}</button>
|
||||
</div>
|
||||
|
||||
{{outlet}}
|
||||
|
|
|
@ -50,10 +50,10 @@
|
|||
icon="paint-brush"}}
|
||||
{{#if colorSchemeChanged}}
|
||||
{{d-button action="changeScheme" class="btn-primary btn-small submit-edit" icon="check"}}
|
||||
{{d-button action="cancelChangeScheme" class="btn-small cancel-edit" icon="times"}}
|
||||
{{d-button action="cancelChangeScheme" class="btn-default btn-small cancel-edit" icon="times"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#link-to 'adminCustomize.colors' class="btn edit"}}{{i18n 'admin.customize.colors.edit'}}{{/link-to}}
|
||||
{{#link-to 'adminCustomize.colors' class="btn btn-default edit"}}{{i18n 'admin.customize.colors.edit'}}{{/link-to}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
|
@ -76,11 +76,11 @@
|
|||
{{#if model.remote_theme.commits_behind}}
|
||||
{{#d-button action="updateToLatest" icon="download" class='btn-primary'}}{{i18n "admin.customize.theme.update_to_latest"}}{{/d-button}}
|
||||
{{else}}
|
||||
{{#d-button action="checkForThemeUpdates" icon="refresh"}}{{i18n "admin.customize.theme.check_for_updates"}}{{/d-button}}
|
||||
{{#d-button action="checkForThemeUpdates" icon="refresh" class="btn-default"}}{{i18n "admin.customize.theme.check_for_updates"}}{{/d-button}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#d-button action="editTheme" class="btn edit"}}{{i18n 'admin.customize.theme.edit_css_html'}}{{/d-button}}
|
||||
{{#d-button action="editTheme" class="btn btn-default edit"}}{{i18n 'admin.customize.theme.edit_css_html'}}{{/d-button}}
|
||||
{{#if model.remote_theme}}
|
||||
<span class='status-message'>
|
||||
{{#if updatingRemote}}
|
||||
|
@ -119,7 +119,7 @@
|
|||
<li>
|
||||
<span class='col'>${{upload.name}}: <a href={{upload.url}} target='_blank'>{{upload.filename}}</a></span>
|
||||
<span class='col'>
|
||||
{{d-button action="removeUpload" actionParam=upload class="second btn-small cancel-edit" icon="times"}}
|
||||
{{d-button action="removeUpload" actionParam=upload class="second btn-default btn-small cancel-edit" icon="times"}}
|
||||
</span>
|
||||
</li>
|
||||
{{/each}}
|
||||
|
@ -127,7 +127,7 @@
|
|||
{{else}}
|
||||
<div class="description">{{i18n "admin.customize.theme.no_uploads"}}</div>
|
||||
{{/if}}
|
||||
{{#d-button action="addUploadModal" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
|
||||
{{#d-button action="addUploadModal" class="btn-default" icon="plus"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
|
||||
</div>
|
||||
|
||||
{{#if hasSettings}}
|
||||
|
@ -147,22 +147,22 @@
|
|||
{{#if model.childThemes.length}}
|
||||
<ul class='removable-list'>
|
||||
{{#each model.childThemes as |child|}}
|
||||
<li>{{#link-to 'adminCustomizeThemes.show' child replace=true class='col'}}{{child.name}}{{/link-to}} {{d-button action="removeChildTheme" actionParam=child class="btn-small cancel-edit col" icon="times"}}</li>
|
||||
<li>{{#link-to 'adminCustomizeThemes.show' child replace=true class='col'}}{{child.name}}{{/link-to}} {{d-button action="removeChildTheme" actionParam=child class="btn-default btn-small cancel-edit col" icon="times"}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{#if selectableChildThemes}}
|
||||
<div class="description">
|
||||
{{combo-box forceEscape=true filterable=true content=selectableChildThemes value=selectedChildThemeId none="admin.customize.theme.select_component"}}
|
||||
{{#d-button action="addChildTheme" icon="plus" disabled=addButtonDisabled class="add-component-button"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
|
||||
{{#d-button action="addChildTheme" icon="plus" disabled=addButtonDisabled class="btn-default add-component-button"}}{{i18n "admin.customize.theme.add"}}{{/d-button}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<a href='{{previewUrl}}' title="{{i18n 'admin.customize.explain_preview'}}" target='_blank' class='btn'>{{d-icon 'desktop'}}{{i18n 'admin.customize.theme.preview'}}</a>
|
||||
<a class="btn export" target="_blank" href={{downloadUrl}}>{{d-icon "download"}} {{i18n 'admin.export_json.button_text'}}</a>
|
||||
<a href='{{previewUrl}}' title="{{i18n 'admin.customize.explain_preview'}}" target='_blank' class='btn btn-default'>{{d-icon 'desktop'}}{{i18n 'admin.customize.theme.preview'}}</a>
|
||||
<a class="btn btn-default export" target="_blank" href={{downloadUrl}}>{{d-icon "download"}} {{i18n 'admin.export_json.button_text'}}</a>
|
||||
|
||||
{{d-button action="switchType" label="admin.customize.theme.convert" icon=convertIcon class="btn-normal" title=convertTooltip}}
|
||||
{{d-button action="switchType" label="admin.customize.theme.convert" icon=convertIcon class="btn-default btn-normal" title=convertTooltip}}
|
||||
{{d-button action="destroy" label="admin.customize.delete" icon="trash" class="btn-danger"}}
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<div class="create-actions">
|
||||
{{d-button label="admin.customize.new" icon="plus" action="showCreateModal" class="btn-primary"}}
|
||||
{{d-button action="importModal" icon="upload" label="admin.customize.import"}}
|
||||
{{d-button action="importModal" icon="upload" label="admin.customize.import" class="btn-default"}}
|
||||
</div>
|
||||
</div>
|
||||
{{themes-list themes=fullThemes components=childThemes currentTab=currentTab}}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
<p class="actions">
|
||||
<small>{{i18n 'admin.dashboard.last_checked'}}: {{problemsTimestamp}}</small>
|
||||
{{d-button action="refreshProblems" class="btn-small" icon="refresh" label="admin.dashboard.refresh_problems"}}
|
||||
{{d-button action="refreshProblems" class="btn-default btn-small" icon="refresh" label="admin.dashboard.refresh_problems"}}
|
||||
</p>
|
||||
{{/conditional-loading-section}}
|
||||
</div>
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
<div>
|
||||
<h4>{{i18n "admin.dashboard.last_updated"}} </h4>
|
||||
<p>{{updatedTimestamp}}</p>
|
||||
<a rel="noopener" target="_blank" href="https://meta.discourse.org/tags/release-notes" class="btn">
|
||||
<a rel="noopener" target="_blank" href="https://meta.discourse.org/tags/release-notes" class="btn btn-default">
|
||||
{{i18n "admin.dashboard.whats_new_in_discourse"}}
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
{{else}}
|
||||
<label>{{i18n 'admin.email.send_digest_label'}}</label>
|
||||
{{text-field value=email placeholderKey="admin.email.test_email_address"}}
|
||||
<button class='btn' {{action "sendEmail"}} disabled={{sendEmailDisabled}}>{{i18n 'admin.email.send_digest'}}</button>
|
||||
<button class='btn btn-default' {{action "sendEmail"}} disabled={{sendEmailDisabled}}>{{i18n 'admin.email.send_digest'}}</button>
|
||||
{{#if sentEmail}}
|
||||
<span class='result-message'>{{i18n 'admin.email.sent_test'}}</span>
|
||||
{{/if}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<p>
|
||||
{{i18n 'admin.logs.screened_emails.description'}}
|
||||
</p>
|
||||
<button class="btn screened-email-export" {{action "exportScreenedEmailList"}} title="{{i18n 'admin.export_csv.button_title.screened_email'}}">{{d-icon "download"}}{{i18n 'admin.export_csv.button_text'}}</button>
|
||||
<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>
|
||||
|
||||
<br>
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
<div class="screened-ip-controls">
|
||||
<div class="filter-screened-ip-address">
|
||||
{{text-field value=filter class="ip-address-input" placeholderKey="admin.logs.screened_ips.form.filter" autocorrect="off" autocapitalize="off"}}
|
||||
{{d-button action="rollUp" title="admin.logs.screened_ips.roll_up.title" label="admin.logs.screened_ips.roll_up.text"}}
|
||||
{{d-button action="exportScreenedIpList" icon="download" title="admin.export_csv.button_title.screened_ip" label="admin.export_csv.button_text"}}
|
||||
{{d-button class="btn-default" action="rollUp" title="admin.logs.screened_ips.roll_up.title" label="admin.logs.screened_ips.roll_up.text"}}
|
||||
{{d-button class="btn-default" action="exportScreenedIpList" icon="download" title="admin.export_csv.button_title.screened_ip" label="admin.export_csv.button_text"}}
|
||||
</div>
|
||||
{{screened-ip-address-form action="recordAdded"}}
|
||||
</div>
|
||||
|
@ -57,15 +57,15 @@
|
|||
</td>
|
||||
<td class="col actions">
|
||||
{{#unless item.editing}}
|
||||
{{d-button action="destroy" actionParam=item icon="trash-o" class="btn-danger"}}
|
||||
{{d-button action="edit" actionParam=item icon="pencil"}}
|
||||
{{d-button class="btn-default" action="destroy" actionParam=item icon="trash-o" class="btn-danger"}}
|
||||
{{d-button class="btn-default"action="edit" actionParam=item icon="pencil"}}
|
||||
{{#if item.isBlocked}}
|
||||
{{d-button action="allow" actionParam=item icon="check" label="admin.logs.screened_ips.actions.do_nothing"}}
|
||||
{{d-button class="btn-default" action="allow" actionParam=item icon="check" label="admin.logs.screened_ips.actions.do_nothing"}}
|
||||
{{else}}
|
||||
{{d-button action="block" actionParam=item icon="ban" label="admin.logs.screened_ips.actions.block"}}
|
||||
{{d-button class="btn-default" action="block" actionParam=item icon="ban" label="admin.logs.screened_ips.actions.block"}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{d-button action="save" actionParam=item label="admin.logs.save"}}
|
||||
{{d-button class="btn-default" action="save" actionParam=item label="admin.logs.save"}}
|
||||
<a {{action "cancel" item}}>{{i18n 'cancel'}}</a>
|
||||
{{/unless}}
|
||||
</td>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<p>
|
||||
{{i18n 'admin.logs.screened_urls.description'}}
|
||||
</p>
|
||||
<button class="btn" {{action "exportScreenedUrlList"}} title="{{i18n 'admin.export_csv.button_title.screened_url'}}">{{d-icon "download"}}{{i18n 'admin.export_csv.button_text'}}</button>
|
||||
<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>
|
||||
<br>
|
||||
|
||||
{{#conditional-loading-spinner condition=loading}}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
{{i18n "admin.logs.staff_actions.filter"}} {{combo-box content=userHistoryActions value=filterActionId none="admin.logs.staff_actions.all"}}
|
||||
{{/if}}
|
||||
|
||||
{{d-button action="exportStaffActionLogs" label="admin.export_csv.button_text" icon="download"}}
|
||||
{{d-button class="btn-default" action="exportStaffActionLogs" label="admin.export_csv.button_text" icon="download"}}
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<td class="settings">
|
||||
{{#if currentUser.admin}}
|
||||
{{#if plugin.enabled_setting}}
|
||||
{{d-button action="showSettings" actionParam=plugin icon="gear" label="admin.plugins.change_settings_short"}}
|
||||
{{d-button class="btn-default" action="showSettings" actionParam=plugin icon="gear" label="admin.plugins.change_settings_short"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</td>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{#if currentUser.admin}}
|
||||
{{d-button label="admin.plugins.change_settings"
|
||||
icon="gear"
|
||||
class='settings-button'
|
||||
class="btn-default settings-button"
|
||||
action="showSettings"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class='controls'>
|
||||
{{d-button action="toggleMenu" class="menu-toggle" icon="bars"}}
|
||||
{{text-field id="setting-filter" value=filter placeholderKey="type_to_filter" class="no-blur"}}
|
||||
{{d-button id="clear-filter" action="clearFilter" label="admin.site_settings.clear_filter"}}
|
||||
{{d-button class="btn-default" id="clear-filter" action="clearFilter" label="admin.site_settings.clear_filter"}}
|
||||
</div>
|
||||
<div class='search controls'>
|
||||
<label>
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
<section class="details {{unless model.active 'not-activated'}}">
|
||||
<div class='user-controls'>
|
||||
{{#if model.canViewProfile}}
|
||||
{{#link-to 'user' model class="btn"}}
|
||||
{{#link-to 'user' model class="btn btn-default"}}
|
||||
{{d-icon "user"}}
|
||||
{{i18n 'admin.user.show_public_profile'}}
|
||||
{{/link-to}}
|
||||
{{/if}}
|
||||
|
||||
{{#if model.can_view_action_logs}}
|
||||
{{d-button action="viewActionLogs" actionParam=model.username icon="list-alt" label="admin.user.action_logs"}}
|
||||
{{d-button action="viewActionLogs" class="btn-default" actionParam=model.username icon="list-alt" label="admin.user.action_logs"}}
|
||||
{{/if}}
|
||||
{{#if model.active}}
|
||||
{{#if currentUser.admin}}
|
||||
{{d-button action="logOut" icon="power-off" label="admin.user.log_out"}}
|
||||
{{d-button class="btn-default" action="logOut" icon="power-off" label="admin.user.log_out"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{plugin-outlet name="admin-user-controls-after" args=(hash model=model) tagName="" connectorTagName=""}}
|
||||
|
@ -29,10 +29,10 @@
|
|||
</div>
|
||||
<div class='controls'>
|
||||
{{#if editingUsername}}
|
||||
{{d-button action="saveUsername" label="admin.user_fields.save"}}
|
||||
{{d-button class="btn-default" action="saveUsername" label="admin.user_fields.save"}}
|
||||
<a href {{action "toggleUsernameEdit"}}>{{i18n 'cancel'}}</a>
|
||||
{{else}}
|
||||
{{d-button action="toggleUsernameEdit" icon="pencil"}}
|
||||
{{d-button class="btn-default" action="toggleUsernameEdit" icon="pencil"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -48,10 +48,10 @@
|
|||
</div>
|
||||
<div class='controls'>
|
||||
{{#if editingName}}
|
||||
{{d-button action="saveName" label="admin.user_fields.save"}}
|
||||
{{d-button class="btn-default" action="saveName" label="admin.user_fields.save"}}
|
||||
<a href {{action "toggleNameEdit"}}>{{i18n 'cancel'}}</a>
|
||||
{{else}}
|
||||
{{d-button action="toggleNameEdit" icon="pencil"}}
|
||||
{{d-button class="btn-default" action="toggleNameEdit" icon="pencil"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -68,7 +68,7 @@
|
|||
{{#if model.email}}
|
||||
<a href="mailto:{{unbound model.email}}">{{model.email}}</a>
|
||||
{{else}}
|
||||
{{d-button action="checkEmail" actionParam=model icon="envelope-o" label="admin.users.check_email.text" title="admin.users.check_email.title"}}
|
||||
{{d-button class="btn-default" action="checkEmail" actionParam=model icon="envelope-o" label="admin.users.check_email.text" title="admin.users.check_email.title"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -89,6 +89,7 @@
|
|||
{{/if}}
|
||||
{{else}}
|
||||
{{d-button action="checkEmail"
|
||||
class="btn-default"
|
||||
actionParam=model
|
||||
icon="envelope-o"
|
||||
label="admin.users.check_email.text"
|
||||
|
@ -102,7 +103,7 @@
|
|||
<div class='value'>{{model.bounceScore}}</div>
|
||||
<div class='controls'>
|
||||
{{#if model.canResetBounceScore}}
|
||||
{{d-button action="resetBounceScore" label="admin.user.reset_bounce_score.label" title="admin.user.reset_bounce_score.title"}}
|
||||
{{d-button class="btn-default" action="resetBounceScore" label="admin.user.reset_bounce_score.label" title="admin.user.reset_bounce_score.title"}}
|
||||
{{/if}}
|
||||
{{model.bounceScoreExplanation}}
|
||||
</div>
|
||||
|
@ -114,7 +115,7 @@
|
|||
{{#if associatedAccountsLoaded}}
|
||||
{{associatedAccounts}}
|
||||
{{else}}
|
||||
{{d-button action="checkEmail" actionParam=model icon="envelope-o" label="admin.users.check_email.text" title="admin.users.check_email.title"}}
|
||||
{{d-button class="btn-default" action="checkEmail" actionParam=model icon="envelope-o" label="admin.users.check_email.text" title="admin.users.check_email.title"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -139,10 +140,10 @@
|
|||
</div>
|
||||
<div class='controls'>
|
||||
{{#if editingTitle}}
|
||||
{{d-button action="saveTitle" label="admin.user_fields.save"}}
|
||||
{{d-button class="btn-default" action="saveTitle" label="admin.user_fields.save"}}
|
||||
<a href {{action "toggleTitleEdit"}}>{{i18n 'cancel'}}</a>
|
||||
{{else}}
|
||||
{{d-button action="toggleTitleEdit" icon="pencil"}}
|
||||
{{d-button class="btn-default" action="toggleTitleEdit" icon="pencil"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -152,7 +153,7 @@
|
|||
<div class='value'>{{model.ip_address}}</div>
|
||||
<div class='controls'>
|
||||
{{#if currentUser.staff}}
|
||||
{{d-button action="refreshBrowsers" label="admin.user.refresh_browsers"}}
|
||||
{{d-button class="btn-default" action="refreshBrowsers" label="admin.user.refresh_browsers"}}
|
||||
{{ip-lookup ip=model.ip_address userId=model.id}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -191,7 +192,7 @@
|
|||
</div>
|
||||
<div class='controls'>
|
||||
{{#if canDisableSecondFactor}}
|
||||
{{d-button action="disableSecondFactor" icon="unlock-alt" label="user.second_factor.disable"}}
|
||||
{{d-button class="btn-default" action="disableSecondFactor" icon="unlock-alt" label="user.second_factor.disable"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -236,7 +237,7 @@
|
|||
{{i18n 'admin.user.approve_success'}}
|
||||
{{else}}
|
||||
{{#if model.can_approve}}
|
||||
{{d-button action="approve" icon="check" label="admin.user.approve"}}
|
||||
{{d-button class="btn-default" action="approve" icon="check" label="admin.user.approve"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -249,15 +250,15 @@
|
|||
<div class='controls'>
|
||||
{{#if model.active}}
|
||||
{{#if model.can_deactivate}}
|
||||
{{d-button action="deactivate" label="admin.user.deactivate_account"}}
|
||||
{{d-button class="btn-default" action="deactivate" label="admin.user.deactivate_account"}}
|
||||
{{i18n 'admin.user.deactivate_explanation'}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if model.can_send_activation_email}}
|
||||
{{d-button action="sendActivationEmail" icon="envelope" label="admin.user.send_activation_email"}}
|
||||
{{d-button class="btn-default" action="sendActivationEmail" icon="envelope" label="admin.user.send_activation_email"}}
|
||||
{{/if}}
|
||||
{{#if model.can_activate}}
|
||||
{{d-button action="activate" icon="check" label="admin.user.activate"}}
|
||||
{{d-button class="btn-default" action="activate" icon="check" label="admin.user.activate"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -275,15 +276,15 @@
|
|||
{{#if model.api_key}}
|
||||
<div class='long-value'>
|
||||
{{model.api_key.key}}
|
||||
{{d-button action="regenerateApiKey" icon="undo" label="admin.api.regenerate"}}
|
||||
{{d-button action="revokeApiKey" icon="times" label="admin.api.revoke"}}
|
||||
{{d-button class="btn-default" action="regenerateApiKey" icon="undo" label="admin.api.regenerate"}}
|
||||
{{d-button class="btn-default" action="revokeApiKey" icon="times" label="admin.api.revoke"}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class='value'>
|
||||
—
|
||||
</div>
|
||||
<div class='controls'>
|
||||
{{d-button action="generateApiKey" icon="key" label="admin.api.generate"}}
|
||||
{{d-button class="btn-default" action="generateApiKey" icon="key" label="admin.api.generate"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -294,10 +295,10 @@
|
|||
<div class='value'>{{i18n-yes-no model.admin}}</div>
|
||||
<div class='controls'>
|
||||
{{#if model.can_revoke_admin}}
|
||||
{{d-button action="revokeAdmin" icon="shield" label="admin.user.revoke_admin"}}
|
||||
{{d-button class="btn-default" action="revokeAdmin" icon="shield" label="admin.user.revoke_admin"}}
|
||||
{{/if}}
|
||||
{{#if model.can_grant_admin}}
|
||||
{{d-button action="grantAdmin" icon="shield" label="admin.user.grant_admin"}}
|
||||
{{d-button class="btn-default" action="grantAdmin" icon="shield" label="admin.user.grant_admin"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -307,10 +308,10 @@
|
|||
<div class='value'>{{i18n-yes-no model.moderator}}</div>
|
||||
<div class='controls'>
|
||||
{{#if model.can_revoke_moderation}}
|
||||
{{d-button action="revokeModeration" icon="shield" label="admin.user.revoke_moderation"}}
|
||||
{{d-button class="btn-default" action="revokeModeration" icon="shield" label="admin.user.revoke_moderation"}}
|
||||
{{/if}}
|
||||
{{#if model.can_grant_moderation}}
|
||||
{{d-button action="grantModeration" icon="shield" label="admin.user.grant_moderation"}}
|
||||
{{d-button class="btn-default" action="grantModeration" icon="shield" label="admin.user.grant_moderation"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -330,14 +331,14 @@
|
|||
{{#if model.canLockTrustLevel}}
|
||||
{{#if hasLockedTrustLevel}}
|
||||
{{d-icon "lock" title="admin.user.trust_level_locked_tip"}}
|
||||
{{d-button action="lockTrustLevel" actionParam=false label="admin.user.unlock_trust_level"}}
|
||||
{{d-button class="btn-default" action="lockTrustLevel" actionParam=false label="admin.user.unlock_trust_level"}}
|
||||
{{else}}
|
||||
{{d-icon "unlock" title="admin.user.trust_level_unlocked_tip"}}
|
||||
{{d-button action="lockTrustLevel" actionParam=true label="admin.user.lock_trust_level"}}
|
||||
{{d-button class="btn-default" action="lockTrustLevel" actionParam=true label="admin.user.lock_trust_level"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if model.tl3Requirements}}
|
||||
{{#link-to 'adminUser.tl3Requirements' model class="btn"}}{{i18n 'admin.user.trust_level_3_requirements'}}{{/link-to}}
|
||||
{{#link-to 'adminUser.tl3Requirements' model class="btn btn-default"}}{{i18n 'admin.user.trust_level_3_requirements'}}{{/link-to}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -439,6 +440,7 @@
|
|||
{{#if currentUser.admin}}
|
||||
<div class='controls'>
|
||||
{{d-button label="admin.user.clear_penalty_history.title"
|
||||
class="btn-default"
|
||||
icon="times"
|
||||
action=(action "clearPenaltyHistory")}}
|
||||
{{i18n "admin.user.clear_penalty_history.description"}}
|
||||
|
@ -537,6 +539,7 @@
|
|||
<div class='controls'>
|
||||
{{#if model.flags_received_count}}
|
||||
{{d-button
|
||||
class="btn-default"
|
||||
action=(action "showFlagsReceived")
|
||||
label="admin.user.show_flags_received"
|
||||
icon="flag"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="admin-title">
|
||||
<h2>{{title}}</h2>
|
||||
{{#unless showEmails}}
|
||||
<button {{action "showEmails"}} class="show-emails btn">{{i18n 'admin.users.show_emails'}}</button>
|
||||
<button {{action "showEmails"}} class="show-emails btn btn-default">{{i18n 'admin.users.show_emails'}}</button>
|
||||
{{/unless}}
|
||||
</div>
|
||||
<div class='username controls'>
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
{{nav-item route='groups' label='groups.index.title'}}
|
||||
<div class="admin-actions">
|
||||
{{#unless siteSettings.enable_sso}}
|
||||
{{d-button action="sendInvites" title="admin.invite.button_title" icon="user-plus" label="admin.invite.button_text"}}
|
||||
{{d-button class="btn-default" action="sendInvites" title="admin.invite.button_title" icon="user-plus" label="admin.invite.button_text"}}
|
||||
{{/unless}}
|
||||
{{#if currentUser.admin}}
|
||||
{{d-button action="exportUsers" title="admin.export_csv.button_title.user" icon="download" label="admin.export_csv.button_text"}}
|
||||
{{d-button class="btn-default" action="exportUsers" title="admin.export_csv.button_title.user" icon="download" label="admin.export_csv.button_text"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</ul>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class='web-hooks-listing'>
|
||||
<p>{{i18n 'admin.web_hooks.instruction'}}</p>
|
||||
<div class='new-webhook'>
|
||||
{{#link-to 'adminWebHooks.show' 'new' tagName='button' classNames='btn'}}
|
||||
{{#link-to 'adminWebHooks.show' 'new' tagName='button' classNames='btn btn-default'}}
|
||||
{{d-icon 'plus'}} {{i18n 'admin.web_hooks.new'}}
|
||||
{{/link-to}}
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Button from "discourse/components/d-button";
|
||||
|
||||
export default Button.extend({
|
||||
classNames: ["share"],
|
||||
classNames: ["btn-default", "share"],
|
||||
icon: "link",
|
||||
title: "topic.share.help",
|
||||
label: "topic.share.title",
|
||||
|
|
|
@ -21,24 +21,45 @@ function addBulkButton(action, key, opts) {
|
|||
}
|
||||
|
||||
// Default buttons
|
||||
addBulkButton("showChangeCategory", "change_category", { icon: "pencil" });
|
||||
addBulkButton("closeTopics", "close_topics", { icon: "lock" });
|
||||
addBulkButton("archiveTopics", "archive_topics", { icon: "folder" });
|
||||
addBulkButton("showNotificationLevel", "notification_level", {
|
||||
icon: "d-regular"
|
||||
addBulkButton("showChangeCategory", "change_category", {
|
||||
icon: "pencil",
|
||||
class: "btn-default"
|
||||
});
|
||||
addBulkButton("closeTopics", "close_topics", {
|
||||
icon: "lock",
|
||||
class: "btn-default"
|
||||
});
|
||||
addBulkButton("archiveTopics", "archive_topics", {
|
||||
icon: "folder",
|
||||
class: "btn-default"
|
||||
});
|
||||
addBulkButton("showNotificationLevel", "notification_level", {
|
||||
icon: "d-regular",
|
||||
class: "btn-default"
|
||||
});
|
||||
addBulkButton("resetRead", "reset_read", {
|
||||
icon: "backward",
|
||||
class: "btn-default"
|
||||
});
|
||||
addBulkButton("resetRead", "reset_read", { icon: "backward" });
|
||||
addBulkButton("unlistTopics", "unlist_topics", {
|
||||
icon: "eye-slash",
|
||||
class: "btn-default",
|
||||
buttonVisible: topics => topics.some(t => t.visible)
|
||||
});
|
||||
addBulkButton("relistTopics", "relist_topics", {
|
||||
icon: "eye",
|
||||
class: "btn-default",
|
||||
buttonVisible: topics => topics.some(t => !t.visible)
|
||||
});
|
||||
if (Discourse.SiteSettings.tagging_enabled) {
|
||||
addBulkButton("showTagTopics", "change_tags", { icon: "tag" });
|
||||
addBulkButton("showAppendTagTopics", "append_tags", { icon: "tag" });
|
||||
addBulkButton("showTagTopics", "change_tags", {
|
||||
icon: "tag",
|
||||
class: "btn-default"
|
||||
});
|
||||
addBulkButton("showAppendTagTopics", "append_tags", {
|
||||
icon: "tag",
|
||||
class: "btn-default"
|
||||
});
|
||||
}
|
||||
addBulkButton("deleteTopics", "delete", { icon: "trash", class: "btn-danger" });
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{#if selected}}
|
||||
<div id='bulk-select'>
|
||||
{{d-button action="showBulkActions" icon="wrench"}}
|
||||
{{d-button class="btn-default" action="showBulkActions" icon="wrench"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{{latest-topic-list-item topic=t}}
|
||||
{{/each}}
|
||||
<div class="more-topics">
|
||||
<a href="/{{filter}}" class="btn pull-right">{{i18n "more"}}</a>
|
||||
<a href="/{{filter}}" class="btn btn-default pull-right">{{i18n "more"}}</a>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class='no-topics'>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
{{#if isNotSupported}}
|
||||
{{d-button icon="bell-slash" label="user.desktop_notifications.not_supported" disabled="true"}}
|
||||
{{d-button icon="bell-slash" class="btn-default" label="user.desktop_notifications.not_supported" disabled="true"}}
|
||||
{{/if}}
|
||||
{{#if isDeniedPermission}}
|
||||
{{d-button icon="bell-slash" label="user.desktop_notifications.perm_denied_btn" action="recheckPermission" disabled='true'}}
|
||||
{{d-button icon="bell-slash" class="btn-default" label="user.desktop_notifications.perm_denied_btn" action="recheckPermission" disabled='true'}}
|
||||
{{i18n "user.desktop_notifications.perm_denied_expl"}}
|
||||
{{else}}
|
||||
{{#if isEnabled}}
|
||||
{{d-button icon="bell-slash-o" label="user.desktop_notifications.disable" action="turnoff"}}
|
||||
{{d-button icon="bell-slash-o" class="btn-default" label="user.desktop_notifications.disable" action="turnoff"}}
|
||||
{{i18n "user.desktop_notifications.currently_enabled"}}
|
||||
{{else}}
|
||||
{{d-button icon="bell-o" label="user.desktop_notifications.enable" action="turnon"}}
|
||||
{{d-button icon="bell-o" class="btn-default" label="user.desktop_notifications.enable" action="turnon"}}
|
||||
{{i18n "user.desktop_notifications.currently_disabled"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
{{/if}}
|
||||
{{else}}
|
||||
{{#unless category.is_special}}
|
||||
<button {{action "editPermissions"}} class="btn btn-small edit-permission">{{i18n 'category.edit_permissions'}}</button>
|
||||
<button {{action "editPermissions"}} class="btn btn-default btn-small edit-permission">{{i18n 'category.edit_permissions'}}</button>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
</section>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="uploaded-image-preview input-xxlarge" style={{backgroundStyle}}>
|
||||
<div class="image-upload-controls">
|
||||
<label class="btn pad-left no-text {{if uploading 'disabled'}}">
|
||||
<label class="btn btn-default pad-left no-text {{if uploading 'disabled'}}">
|
||||
{{d-icon "picture-o"}}
|
||||
<input class="hidden-upload-field" disabled={{uploading}} type="file" accept="image/*" />
|
||||
</label>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{#if ip}}
|
||||
<button class="btn" {{action "lookup"}}>
|
||||
<button class="btn btn-default" {{action "lookup"}}>
|
||||
{{d-icon "globe"}}{{i18n 'admin.user.ip_lookup'}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
@ -7,9 +7,9 @@
|
|||
<div class="location-box">
|
||||
<a class="close pull-right" {{action "hide"}}>{{d-icon "times"}}</a>
|
||||
{{#if copied}}
|
||||
<a class="btn btn-hover pull-right">{{d-icon "copy"}} {{i18n "ip_lookup.copied"}}</a>
|
||||
<a class="btn btn-default btn-hover pull-right">{{d-icon "copy"}} {{i18n "ip_lookup.copied"}}</a>
|
||||
{{else}}
|
||||
<a class="btn pull-right no-text" {{action "copy"}}>{{d-icon "copy"}}</a>
|
||||
<a class="btn btn-default pull-right no-text" {{action "copy"}}>{{d-icon "copy"}}</a>
|
||||
{{/if}}
|
||||
<h4>{{i18n 'ip_lookup.title'}}</h4>
|
||||
<p class='powered-by'>{{{i18n 'ip_lookup.powered_by'}}}</p>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{#each periods as |p|}}
|
||||
{{#d-button action="changePeriod" actionParam=p}}
|
||||
{{#d-button action="changePeriod" class="btn-default" actionParam=p}}
|
||||
{{period-title p}}
|
||||
{{/d-button}}
|
||||
{{/each}}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
showInvite=showInvite
|
||||
showFlagTopic=showFlagTopic}}
|
||||
{{else}}
|
||||
{{d-button class=bookmarkClass
|
||||
{{d-button class="btn-default {{bookmarkClass}}"
|
||||
title=bookmarkTitle
|
||||
label=bookmarkLabel
|
||||
icon="bookmark"
|
||||
|
@ -33,7 +33,7 @@
|
|||
{{share-button url=topic.shareUrl}}
|
||||
|
||||
{{#if topic.details.can_flag_topic}}
|
||||
{{d-button class="flag-topic"
|
||||
{{d-button class="btn-default flag-topic"
|
||||
title="topic.flag_topic.help"
|
||||
label="topic.flag_topic.title"
|
||||
icon="flag"
|
||||
|
@ -44,7 +44,7 @@
|
|||
{{/unless}}
|
||||
|
||||
{{#if canInviteTo}}
|
||||
{{d-button class="invite-topic"
|
||||
{{d-button class="btn-default invite-topic"
|
||||
title="topic.invite_reply.help"
|
||||
label="topic.invite_reply.title"
|
||||
icon="users"
|
||||
|
@ -53,7 +53,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if canArchive}}
|
||||
{{d-button class="standard archive-topic"
|
||||
{{d-button class="btn-default standard archive-topic"
|
||||
title=archiveTitle
|
||||
label=archiveLabel
|
||||
icon=archiveIcon
|
||||
|
@ -61,7 +61,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if showEditOnFooter}}
|
||||
{{d-button class="edit-message"
|
||||
{{d-button class="btn-default edit-message"
|
||||
title="topic.edit_message.help"
|
||||
label="topic.edit_message.title"
|
||||
icon="pencil"
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
{{#if showFilter}}
|
||||
<li>
|
||||
{{d-button
|
||||
class="btn-default"
|
||||
action=(action "togglePosts" user)
|
||||
icon="filter"
|
||||
translatedLabel=togglePostsLabel}}
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
{{#if item.editableDraft}}
|
||||
<div class='user-stream-item-draft-actions'>
|
||||
{{d-button action=resumeDraft actionParam=item icon="pencil" label='drafts.resume' class="resume-draft"}}
|
||||
{{d-button action=removeDraft actionParam=item icon="times" label='drafts.remove' class="remove-draft"}}
|
||||
{{d-button action=resumeDraft actionParam=item icon="pencil" label='drafts.resume' class="btn-default resume-draft"}}
|
||||
{{d-button action=removeDraft actionParam=item icon="trash-o" label='drafts.remove' class="btn-default remove-draft"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
{{#if showDismissAtTop}}
|
||||
<div class="row">
|
||||
{{#if showDismissRead}}
|
||||
<button title="{{i18n 'topics.bulk.dismiss_tooltip'}}" id='dismiss-topics-top' class='btn dismiss-read' {{action "dismissReadPosts"}}>{{i18n 'topics.bulk.dismiss_button'}}</button>
|
||||
<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>
|
||||
{{/if}}
|
||||
{{#if showResetNew}}
|
||||
<button id='dismiss-new-top' class='btn dismiss-read' {{action "resetNew"}}>{{d-icon "check"}} {{i18n 'topics.bulk.dismiss_new'}}</button>
|
||||
<button id='dismiss-new-top' class='btn btn-default dismiss-read' {{action "resetNew"}}>{{d-icon "check"}} {{i18n 'topics.bulk.dismiss_new'}}</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
@ -69,10 +69,10 @@
|
|||
{{conditional-loading-spinner condition=model.loadingMore}}
|
||||
{{#if allLoaded}}
|
||||
{{#if showDismissRead}}
|
||||
<button title="{{i18n 'topics.bulk.dismiss_tooltip'}}" id='dismiss-topics' class='btn dismiss-read' {{action "dismissReadPosts"}}>{{i18n 'topics.bulk.dismiss_button'}}</button>
|
||||
<button title="{{i18n 'topics.bulk.dismiss_tooltip'}}" id='dismiss-topics' class='btn btn-default dismiss-read' {{action "dismissReadPosts"}}>{{i18n 'topics.bulk.dismiss_button'}}</button>
|
||||
{{/if}}
|
||||
{{#if showResetNew}}
|
||||
<button id='dismiss-new' class='btn dismiss-read' {{action "resetNew"}}>
|
||||
<button id='dismiss-new' class='btn btn-default dismiss-read' {{action "resetNew"}}>
|
||||
{{d-icon "check"}} {{i18n 'topics.bulk.dismiss_new'}}</button>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if canBulkSelect}}
|
||||
{{d-button icon="list" class="bulk-select" title="topics.bulk.toggle" action="toggleBulkSelect"}}
|
||||
{{d-button icon="list" class="btn-default bulk-select" title="topics.bulk.toggle" action="toggleBulkSelect"}}
|
||||
{{bulk-select-button selected=selected action="search"}}
|
||||
{{/if}}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="groups-header">
|
||||
{{#if currentUser.admin}}
|
||||
{{d-button action="new"
|
||||
class="groups-header-new pull-right"
|
||||
class="btn-default groups-header-new pull-right"
|
||||
icon="plus"
|
||||
label="admin.groups.new.title"}}
|
||||
{{/if}}
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if c.can_edit}}
|
||||
<a href {{action "editCategory" c}} class='btn btn-small'>{{i18n 'category.edit'}}</a>
|
||||
<a href {{action "editCategory" c}} class='btn btn-default btn-small'>{{i18n 'category.edit'}}</a>
|
||||
{{/if}}
|
||||
|
||||
</footer>
|
||||
|
|
|
@ -30,10 +30,10 @@
|
|||
{{conditional-loading-spinner condition=model.loadingMore}}
|
||||
{{#if allLoaded}}
|
||||
{{#if showDismissRead}}
|
||||
<button title="{{i18n 'topics.bulk.dismiss_tooltip'}}" id='dismiss-topics' class='btn dismiss-read' {{action "dismissReadPosts"}}>{{i18n 'topics.bulk.dismiss_button'}}</button>
|
||||
<button title="{{i18n 'topics.bulk.dismiss_tooltip'}}" id='dismiss-topics' class='btn btn-default dismiss-read' {{action "dismissReadPosts"}}>{{i18n 'topics.bulk.dismiss_button'}}</button>
|
||||
{{/if}}
|
||||
{{#if showResetNew}}
|
||||
<button id='dismiss-new' class='btn dismiss-read' {{action "resetNew"}}>
|
||||
<button id='dismiss-new' class='btn btn-default dismiss-read' {{action "resetNew"}}>
|
||||
{{d-icon "check"}}
|
||||
{{i18n 'topics.bulk.dismiss_new'}}</button>
|
||||
{{/if}}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
title="user.change_avatar.refresh_gravatar_title"
|
||||
disabled=gravatarRefreshDisabled
|
||||
icon="refresh"
|
||||
class="avatar-selector-refresh-gravatar"}}
|
||||
class="btn-default avatar-selector-refresh-gravatar"}}
|
||||
|
||||
{{#if gravatarFailed}}
|
||||
<p class="error">{{I18n 'user.change_avatar.gravatar_failed'}}</p>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
{{else if model.id}}
|
||||
<div class="disable_info_wrap">
|
||||
{{d-button disabled=deleteDisabled
|
||||
class="disable-no-hover"
|
||||
class="btn-default disable-no-hover"
|
||||
action="toggleDeleteTooltip"
|
||||
icon="question-circle"
|
||||
label="category.delete"}}
|
||||
|
|
|
@ -1,19 +1,20 @@
|
|||
{{#d-modal-body title="history" maxHeight="70%"}}
|
||||
<div id="revision">
|
||||
<div id="revision-controls">
|
||||
{{d-button action="loadFirstVersion" icon="fast-backward" title="post.revisions.controls.first" disabled=loadFirstDisabled}}
|
||||
{{d-button action="loadPreviousVersion" icon="backward" title="post.revisions.controls.previous" disabled=loadPreviousDisabled}}
|
||||
{{d-button class="btn-default" action="loadFirstVersion" icon="fast-backward" title="post.revisions.controls.first" disabled=loadFirstDisabled}}
|
||||
{{d-button class="btn-default" action="loadPreviousVersion" icon="backward" title="post.revisions.controls.previous" disabled=loadPreviousDisabled}}
|
||||
<div id="revision-numbers" class="{{unless displayRevisions 'invisible'}}">
|
||||
{{#conditional-loading-spinner condition=loading size="small"}}
|
||||
{{{revisionsText}}}
|
||||
{{/conditional-loading-spinner}}
|
||||
</div>
|
||||
{{d-button action="loadNextVersion" icon="forward" title="post.revisions.controls.next" disabled=loadNextDisabled}}
|
||||
{{d-button action="loadLastVersion" icon="fast-forward" title="post.revisions.controls.last" disabled=loadLastDisabled}}
|
||||
{{d-button class="btn-default" action="loadNextVersion" icon="forward" title="post.revisions.controls.next" disabled=loadNextDisabled}}
|
||||
{{d-button class="btn-default" action="loadLastVersion" icon="fast-forward" title="post.revisions.controls.last" disabled=loadLastDisabled}}
|
||||
</div>
|
||||
|
||||
{{#if displayEdit}}
|
||||
{{d-button action="editPost"
|
||||
class="btn-default"
|
||||
icon="pencil"
|
||||
label=editButtonLabel}}
|
||||
{{/if}}
|
||||
|
@ -131,12 +132,13 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if displayShow}}
|
||||
{{d-button action="showVersion" icon="eye" label="post.revisions.controls.show" disabled=loading}}
|
||||
{{d-button action="showVersion" icon="eye" label="post.revisions.controls.show" class="btn-default" disabled=loading}}
|
||||
{{/if}}
|
||||
|
||||
{{#if displayEdit}}
|
||||
{{d-button action="editPost"
|
||||
icon="pencil"
|
||||
class="btn-default"
|
||||
label=editButtonLabel}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
<tr data-category-id="{{cat.id}}">
|
||||
<td>
|
||||
{{number-field number=cat.position}}
|
||||
{{d-button class="no-text" action="moveUp" actionParam=cat icon="arrow-up"}}
|
||||
{{d-button class="no-text" action="moveDown" actionParam=cat icon="arrow-down"}}
|
||||
{{d-button class="btn-default no-text" action="moveUp" actionParam=cat icon="arrow-up"}}
|
||||
{{d-button class="btn-default no-text" action="moveDown" actionParam=cat icon="arrow-down"}}
|
||||
{{#if cat.hasBufferedChanges}}
|
||||
{{d-button class="no-text ok" action="commit" icon="check"}}
|
||||
{{/if}}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="controls">
|
||||
<span class='static'>{{model.username}}</span>
|
||||
{{#if model.can_edit_username}}
|
||||
{{#link-to "preferences.username" class="btn btn-small btn-icon pad-left no-text"}}
|
||||
{{#link-to "preferences.username" class="btn btn-default btn-small btn-icon pad-left no-text"}}
|
||||
{{d-icon "pencil"}} {{/link-to}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<div class="controls">
|
||||
<span class='static'>{{model.email}}</span>
|
||||
{{#if model.can_edit_email}}
|
||||
{{#link-to "preferences.email" class="btn btn-small btn-icon pad-left no-text"}}{{d-icon "pencil"}}{{/link-to}}
|
||||
{{#link-to "preferences.email" class="btn btn-default btn-small btn-icon pad-left no-text"}}{{d-icon "pencil"}}{{/link-to}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class='instructions'>
|
||||
|
@ -45,7 +45,7 @@
|
|||
</div>
|
||||
{{else}}
|
||||
<div class="controls">
|
||||
{{d-button action="checkEmail" actionParam=model title="admin.users.check_email.title" icon="envelope-o" label="admin.users.check_email.text"}}
|
||||
{{d-button action="checkEmail" class="btn-default" actionParam=model title="admin.users.check_email.title" icon="envelope-o" label="admin.users.check_email.text"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -55,7 +55,7 @@
|
|||
<div class="control-group pref-password">
|
||||
<label class="control-label">{{i18n 'user.password.title'}}</label>
|
||||
<div class="controls">
|
||||
<a href {{action "changePassword"}} class='btn'>
|
||||
<a href {{action "changePassword"}} class='btn btn-default'>
|
||||
{{d-icon "envelope"}}
|
||||
{{#if model.no_password}}
|
||||
{{i18n 'user.change_password.set_password'}}
|
||||
|
@ -75,7 +75,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if isCurrentUser}}
|
||||
{{#link-to "preferences.second-factor" class="btn btn-small btn-icon pad-left no-text"}}
|
||||
{{#link-to "preferences.second-factor" class="btn btn-default btn-small btn-icon pad-left no-text"}}
|
||||
{{d-icon "pencil"}}
|
||||
{{/link-to}}
|
||||
{{/if}}
|
||||
|
@ -90,7 +90,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if isCurrentUser}}
|
||||
{{#link-to "preferences.second-factor-backup" class="btn btn-small btn-icon pad-left no-text"}}
|
||||
{{#link-to "preferences.second-factor-backup" class="btn btn-default btn-small btn-icon pad-left no-text"}}
|
||||
{{d-icon "pencil"}}
|
||||
{{/link-to}}
|
||||
{{/if}}
|
||||
|
@ -144,7 +144,7 @@
|
|||
<div class="controls">
|
||||
{{! we want the "huge" version even though we're downsizing it in CSS }}
|
||||
{{bound-avatar model "huge"}}
|
||||
{{d-button action="showAvatarSelector" actionParam=model class="pad-left" icon="pencil"}}
|
||||
{{d-button action="showAvatarSelector" actionParam=model class="btn-default pad-left" icon="pencil"}}
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
<p>{{i18n "queue.none"}}</p>
|
||||
{{/each}}
|
||||
|
||||
{{d-button action="refresh" label="refresh" icon="refresh" disabled=model.refreshing id='refresh-queued'}}
|
||||
{{d-button action="refresh" label="refresh" icon="refresh" disabled=model.refreshing class="btn-default" id='refresh-queued'}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<button {{action "save"}} disabled={{model.disableSave}} class='btn'>{{i18n 'tagging.groups.save'}}</button>
|
||||
<button {{action "save"}} disabled={{model.disableSave}} class='btn btn-default'>{{i18n 'tagging.groups.save'}}</button>
|
||||
<button {{action "destroy"}} disabled={{model.disableSave}} class='btn btn-danger'>{{d-icon "trash-o"}} {{i18n 'tagging.groups.delete'}}</button>
|
||||
<span class="saving {{unless model.savingStatus 'hidden'}}">{{model.savingStatus}}</span>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<li><a {{action "selectTagGroup" tagGroup}} class="{{if tagGroup.selected 'active'}}">{{tagGroup.name}}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<button {{action "newTagGroup"}} class='btn'>{{d-icon "plus"}}{{i18n 'tagging.groups.new'}}</button>
|
||||
<button {{action "newTagGroup"}} class='btn btn-default'>{{d-icon "plus"}}{{i18n 'tagging.groups.new'}}</button>
|
||||
</div>
|
||||
|
||||
{{outlet}}
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
{{/if ~}}
|
||||
{{~#if bulkSelectEnabled}}
|
||||
<span class='bulk-select-topics'>
|
||||
<button class='btn bulk-select-all'>{{i18n "topics.bulk.select_all"}}</button>
|
||||
<button class='btn bulk-clear-all'>{{i18n "topics.bulk.clear_all"}}</button>
|
||||
<button class='btn btn-default bulk-select-all'>{{i18n "topics.bulk.select_all"}}</button>
|
||||
<button class='btn btn-default bulk-clear-all'>{{i18n "topics.bulk.clear_all"}}</button>
|
||||
</span>
|
||||
{{/if ~}}
|
||||
{{/if ~}}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
{{plugin-outlet name="edit-topic" args=(hash model=model buffered=buffered)}}
|
||||
<div class="edit-controls">
|
||||
{{d-button action="finishedEditingTopic" class="btn-primary btn-small submit-edit" icon="check"}}
|
||||
{{d-button action="cancelEditingTopic" class="btn-small cancel-edit" icon="times"}}
|
||||
{{d-button action="cancelEditingTopic" class="btn-default btn-small cancel-edit" icon="times"}}
|
||||
|
||||
{{#if canRemoveTopicFeaturedLink}}
|
||||
<a href {{action "removeFeaturedLink"}} class="remove-featured-link" title="{{i18n "composer.remove_featured_link"}}">
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
</li>
|
||||
{{/if}}
|
||||
{{#if currentUser.staff}}
|
||||
<li><a href={{model.adminPath}} class="btn">{{d-icon "wrench"}}{{i18n 'admin.user.show_admin_profile'}}</a></li>
|
||||
<li><a href={{model.adminPath}} class="btn btn-default">{{d-icon "wrench"}}{{i18n 'admin.user.show_admin_profile'}}</a></li>
|
||||
{{/if}}
|
||||
{{plugin-outlet name="user-profile-controls"
|
||||
connectorTagName="li"
|
||||
|
@ -60,11 +60,11 @@
|
|||
{{#if canExpandProfile}}
|
||||
<li>
|
||||
{{#if collapsedInfo}}
|
||||
<a {{action "expandProfile"}} href class="btn">
|
||||
<a {{action "expandProfile"}} href class="btn btn-default">
|
||||
{{d-icon "angle-double-down"}} {{i18n 'user.expand_profile'}}
|
||||
</a>
|
||||
{{else}}
|
||||
<a {{action "collapseProfile"}} href class="btn">
|
||||
<a {{action "collapseProfile"}} href class="btn btn-default">
|
||||
{{d-icon "angle-double-up"}} {{i18n 'user.collapse_profile'}}
|
||||
</a>
|
||||
{{/if}}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
{{#if canDownloadPosts}}
|
||||
<div class='user-archive'>
|
||||
{{d-button action="exportUserArchive" label="user.download_archive.button_text" icon="download"}}
|
||||
{{d-button action="exportUserArchive" class="btn-default" label="user.download_archive.button_text" icon="download"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/d-section}}
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
|
||||
<div class="clearfix list-actions">
|
||||
{{#if showToggleBulkSelect}}
|
||||
<button {{action "toggleBulkSelect"}} class="btn bulk-select no-text" title="{{i18n "user.messages.bulk_select"}}">
|
||||
<button {{action "toggleBulkSelect"}} class="btn btn-default bulk-select no-text" title="{{i18n "user.messages.bulk_select"}}">
|
||||
{{d-icon "list"}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
@ -71,19 +71,19 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if canArchive}}
|
||||
<button {{action "archive"}} class="btn btn-archive">
|
||||
<button {{action "archive"}} class="btn btn-default btn-archive">
|
||||
{{i18n "user.messages.move_to_archive"}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
||||
{{#if canMoveToInbox}}
|
||||
<button {{action "toInbox"}} class="btn btn-to-inbox">
|
||||
<button {{action "toInbox"}} class="btn btn-default btn-to-inbox">
|
||||
{{i18n "user.messages.move_to_inbox"}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
||||
{{#if bulkSelectEnabled}}
|
||||
<button {{action "selectAll"}} class="btn btn-select-all">
|
||||
<button {{action "selectAll"}} class="btn btn-default btn-select-all">
|
||||
{{i18n "user.messages.select_all"}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
{{#if model}}
|
||||
{{d-button title='user.dismiss_notifications_tooltip'
|
||||
class='btn dismiss-notifications'
|
||||
class='btn btn-default dismiss-notifications'
|
||||
action=(action "resetNew")
|
||||
label='user.dismiss_notifications'
|
||||
icon='check'
|
||||
|
|
|
@ -22,6 +22,7 @@ export function buildManageButtons(attrs, currentUser, siteSettings) {
|
|||
if (currentUser.staff) {
|
||||
contents.push({
|
||||
icon: "list",
|
||||
className: "btn-default",
|
||||
label: "admin.flags.moderation_history",
|
||||
action: "showModerationHistory"
|
||||
});
|
||||
|
@ -31,7 +32,7 @@ export function buildManageButtons(attrs, currentUser, siteSettings) {
|
|||
const buttonAtts = {
|
||||
action: "togglePostType",
|
||||
icon: "shield",
|
||||
className: "toggle-post-type"
|
||||
className: "btn-default toggle-post-type"
|
||||
};
|
||||
|
||||
if (attrs.isModeratorAction) {
|
||||
|
@ -47,7 +48,7 @@ export function buildManageButtons(attrs, currentUser, siteSettings) {
|
|||
icon: "cog",
|
||||
label: "post.controls.rebake",
|
||||
action: "rebakePost",
|
||||
className: "rebuild-html"
|
||||
className: "btn-default rebuild-html"
|
||||
});
|
||||
|
||||
if (attrs.hidden) {
|
||||
|
@ -55,7 +56,7 @@ export function buildManageButtons(attrs, currentUser, siteSettings) {
|
|||
icon: "eye",
|
||||
label: "post.controls.unhide",
|
||||
action: "unhidePost",
|
||||
className: "unhide-post"
|
||||
className: "btn-default unhide-post"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +66,7 @@ export function buildManageButtons(attrs, currentUser, siteSettings) {
|
|||
icon: "user",
|
||||
label: "post.controls.change_owner",
|
||||
action: "changePostOwner",
|
||||
className: "change-owner"
|
||||
className: "btn-default change-owner"
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -75,7 +76,7 @@ export function buildManageButtons(attrs, currentUser, siteSettings) {
|
|||
icon: "certificate",
|
||||
label: "post.controls.grant_badge",
|
||||
action: "grantBadge",
|
||||
className: "grant-badge"
|
||||
className: "btn-default grant-badge"
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -85,7 +86,7 @@ export function buildManageButtons(attrs, currentUser, siteSettings) {
|
|||
label: `post.controls.${action}_post`,
|
||||
action: `${action}Post`,
|
||||
title: `post.controls.${action}_post_description`,
|
||||
className: `${action}-post`
|
||||
className: `btn-default ${action}-post`
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -95,14 +96,14 @@ export function buildManageButtons(attrs, currentUser, siteSettings) {
|
|||
action: "toggleWiki",
|
||||
label: "post.controls.unwiki",
|
||||
icon: "pencil-square-o",
|
||||
className: "wiki wikied"
|
||||
className: "btn-default wiki wikied"
|
||||
});
|
||||
} else {
|
||||
contents.push({
|
||||
action: "toggleWiki",
|
||||
label: "post.controls.wiki",
|
||||
icon: "pencil-square-o",
|
||||
className: "wiki"
|
||||
className: "btn-default wiki"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,7 +157,7 @@ export default createWidget("private-message-map", {
|
|||
this.attach("button", {
|
||||
action: "toggleEditing",
|
||||
label: "private_message_info.edit",
|
||||
className: "btn add-remove-participant-btn"
|
||||
className: "btn btn-default add-remove-participant-btn"
|
||||
})
|
||||
];
|
||||
|
||||
|
|
|
@ -42,7 +42,8 @@ createWidget("topic-admin-menu-button", {
|
|||
result.push(
|
||||
this.attach("button", {
|
||||
className:
|
||||
"toggle-admin-menu" + (attrs.fixed ? " show-topic-admin" : ""),
|
||||
"btn-default toggle-admin-menu" +
|
||||
(attrs.fixed ? " show-topic-admin" : ""),
|
||||
title: "topic_admin_menu",
|
||||
icon: "wrench",
|
||||
action: "showAdminMenu",
|
||||
|
@ -132,6 +133,7 @@ export default createWidget("topic-admin-menu", {
|
|||
const buttons = [];
|
||||
buttons.push({
|
||||
className: "topic-admin-multi-select",
|
||||
buttonClass: "btn-default",
|
||||
action: "toggleMultiSelect",
|
||||
icon: "tasks",
|
||||
label: "actions.multi_select"
|
||||
|
@ -153,6 +155,7 @@ export default createWidget("topic-admin-menu", {
|
|||
if (topic.get("deleted") && details.get("can_recover")) {
|
||||
buttons.push({
|
||||
className: "topic-admin-recover",
|
||||
buttonClass: "btn-default",
|
||||
action: "recoverTopic",
|
||||
icon: "undo",
|
||||
label: "actions.recover"
|
||||
|
@ -162,6 +165,7 @@ export default createWidget("topic-admin-menu", {
|
|||
if (topic.get("closed")) {
|
||||
buttons.push({
|
||||
className: "topic-admin-open",
|
||||
buttonClass: "btn-default",
|
||||
action: "toggleClosed",
|
||||
icon: "unlock",
|
||||
label: "actions.open"
|
||||
|
@ -169,6 +173,7 @@ export default createWidget("topic-admin-menu", {
|
|||
} else {
|
||||
buttons.push({
|
||||
className: "topic-admin-close",
|
||||
buttonClass: "btn-default",
|
||||
action: "toggleClosed",
|
||||
icon: "lock",
|
||||
label: "actions.close"
|
||||
|
@ -177,6 +182,7 @@ export default createWidget("topic-admin-menu", {
|
|||
|
||||
buttons.push({
|
||||
className: "topic-admin-status-update",
|
||||
buttonClass: "btn-default",
|
||||
action: "showTopicStatusUpdate",
|
||||
icon: "clock-o",
|
||||
label: "actions.timed_update"
|
||||
|
@ -188,6 +194,7 @@ export default createWidget("topic-admin-menu", {
|
|||
if (!isPrivateMessage && (topic.get("visible") || featured)) {
|
||||
buttons.push({
|
||||
className: "topic-admin-pin",
|
||||
buttonClass: "btn-default",
|
||||
action: "showFeatureTopic",
|
||||
icon: "thumb-tack",
|
||||
label: featured ? "actions.unpin" : "actions.pin"
|
||||
|
@ -197,6 +204,7 @@ export default createWidget("topic-admin-menu", {
|
|||
if (this.currentUser.admin) {
|
||||
buttons.push({
|
||||
className: "topic-admin-change-timestamp",
|
||||
buttonClass: "btn-default",
|
||||
action: "showChangeTimestamp",
|
||||
icon: "calendar",
|
||||
label: "change_timestamp.title"
|
||||
|
@ -206,6 +214,7 @@ export default createWidget("topic-admin-menu", {
|
|||
if (this.currentUser.get("staff")) {
|
||||
buttons.push({
|
||||
className: "topic-admin-reset-bump-date",
|
||||
buttonClass: "btn-default",
|
||||
action: "resetBumpDate",
|
||||
icon: "anchor",
|
||||
label: "actions.reset_bump_date"
|
||||
|
@ -215,6 +224,7 @@ export default createWidget("topic-admin-menu", {
|
|||
if (!isPrivateMessage) {
|
||||
buttons.push({
|
||||
className: "topic-admin-archive",
|
||||
buttonClass: "btn-default",
|
||||
action: "toggleArchived",
|
||||
icon: "folder",
|
||||
label: topic.get("archived") ? "actions.unarchive" : "actions.archive"
|
||||
|
@ -224,6 +234,7 @@ export default createWidget("topic-admin-menu", {
|
|||
const visible = topic.get("visible");
|
||||
buttons.push({
|
||||
className: "topic-admin-visible",
|
||||
buttonClass: "btn-default",
|
||||
action: "toggleVisibility",
|
||||
icon: visible ? "eye-slash" : "eye",
|
||||
label: visible ? "actions.invisible" : "actions.visible"
|
||||
|
@ -232,6 +243,7 @@ export default createWidget("topic-admin-menu", {
|
|||
if (details.get("can_convert_topic")) {
|
||||
buttons.push({
|
||||
className: "topic-admin-convert",
|
||||
buttonClass: "btn-default",
|
||||
action: isPrivateMessage
|
||||
? "convertToPublicTopic"
|
||||
: "convertToPrivateMessage",
|
||||
|
@ -243,6 +255,7 @@ export default createWidget("topic-admin-menu", {
|
|||
if (this.currentUser.get("staff")) {
|
||||
buttons.push({
|
||||
action: "showModerationHistory",
|
||||
buttonClass: "btn-default",
|
||||
icon: "list",
|
||||
fullLabel: "admin.flags.moderation_history"
|
||||
});
|
||||
|
|
|
@ -337,7 +337,7 @@ createWidget("timeline-footer-controls", {
|
|||
if (topic.get("details.can_create_post")) {
|
||||
controls.push(
|
||||
this.attach("button", {
|
||||
className: "create",
|
||||
className: "btn-default create",
|
||||
icon: "reply",
|
||||
title: "topic.reply.help",
|
||||
action: "replyToPost"
|
||||
|
|
|
@ -4,7 +4,7 @@ import computed from "ember-addons/ember-computed-decorators";
|
|||
export default SelectKitHeaderComponent.extend({
|
||||
layoutName:
|
||||
"select-kit/templates/components/dropdown-select-box/dropdown-select-box-header",
|
||||
classNames: "dropdown-select-box-header",
|
||||
classNames: "btn-default dropdown-select-box-header",
|
||||
tagName: "button",
|
||||
|
||||
classNameBindings: ["btnClassName"],
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
}
|
||||
|
||||
.select-kit-row {
|
||||
border-radius: 4px;
|
||||
margin-bottom: 5px;
|
||||
padding: 6px 3px;
|
||||
background: $primary-low;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<%= link_to t.title, t.relative_url %><%= category_badge(t.category) %>
|
||||
</div>
|
||||
<% end %>
|
||||
<a href="<%= path "/top" %>" class="btn"><%= t 'page_not_found.see_more' %>…</a>
|
||||
<a href="<%= path "/top" %>" class="btn btn-default"><%= t 'page_not_found.see_more' %>…</a>
|
||||
</div>
|
||||
<div class="recent-topics">
|
||||
<h2 class="recent-topics-title"><%= t 'page_not_found.recent_topics' %></h2>
|
||||
|
@ -20,7 +20,7 @@
|
|||
<%= link_to t.title, t.relative_url %><%= category_badge(t.category) %>
|
||||
</div>
|
||||
<% end %>
|
||||
<a href="<%= path "/latest" %>" class="btn"><%= t 'page_not_found.see_more' %>…</a>
|
||||
<a href="<%= path "/latest" %>" class="btn btn-default"><%= t 'page_not_found.see_more' %>…</a>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
|
||||
<div class="modal-footer discourse-local-dates-create-modal-footer">
|
||||
{{#if validDate}}
|
||||
{{d-button class="btn"
|
||||
{{d-button class="btn btn-default"
|
||||
action="save"
|
||||
label="discourse_local_dates.create.form.insert"}}
|
||||
{{/if}}
|
||||
|
@ -122,7 +122,7 @@
|
|||
</a>
|
||||
|
||||
{{d-button
|
||||
class="advanced-mode-btn"
|
||||
class="btn-default advanced-mode-btn"
|
||||
action=(action "advancedMode")
|
||||
icon="cog"
|
||||
label=toggleModeBtnLabel}}
|
||||
|
|
|
@ -288,7 +288,7 @@ var bootbox = window.bootbox || (function(document, $) {
|
|||
while (i--) {
|
||||
var label = null,
|
||||
href = null,
|
||||
_class = null,
|
||||
_class = 'btn-default',
|
||||
icon = '',
|
||||
callback = null;
|
||||
|
||||
|
|
Loading…
Reference in New Issue