diff --git a/app/assets/javascripts/admin/addon/templates/admin.hbs b/app/assets/javascripts/admin/addon/templates/admin.hbs
index 8a7c76a1065..cdfe1692918 100644
--- a/app/assets/javascripts/admin/addon/templates/admin.hbs
+++ b/app/assets/javascripts/admin/addon/templates/admin.hbs
@@ -1,32 +1,32 @@
-{{#admin-wrapper class="container"}}
+
- {{nav-item route="admin.dashboard" label="admin.dashboard.title"}}
+
{{#if currentUser.admin}}
- {{nav-item route="adminSiteSettings" label="admin.site_settings.title"}}
+
{{/if}}
- {{nav-item route="adminUsers" label="admin.users.title"}}
+
{{#if showGroups}}
- {{nav-item route="groups" label="admin.groups.title"}}
+
{{/if}}
{{#if showBadges}}
- {{nav-item route="adminBadges" label="admin.badges.title"}}
+
{{/if}}
{{#if currentUser.admin}}
- {{nav-item route="adminEmail" label="admin.email.title"}}
+
{{/if}}
- {{nav-item route="adminLogs" label="admin.logs.title"}}
- {{nav-item route="adminCustomize" label="admin.customize.title"}}
+
+
{{#if currentUser.admin}}
- {{nav-item route="adminApi" label="admin.api.title"}}
+
{{#if siteSettings.enable_backups}}
- {{nav-item route="admin.backups" label="admin.backups.title"}}
+
{{/if}}
{{/if}}
- {{nav-item route="adminPlugins" label="admin.plugins.title"}}
- {{plugin-outlet name="admin-menu"}}
+
+
@@ -37,4 +37,4 @@
-{{/admin-wrapper}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs b/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs
index f5608434adb..24816b5d8da 100644
--- a/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs
@@ -1,11 +1,7 @@
-{{d-button
- class="btn-primary"
- action=(route-action "new")
- icon="plus"
- label="admin.api.new_key"}}
+
{{#if model}}
- {{#load-more selector=".api-keys tr" action=(action "loadMore")}}
+
{{i18n "admin.api.key"}}
@@ -28,9 +24,9 @@
{{i18n "admin.api.user"}}
{{#if k.user}}
- {{#link-to "adminUser" k.user}}
+
{{avatar k.user imageSize="small"}}
- {{/link-to}}
+
{{else}}
{{i18n "admin.api.all_users"}}
{{/if}}
@@ -48,28 +44,20 @@
{{/if}}
- {{d-button action=(route-action "show" k) icon="far-eye" title="admin.api.show_details"}}
+
{{#if k.revoked_at}}
- {{d-button
- action=(action "undoRevokeKey")
- actionParam=k icon="undo"
- title="admin.api.undo_revoke"}}
+
{{else}}
- {{d-button
- class="btn-danger"
- action=(action "revokeKey")
- actionParam=k
- icon="times"
- title="admin.api.revoke"}}
+
{{/if}}
{{/each}}
- {{/load-more}}
+
- {{conditional-loading-spinner condition=loading}}
+
{{else}}
- {{#admin-form-row label="admin.api.key"}}
+
{{#if model.revoked_at}}{{d-icon "times-circle"}}{{/if}}
{{model.truncatedKey}}
- {{/admin-form-row}}
+
- {{#admin-form-row label="admin.api.description"}}
+
{{#if editingDescription}}
- {{input value=buffered.description maxlength="255" placeholder=(i18n "admin.api.description_placeholder")}}
+
{{else}}
{{if model.description model.description (i18n "admin.api.no_description")}}
@@ -20,41 +20,41 @@
{{#if editingDescription}}
- {{d-button class="ok" action=(action "saveDescription") icon="check"}}
- {{d-button class="cancel" action=(action "editDescription") icon="times"}}
+
+
{{else}}
- {{d-button class="btn-default" action=(action "editDescription") icon="pencil-alt"}}
+
{{/if}}
- {{/admin-form-row}}
+
- {{#admin-form-row label="admin.api.user"}}
+
{{#if model.user}}
- {{#link-to "adminUser" model.user}}
+
{{avatar model.user imageSize="small"}} {{model.user.username}}
- {{/link-to}}
+
{{else}}
{{i18n "admin.api.all_users"}}
{{/if}}
- {{/admin-form-row}}
+
- {{#admin-form-row label="admin.api.created"}}
+
{{format-date model.created_at leaveAgo="true"}}
- {{/admin-form-row}}
+
- {{#admin-form-row label="admin.api.updated"}}
+
{{format-date model.updated_at leaveAgo="true"}}
- {{/admin-form-row}}
+
- {{#admin-form-row label="admin.api.last_used"}}
+
{{#if model.last_used_at}}
{{format-date model.last_used_at leaveAgo="true"}}
{{else}}
{{i18n "admin.api.never_used"}}
{{/if}}
- {{/admin-form-row}}
+
- {{#admin-form-row label="admin.api.revoked"}}
+
{{#if model.revoked_at}}
{{format-date model.revoked_at leaveAgo="true"}}
{{else}}
@@ -62,25 +62,13 @@
{{/if}}
{{#if model.revoked_at}}
- {{d-button
- action=(action "undoRevokeKey")
- actionParam=model icon="undo"
- label="admin.api.undo_revoke"}}
- {{d-button
- action=(action "deleteKey")
- actionParam=model icon="trash-alt"
- label="admin.api.delete"
- class="btn-danger"}}
+
+
{{else}}
- {{d-button
- class="btn-danger"
- action=(action "revokeKey")
- actionParam=model
- icon="times"
- label="admin.api.revoke"}}
+
{{/if}}
- {{/admin-form-row}}
+
{{#if model.api_key_scopes.length}}
{{i18n "admin.api.scopes.title"}}
@@ -107,7 +95,7 @@
- {{d-button icon="link" action=(action "showURLs" scope.urls) class="btn-info"}}
+
{{#each scope.parameters as |p|}}
diff --git a/app/assets/javascripts/admin/addon/templates/api.hbs b/app/assets/javascripts/admin/addon/templates/api.hbs
index 288bbc71fe8..fd55893fb90 100644
--- a/app/assets/javascripts/admin/addon/templates/api.hbs
+++ b/app/assets/javascripts/admin/addon/templates/api.hbs
@@ -1,7 +1,7 @@
-{{#admin-nav}}
- {{nav-item route="adminApiKeys" label="admin.api.title"}}
- {{nav-item route="adminWebHooks" label="admin.web_hooks.title"}}
-{{/admin-nav}}
+
+
+
+
{{outlet}}
diff --git a/app/assets/javascripts/admin/addon/templates/backups-index.hbs b/app/assets/javascripts/admin/addon/templates/backups-index.hbs
index cf84d858f81..732b8f308b0 100644
--- a/app/assets/javascripts/admin/addon/templates/backups-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/backups-index.hbs
@@ -1,26 +1,14 @@
{{#if localBackupStorage}}
- {{uppy-backup-uploader done=(route-action "uploadSuccess") localBackupStorage=localBackupStorage}}
+
{{else}}
- {{uppy-backup-uploader done=(route-action "remoteUploadSuccess")}}
+
{{/if}}
{{#if site.isReadOnly}}
- {{d-button
- class="btn-default"
- icon="far-eye"
- action=(action "toggleReadOnlyMode")
- disabled=status.isOperationRunning
- title="admin.backups.read_only.disable.title"
- label="admin.backups.read_only.disable.label"}}
+
{{else}}
- {{d-button
- class="btn-default"
- icon="far-eye"
- action=(action "toggleReadOnlyMode")
- disabled=status.isOperationRunning
- title="admin.backups.read_only.enable.title"
- label="admin.backups.read_only.enable.label"}}
+
{{/if}}
{{#if status.restoreDisabled}}
@@ -41,41 +29,13 @@
{{human-size backup.size}}
- {{d-button class="btn-default download"
- action=(action "download")
- actionParam=backup
- icon="download"
- title="admin.backups.operations.download.title"
- label="admin.backups.operations.download.label"}}
+
{{#if status.isOperationRunning}}
- {{d-button
- icon="far-trash-alt"
- action=(route-action "destroyBackup")
- actionParam=backup class="btn-danger"
- disabled="true"
- title="admin.backups.operations.is_running"}}
- {{d-button
- icon="play"
- action=(route-action "startRestore")
- actionParam=backup disabled=status.restoreDisabled
- class="btn-default"
- title=restoreTitle
- label="admin.backups.operations.restore.label"}}
+
+
{{else}}
- {{d-button
- icon="far-trash-alt"
- action=(route-action "destroyBackup")
- actionParam=backup
- class="btn-danger"
- title="admin.backups.operations.destroy.title"}}
- {{d-button
- icon="play"
- action=(route-action "startRestore")
- actionParam=backup
- disabled=status.restoreDisabled
- class="btn-default btn-restore"
- title=restoreTitle
- label="admin.backups.operations.restore.label"}}
+
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/backups-logs.hbs b/app/assets/javascripts/admin/addon/templates/backups-logs.hbs
index 34ec15f84a7..1f4a77418d0 100644
--- a/app/assets/javascripts/admin/addon/templates/backups-logs.hbs
+++ b/app/assets/javascripts/admin/addon/templates/backups-logs.hbs
@@ -1 +1 @@
-{{admin-backups-logs logs=logs status=status}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/backups.hbs b/app/assets/javascripts/admin/addon/templates/backups.hbs
index 2a5e08ce255..ca33af1c50c 100644
--- a/app/assets/javascripts/admin/addon/templates/backups.hbs
+++ b/app/assets/javascripts/admin/addon/templates/backups.hbs
@@ -2,37 +2,24 @@
- {{nav-item route="admin.backups.index" label="admin.backups.menu.backups"}}
- {{nav-item route="admin.backups.logs" label="admin.backups.menu.logs"}}
- {{plugin-outlet name="downloader" connectorTagName="div"}}
+
+
+
{{#if model.canRollback}}
- {{d-button action=(route-action "rollback")
- class="btn-default btn-rollback"
- label="admin.backups.operations.rollback.label"
- title="admin.backups.operations.rollback.title"
- icon="ambulance"
- disabled=rollbackDisabled}}
+
{{/if}}
{{#if model.isOperationRunning}}
- {{d-button action=(route-action "cancelOperation")
- class="btn-danger"
- title="admin.backups.operations.cancel.title"
- label="admin.backups.operations.cancel.label"
- icon="times"}}
+
{{else}}
- {{d-button action=(route-action "showStartBackupModal")
- class="btn-primary"
- title="admin.backups.operations.backup.title"
- label="admin.backups.operations.backup.label"
- icon="rocket"}}
+
{{/if}}
- {{plugin-outlet name="before-backup-list" connectorTagName="div"}}
+
{{outlet}}
diff --git a/app/assets/javascripts/admin/addon/templates/badges-award.hbs b/app/assets/javascripts/admin/addon/templates/badges-award.hbs
index 1020f6369df..b91297be450 100644
--- a/app/assets/javascripts/admin/addon/templates/badges-award.hbs
+++ b/app/assets/javascripts/admin/addon/templates/badges-award.hbs
@@ -1,4 +1,4 @@
-{{#d-section class="award-badge"}}
+
{{i18n "admin.badges.mass_award.title"}}
{{i18n "admin.badges.mass_award.description"}}
@@ -18,27 +18,21 @@
- {{input type="checkbox" checked=replaceBadgeOwners}}
+
{{i18n "admin.badges.mass_award.replace_owners"}}
{{#if model.multiple_grant}}
- {{input type="checkbox" checked=grantExistingHolders class="grant-existing-holders-checkbox"}}
+
{{i18n "admin.badges.mass_award.grant_existing_holders"}}
{{/if}}
- {{d-button
- class="btn-primary"
- action=(action "massAward")
- type="submit"
- disabled=massAwardButtonDisabled
- icon="certificate"
- label="admin.badges.mass_award.perform"}}
- {{#link-to "adminBadges.index" class="btn btn-normal"}}
+
+
{{d-icon "times"}}
{{i18n "cancel"}}
- {{/link-to}}
+
{{#if saving}}
{{i18n "uploading"}}
@@ -73,4 +67,4 @@
{{else}}
{{i18n "admin.badges.mass_award.no_badge_selected"}}
{{/if}}
-{{/d-section}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/badges-index.hbs b/app/assets/javascripts/admin/addon/templates/badges-index.hbs
index 4f26fde7f30..240428ab45f 100644
--- a/app/assets/javascripts/admin/addon/templates/badges-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/badges-index.hbs
@@ -1,4 +1,4 @@
-{{#d-section class="current-badges"}}
+
@@ -13,4 +13,4 @@
-{{/d-section}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/badges-show.hbs b/app/assets/javascripts/admin/addon/templates/badges-show.hbs
index 524a53c8121..75e1803afdd 100644
--- a/app/assets/javascripts/admin/addon/templates/badges-show.hbs
+++ b/app/assets/javascripts/admin/addon/templates/badges-show.hbs
@@ -1,16 +1,16 @@
-{{#d-section class="current-badge content-body"}}
+
{{i18n "admin.badges.badge_type"}}
- {{combo-box
- name="badge_type_id"
- value=buffered.badge_type_id
- content=badgeTypes
- onChange=(action (mut buffered.badge_type_id))
- options=(hash
+
{{i18n "admin.badges.badge_grouping"}}
- {{combo-box
- name="badge_grouping_id"
- value=buffered.badge_grouping_id
- content=badgeGroupings
- class="badge-selector"
- nameProperty="name"
- onChange=(action (mut buffered.badge_grouping_id))
- }}
- {{d-button
- class="btn-default"
- action=(route-action "editGroupings")
- icon="pencil-alt"
- }}
+
+
{{i18n "admin.badges.description"}}
{{#if buffered.system}}
- {{textarea name="description" value=buffered.description disabled=true}}
+
- {{#link-to "adminSiteText" (query-params q=(concat textCustomizationPrefix "description"))}}
+
{{i18n "admin.badges.read_only_setting_help"}}
- {{/link-to}}
+
{{else}}
- {{textarea name="description" value=buffered.description}}
+
{{/if}}
{{i18n "admin.badges.long_description"}}
{{#if buffered.system}}
- {{textarea name="long_description" value=buffered.long_description disabled=true}}
+
- {{#link-to "adminSiteText" (query-params q=(concat textCustomizationPrefix "long_description"))}}
+
{{i18n "admin.badges.read_only_setting_help"}}
- {{/link-to}}
+
{{else}}
- {{textarea name="long_description" value=buffered.long_description}}
+
{{/if}}
{{#if siteSettings.enable_badge_sql}}
{{i18n "admin.badges.query"}}
- {{ace-editor content=buffered.query mode="sql" disabled=readOnly}}
+
{{#if hasQuery}}
@@ -138,29 +97,23 @@
- {{input type="checkbox" checked=buffered.auto_revoke disabled=readOnly}}
+
{{i18n "admin.badges.auto_revoke"}}
- {{input type="checkbox" checked=buffered.target_posts disabled=readOnly}}
+
{{i18n "admin.badges.target_posts"}}
{{i18n "admin.badges.trigger"}}
- {{combo-box
- name="trigger"
- value=buffered.trigger
- content=badgeTriggers
- onChange=(action (mut buffered.trigger))
- options=(hash
+
{{/if}}
{{/if}}
@@ -168,63 +121,54 @@
- {{d-button
- class="btn-primary"
- action=(action "save")
- type="submit"
- disabled=saving
- label="admin.badges.save"}}
+
{{savingStatus}}
{{#unless readOnly}}
- {{d-button
- action=(action "destroy")
- class="btn-danger"
- label="admin.badges.delete"
- }}
+
{{/unless}}
-{{/d-section}}
+
{{#if grant_count}}
- {{#link-to "badges.show" this}}{{i18n "badges.granted" count=grant_count}}{{/link-to}}
+ {{i18n "badges.granted" count=grant_count}}
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/badges.hbs b/app/assets/javascripts/admin/addon/templates/badges.hbs
index 2f3d3358d9e..37d09891067 100644
--- a/app/assets/javascripts/admin/addon/templates/badges.hbs
+++ b/app/assets/javascripts/admin/addon/templates/badges.hbs
@@ -2,27 +2,27 @@
{{#each model as |badge|}}
- {{#link-to selectedRoute badge.id}}
- {{badge-button badge=badge}}
+
+
{{#if badge.newBadge}}
{{i18n "filters.new.lower_title"}}
{{/if}}
- {{/link-to}}
+
{{/each}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-editable-field.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-editable-field.hbs
index 3dce5e6299a..c9617670f17 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-editable-field.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-editable-field.hbs
@@ -1,7 +1,7 @@
{{i18n name}}
{{#if editing}}
- {{d-button class="btn-default" action=(action "save") label="admin.user_fields.save"}}
+
{{i18n "cancel"}}
{{else}}
- {{d-button class="btn-default" action=(action "edit") icon="pencil-alt"}}
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-report-table-header.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-report-table-header.hbs
index f03bb92f2c1..02d8da84444 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-report-table-header.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-report-table-header.hbs
@@ -1,5 +1,5 @@
{{#if showSortingUI}}
- {{d-button action=sortByLabel icon=sortIcon class="sort-btn"}}
+
{{/if}}
{{#if label.htmlTitle}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-report-table-row.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-report-table-row.hbs
index 8feefaf1106..7a5c52a88df 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-report-table-row.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-report-table-row.hbs
@@ -1,3 +1,3 @@
{{#each labels as |label|}}
- {{admin-report-table-cell label=label data=data options=options}}
+
{{/each}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-report-table.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-report-table.hbs
index 6ff8b0b3e4b..5b6f6724d23 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-report-table.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-report-table.hbs
@@ -3,12 +3,7 @@
{{#if model.computedLabels}}
{{#each model.computedLabels as |label|}}
- {{admin-report-table-header
- showSortingUI=showSortingUI
- currentSortDirection=sortDirection
- currentSortLabel=sortLabel
- label=label
- sortByLabel=(action "sortByLabel" label)}}
+
{{/each}}
{{else}}
{{#each model.data as |data|}}
@@ -19,7 +14,7 @@
{{#each paginatedData as |data|}}
- {{admin-report-table-row data=data labels=model.computedLabels options=options}}
+
{{/each}}
{{#if showTotalForSample}}
@@ -65,10 +60,6 @@
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-report-trust-level-counts.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-report-trust-level-counts.hbs
index ddd2282a165..be416ab37de 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-report-trust-level-counts.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-report-trust-level-counts.hbs
@@ -1,6 +1,6 @@
{{report.title}}
-{{#link-to "adminUsersList.show" "newuser"}}{{number (value-at-tl report.data level="0")}}{{/link-to}}
-{{#link-to "adminUsersList.show" "basic"}}{{number (value-at-tl report.data level="1")}}{{/link-to}}
-{{#link-to "adminUsersList.show" "member"}}{{number (value-at-tl report.data level="2")}}{{/link-to}}
-{{#link-to "adminUsersList.show" "regular"}}{{number (value-at-tl report.data level="3")}}{{/link-to}}
-{{#link-to "adminUsersList.show" "leader"}}{{number (value-at-tl report.data level="4")}}{{/link-to}}
+{{number (value-at-tl report.data level="0")}}
+{{number (value-at-tl report.data level="1")}}
+{{number (value-at-tl report.data level="2")}}
+{{number (value-at-tl report.data level="3")}}
+{{number (value-at-tl report.data level="4")}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-report.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-report.hbs
index 892c802df18..04036efde43 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-report.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-report.hbs
@@ -1,15 +1,15 @@
{{#unless isHidden}}
{{#if isEnabled}}
- {{#conditional-loading-section isLoading=isLoading}}
+
{{#if showHeader}}
{{/if}}
@@ -184,29 +169,21 @@
- {{d-button
- class="btn-default export-csv-btn"
- action=(action "exportCsv")
- label="admin.export_csv.button_text"
- icon="download"}}
+
{{#if showRefresh}}
- {{d-button
- class="refresh-report-btn btn-primary"
- action=(action "refreshReport")
- label="admin.dashboard.reports.refresh_report"
- icon="sync"}}
+
{{/if}}
{{/if}}
- {{/conditional-loading-section}}
+
{{else}}
{{html-safe disabledLabel}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-theme-editor.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-theme-editor.hbs
index a309f9aba5e..f9f923cde0a 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-theme-editor.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-theme-editor.hbs
@@ -3,18 +3,11 @@
{{#each visibleTargets as |target|}}
- {{#link-to editRouteName
- theme.id
- target.name
- fieldName
- replace=true
- title=field.title
- class=(if target.edited "edited" "blank")
- }}
+
{{#if target.error}}{{d-icon "exclamation-triangle"}}{{/if}}
{{#if target.icon}}{{d-icon target.icon}}{{/if}}
{{i18n (concat "admin.customize.theme." target.name)}}
- {{/link-to}}
+
{{/each}}
@@ -31,7 +24,7 @@
- {{input type="checkbox" checked=onlyOverridden click=(action "onlyOverriddenChanged" value="target.checked")}}
+
{{i18n "admin.customize.theme.hide_unused_fields"}}
@@ -44,27 +37,20 @@
{{#each visibleFields as |field|}}
- {{#link-to editRouteName
- theme.id
- currentTargetName
- field.name
- replace=true
- title=field.title
- class=(if field.edited "edited" "blank")
- }}
+
{{#if field.error}}{{d-icon "exclamation-triangle"}}{{/if}}
{{#if field.icon}}{{d-icon field.icon}}{{/if}}
{{field.translatedName}}
- {{/link-to}}
+
{{/each}}
{{#if showAddField}}
{{#if addingField}}
- {{input type=text value=newFieldName enter=(action "addField") escape-press=(action "cancelAddField")}}
- {{d-button class="ok" action=(action "addField" newFieldName) icon="check"}}
- {{d-button class="cancel" action=(action "cancelAddField") icon="times"}}
+
+
+
{{else}}
{{d-icon "plus"}}
@@ -91,13 +77,4 @@
{{html-safe warning}}
{{/if}}
-{{ace-editor
- content=activeSection
- editorId=editorId
- mode=activeSectionMode
- autofocus="true"
- placeholder=placeholder
- htmlPlaceholder=true
- save=(action "save")
- setWarning=(action "setWarning")
-}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-user-field-item.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-user-field-item.hbs
index 6cb97de9a0d..78535773269 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-user-field-item.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-user-field-item.hbs
@@ -1,51 +1,47 @@
{{#if (or isEditing (not userField.id))}}
- {{#admin-form-row label="admin.user_fields.type"}}
- {{combo-box
- content=fieldTypes
- value=buffered.field_type
- onChange=(action (mut buffered.field_type))
- }}
- {{/admin-form-row}}
+
+
+
- {{#admin-form-row label="admin.user_fields.name"}}
- {{input value=buffered.name class="user-field-name" maxlength="255"}}
- {{/admin-form-row}}
+
+
+
- {{#admin-form-row label="admin.user_fields.description"}}
- {{input value=buffered.description class="user-field-desc" maxlength="255"}}
- {{/admin-form-row}}
+
+
+
{{#if bufferedFieldType.hasOptions}}
- {{#admin-form-row label="admin.user_fields.options"}}
- {{value-list values=buffered.options inputType="array"}}
- {{/admin-form-row}}
+
+
+
{{/if}}
- {{#admin-form-row wrapLabel="true"}}
- {{input type="checkbox" checked=buffered.editable}}
{{i18n "admin.user_fields.editable.title"}}
- {{/admin-form-row}}
+
+ {{i18n "admin.user_fields.editable.title"}}
+
- {{#admin-form-row wrapLabel="true"}}
- {{input type="checkbox" checked=buffered.required}}
{{i18n "admin.user_fields.required.title"}}
- {{/admin-form-row}}
+
+ {{i18n "admin.user_fields.required.title"}}
+
- {{#admin-form-row wrapLabel="true"}}
- {{input type="checkbox" checked=buffered.show_on_profile}}
{{i18n "admin.user_fields.show_on_profile.title"}}
- {{/admin-form-row}}
+
+ {{i18n "admin.user_fields.show_on_profile.title"}}
+
- {{#admin-form-row wrapLabel="true"}}
- {{input type="checkbox" checked=buffered.show_on_user_card}}
{{i18n "admin.user_fields.show_on_user_card.title"}}
- {{/admin-form-row}}
+
+ {{i18n "admin.user_fields.show_on_user_card.title"}}
+
- {{#admin-form-row wrapLabel="true"}}
- {{input type="checkbox" checked=buffered.searchable}}
{{i18n "admin.user_fields.searchable.title"}}
- {{/admin-form-row}}
+
+ {{i18n "admin.user_fields.searchable.title"}}
+
- {{#admin-form-row}}
- {{d-button action=(action "save") class="btn-primary save" icon="check" label="admin.user_fields.save"}}
- {{d-button action=(action "cancel") class="btn-danger cancel" icon="times" label="admin.user_fields.cancel"}}
- {{/admin-form-row}}
+
+
+
+
{{else}}
@@ -55,10 +51,10 @@
{{fieldName}}
- {{d-button action=(action "edit") class="btn-default edit" icon="pencil-alt" label="admin.user_fields.edit"}}
- {{d-button action=destroyAction actionParam=userField class="btn-danger cancel" icon="far-trash-alt" label="admin.user_fields.delete"}}
- {{d-button action=moveUpAction actionParam=userField class="btn-default" icon="arrow-up" disabled=cantMoveUp}}
- {{d-button action=moveDownAction actionParam=userField class="btn-default" icon="arrow-down" disabled=cantMoveDown}}
+
+
+
+
{{flags}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event-chooser.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event-chooser.hbs
index 0ecb553d38e..ccad02b5f5d 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event-chooser.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event-chooser.hbs
@@ -1,3 +1,3 @@
-{{input id=typeName type="checkbox" name="event-choice" checked=enabled}}
+
{{name}}
{{details}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event.hbs
index 11977f1398a..487d2efe32a 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event.hbs
@@ -5,9 +5,9 @@
{{createdAt}}
{{completion}}
- {{d-button icon=expandRequestIcon action=(action "toggleRequest") label="admin.web_hooks.events.request"}}
- {{d-button icon=expandResponseIcon action=(action "toggleResponse") label="admin.web_hooks.events.response"}}
- {{d-button icon="sync" action=(action "redeliver") label="admin.web_hooks.events.redeliver"}}
+
+
+
{{#if expandDetails}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/dashboard-new-features.hbs b/app/assets/javascripts/admin/addon/templates/components/dashboard-new-features.hbs
index 74f1a90d9c4..f52f20bfa0a 100644
--- a/app/assets/javascripts/admin/addon/templates/components/dashboard-new-features.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/dashboard-new-features.hbs
@@ -5,7 +5,7 @@
{{#each newFeatures as |feature|}}
- {{dashboard-new-feature-item item=feature tagName=""}}
+
{{/each}}
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/dashboard-problems.hbs b/app/assets/javascripts/admin/addon/templates/components/dashboard-problems.hbs
index f866fa7e5ec..82a32c24792 100644
--- a/app/assets/javascripts/admin/addon/templates/components/dashboard-problems.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/dashboard-problems.hbs
@@ -8,7 +8,7 @@
- {{#conditional-loading-section isLoading=loadingProblems}}
+
{{#if highPriorityProblems.length}}
- {{d-button action=refreshProblems class="btn-default" icon="sync" label="admin.dashboard.refresh_problems"}}
+
{{i18n "admin.dashboard.last_checked"}}: {{problemsTimestamp}}
- {{/conditional-loading-section}}
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/email-styles-editor.hbs b/app/assets/javascripts/admin/addon/templates/components/email-styles-editor.hbs
index cc510651d03..af2859bbe9a 100644
--- a/app/assets/javascripts/admin/addon/templates/components/email-styles-editor.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/email-styles-editor.hbs
@@ -2,17 +2,17 @@
- {{#link-to "adminCustomizeEmailStyle.edit" "html" replace=true}}{{i18n "admin.customize.email_style.html"}}{{/link-to}}
- {{#link-to "adminCustomizeEmailStyle.edit" "css" replace=true}}{{i18n "admin.customize.email_style.css"}}{{/link-to}}
+ {{i18n "admin.customize.email_style.html"}}
+ {{i18n "admin.customize.email_style.css"}}
-{{ace-editor content=editorContents mode=currentEditorMode editorId=editorId save=(action "save")}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/embeddable-host.hbs b/app/assets/javascripts/admin/addon/templates/components/embeddable-host.hbs
index a5e4b04ad2e..83c445e3837 100644
--- a/app/assets/javascripts/admin/addon/templates/components/embeddable-host.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/embeddable-host.hbs
@@ -1,27 +1,23 @@
{{#if editing}}
{{i18n "admin.embedding.host"}}
- {{input value=buffered.host placeholder="example.com" enter=(action "save") class="host-name" autofocus=true}}
+
{{i18n "admin.embedding.class_name"}}
- {{input value=buffered.class_name placeholder="class" enter=(action "save") class="class-name"}}
+
{{i18n "admin.embedding.allowed_paths"}}
- {{input value=buffered.allowed_paths placeholder="/blog/.*" enter=(action "save") class="path-allowlist"}}
+
{{i18n "admin.embedding.category"}}
- {{category-chooser
- value=categoryId
- class="small"
- onChange=(action (mut categoryId))
- }}
+
- {{d-button icon="check" action=(action "save") class="btn-primary" disabled=cantSave}}
- {{d-button icon="times" action=(action "cancel") class="btn-danger" disabled=host.isSaving}}
+
+
{{else}}
{{i18n "admin.embedding.host"}}
{{host.host}}
@@ -29,7 +25,7 @@
{{i18n "admin.embedding.allowed_paths"}}
{{host.allowed_paths}}
{{i18n "admin.embedding.category"}}
{{category-badge host.category allowUncategorized=true}}
- {{d-button icon="pencil-alt" action=(action "edit")}}
- {{d-button icon="far-trash-alt" action=(action "delete") class="btn-danger"}}
+
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/embedding-setting.hbs b/app/assets/javascripts/admin/addon/templates/components/embedding-setting.hbs
index 5ac27a9981f..818cc0c60aa 100644
--- a/app/assets/javascripts/admin/addon/templates/components/embedding-setting.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/embedding-setting.hbs
@@ -1,11 +1,11 @@
{{#if isCheckbox}}
- {{input checked=checked id=inputId type="checkbox"}}
+
{{i18n translationKey}}
{{else}}
{{i18n translationKey}}
- {{input value=value id=inputId placeholder=placeholder}}
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/emoji-value-list.hbs b/app/assets/javascripts/admin/addon/templates/components/emoji-value-list.hbs
index fa27093cfcd..e21c562651e 100644
--- a/app/assets/javascripts/admin/addon/templates/components/emoji-value-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/emoji-value-list.hbs
@@ -2,13 +2,7 @@
{{#each collection as |data index|}}
- {{d-button
- action=(action "removeValue")
- actionParam=data
- icon="times"
- class="remove-value-btn btn-small"
- disabled=(not data.isEditable)
- }}
+
{{#if showUpDownButtons}}
- {{d-button
- action=(action "shift" -1 index)
- icon="arrow-up"
- class="shift-up-value-btn btn-small"
- }}
- {{d-button
- action=(action "shift" 1 index)
- icon="arrow-down"
- class="shift-down-value-btn btn-small"
- }}
+
+
{{/if}}
{{/each}}
@@ -33,20 +19,9 @@
{{/if}}
- {{d-button
- action=(action "editValue")
- actionParam=data
- icon="discourse-emojis"
- class="add-emoji-button d-editor-textarea-wrapper"
- label="admin.site_settings.emoji_list.add_emoji_button.label"
- }}
+
-{{emoji-picker
- isActive=emojiPickerIsActive
- isEditorFocused=isEditorFocused
- emojiSelected=(action "emojiSelected")
- onEmojiPickerClose=(action "closeEmojiPicker")
-}}
+
-{{setting-validation-message message=validationMessage}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/flag-user-lists.hbs b/app/assets/javascripts/admin/addon/templates/components/flag-user-lists.hbs
index 78b30290ee3..ea058c8c4eb 100644
--- a/app/assets/javascripts/admin/addon/templates/components/flag-user-lists.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/flag-user-lists.hbs
@@ -4,15 +4,12 @@
{{#each flaggedPost.post_actions as |postAction|}}
- {{#flag-user user=postAction.user date=postAction.created_at}}
+
{{post-action-title postAction.post_action_type_id postAction.name_key}}
- {{user-flag-percentage
- agreed=postAction.user.flags_agreed
- disagreed=postAction.user.flags_disagreed
- ignored=postAction.user.flags_ignored}}
- {{/flag-user}}
+
+
{{/each}}
@@ -24,12 +21,12 @@
{{#each flaggedPost.post_actions as |postAction|}}
- {{#flag-user user=postAction.disposed_by date=postAction.disposed_at}}
+
{{disposition-icon postAction.disposition}}
{{#if postAction.staff_took_action}}
{{d-icon "gavel" title="admin.flags.took_action"}}
{{/if}}
- {{/flag-user}}
+
{{/each}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/flag-user.hbs b/app/assets/javascripts/admin/addon/templates/components/flag-user.hbs
index 0662859c2df..43f19485a81 100644
--- a/app/assets/javascripts/admin/addon/templates/components/flag-user.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/flag-user.hbs
@@ -1,12 +1,12 @@
- {{#link-to "adminUser" user.id user.username class="flag-user-avatar"}}
+
{{avatar user imageSize="small"}}
- {{/link-to}}
+
- {{#link-to "adminUser" user.id user.username class="flag-user-username"}}
+
{{user.username}}
- {{/link-to}}
+
{{format-age date}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/inline-edit-checkbox.hbs b/app/assets/javascripts/admin/addon/templates/components/inline-edit-checkbox.hbs
index 0e8cfba7e08..9db2fcc1d5f 100644
--- a/app/assets/javascripts/admin/addon/templates/components/inline-edit-checkbox.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/inline-edit-checkbox.hbs
@@ -1,8 +1,8 @@
- {{input type="checkbox" disabled=disabled checked=buffer}}
+
{{i18n labelKey}}
{{#if changed}}
- {{d-button action=(action "apply") class="btn-primary btn-small submit-edit" icon="check"}}
- {{d-button action=(action "cancel") class="btn-small cancel-edit" icon="times"}}
+
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/install-theme-item.hbs b/app/assets/javascripts/admin/addon/templates/components/install-theme-item.hbs
index a44f6837aab..81169521131 100644
--- a/app/assets/javascripts/admin/addon/templates/components/install-theme-item.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/install-theme-item.hbs
@@ -1,4 +1,4 @@
-{{radio-button name="install-items" id=value value=value selection=selection}}
+
{{#if showIcon}}
{{d-icon "plus"}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/penalty-post-action.hbs b/app/assets/javascripts/admin/addon/templates/components/penalty-post-action.hbs
index a796f090576..991f107d8db 100644
--- a/app/assets/javascripts/admin/addon/templates/components/penalty-post-action.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/penalty-post-action.hbs
@@ -4,17 +4,11 @@
{{html-safe (i18n "admin.user.penalty_post_actions")}}
- {{combo-box
- value=postAction
- content=penaltyActions
- onChange=(action "penaltyChanged")
- }}
+
{{#if editing}}
- {{textarea
- value=postEdit
- class="post-editor"}}
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/permalink-form.hbs b/app/assets/javascripts/admin/addon/templates/components/permalink-form.hbs
index cbe3dc77478..4ff56bf1dbf 100644
--- a/app/assets/javascripts/admin/addon/templates/components/permalink-form.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/permalink-form.hbs
@@ -2,35 +2,12 @@
{{i18n "admin.permalink.form.label"}}
- {{text-field
- value=url
- disabled=formSubmitted
- class="permalink-url"
- placeholderKey="admin.permalink.url"
- autocorrect="off"
- autocapitalize="off"
- }}
+
- {{combo-box
- content=permalinkTypes
- value=permalinkType
- onChange=(action (mut permalinkType))
- class="permalink-type"
- }}
+
- {{text-field
- value=permalinkTypeValue
- disabled=formSubmitted
- placeholderKey=permalinkTypePlaceholder
- autocorrect="off"
- autocapitalize="off"
- keyDown=(action "submitFormOnEnter")
- }}
+
- {{d-button
- action=(action "onSubmit")
- disabled=formSubmitted
- label="admin.permalink.form.add"
- }}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs b/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs
index de106adfd8c..ee9caaaef69 100644
--- a/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs
@@ -1,5 +1 @@
-{{input
- type="checkbox"
- checked=checked
- click=(action "onChange")
-}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/report-filters/category.hbs b/app/assets/javascripts/admin/addon/templates/components/report-filters/category.hbs
index bdf354e188b..d6e63f575a2 100644
--- a/app/assets/javascripts/admin/addon/templates/components/report-filters/category.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/report-filters/category.hbs
@@ -1,5 +1 @@
-{{search-advanced-category-chooser
- value=category
- onChange=(action "onChange")
- options=(hash filterable=true)
-}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/report-filters/group.hbs b/app/assets/javascripts/admin/addon/templates/components/report-filters/group.hbs
index c306bcc68ff..eb11cf42524 100644
--- a/app/assets/javascripts/admin/addon/templates/components/report-filters/group.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/report-filters/group.hbs
@@ -1,11 +1,5 @@
-{{combo-box
- valueProperty="value"
- content=groupOptions
- value=groupId
- onChange=(action "onChange")
- options=(hash
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/report-filters/list.hbs b/app/assets/javascripts/admin/addon/templates/components/report-filters/list.hbs
index e01c74268bd..584b028cf73 100644
--- a/app/assets/javascripts/admin/addon/templates/components/report-filters/list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/report-filters/list.hbs
@@ -1,10 +1,5 @@
-{{combo-box
- content=filter.choices
- value=filter.default
- onChange=(action "onChange")
- options=(hash
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/screened-ip-address-form.hbs b/app/assets/javascripts/admin/addon/templates/components/screened-ip-address-form.hbs
index a78a6c82e17..ce7bb6e485c 100644
--- a/app/assets/javascripts/admin/addon/templates/components/screened-ip-address-form.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/screened-ip-address-form.hbs
@@ -1,10 +1,6 @@
{{i18n "admin.logs.screened_ips.form.label"}}
-{{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
- onChange=(action (mut actionName))
-}}
+
-{{d-button class="btn-default" action=(action "submit") disabled=formSubmitted label="admin.logs.screened_ips.form.add"}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/secret-value-list.hbs b/app/assets/javascripts/admin/addon/templates/components/secret-value-list.hbs
index 5674d6d7d7d..2429f9ad8a8 100644
--- a/app/assets/javascripts/admin/addon/templates/components/secret-value-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/secret-value-list.hbs
@@ -2,23 +2,18 @@
{{/if}}
- {{text-field value=newKey class="new-value-input key" placeholder=setting.placeholder.key}}
- {{input type="password" value=newSecret class="new-value-input secret" placeholder=setting.placeholder.value}}
- {{d-button action=(action "addValue")
- icon="plus"
- class="add-value-btn btn-small"}}
+
+
+
-{{setting-validation-message message=validationMessage}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/silence-details.hbs b/app/assets/javascripts/admin/addon/templates/components/silence-details.hbs
index c0a37f55bb3..84727644ba8 100644
--- a/app/assets/javascripts/admin/addon/templates/components/silence-details.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/silence-details.hbs
@@ -4,11 +4,7 @@
{{html-safe (i18n "admin.user.silence_reason_label")}}
- {{text-field
- value=reason
- class="silence-reason"
- placeholderKey="admin.user.silence_reason_placeholder"
- }}
+
@@ -16,7 +12,4 @@
{{i18n "admin.user.silence_message"}}
-{{textarea
- value=message
- class="silence-message"
- placeholder=(i18n "admin.user.silence_message_placeholder")}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/simple-list.hbs b/app/assets/javascripts/admin/addon/templates/components/simple-list.hbs
index fab64bc92d0..0161851fce0 100644
--- a/app/assets/javascripts/admin/addon/templates/components/simple-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/simple-list.hbs
@@ -2,31 +2,13 @@
{{#each collection as |value index|}}
- {{d-button
- action=(action "removeValue")
- actionParam=value
- icon="times"
- class="remove-value-btn btn-small"
- }}
+
- {{input
- title=value
- value=value
- class="value-input"
- focus-out=(action "changeValue" index)
- }}
+
{{#if showUpDownButtons}}
- {{d-button
- action=(action "shift" -1 index)
- icon="arrow-up"
- class="shift-up-value-btn btn-small"
- }}
- {{d-button
- action=(action "shift" 1 index)
- icon="arrow-down"
- class="shift-down-value-btn btn-small"
- }}
+
+
{{/if}}
@@ -36,21 +18,7 @@
{{/if}}
- {{input
- type="text"
- value=newValue
- placeholderKey="admin.site_settings.simple_list.add_item"
- class="add-value-input"
- autocomplete="off"
- autocorrect="off"
- autocapitalize="off"
- }}
+
- {{d-button
- action=(action "addValue")
- actionParam=newValue
- disabled=inputEmpty
- icon="plus"
- class="add-value-btn btn-small"
- }}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-customization-change-details.hbs b/app/assets/javascripts/admin/addon/templates/components/site-customization-change-details.hbs
index a3358b195b8..501b0105927 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-customization-change-details.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-customization-change-details.hbs
@@ -2,17 +2,17 @@
{{i18n "admin.customize.enabled"}} : {{change.enabled}}
-{{site-customization-change-field field=change.stylesheet name="admin.customize.css"}}
-{{site-customization-change-field icon="mobile" field=change.mobile_stylesheet name="admin.customize.css"}}
+
+
-{{site-customization-change-field field=change.header name="admin.customize.header"}}
-{{site-customization-change-field icon="mobile" field=change.mobile_header name="admin.customize.header"}}
+
+
-{{site-customization-change-field field=change.top name="admin.customize.top"}}
-{{site-customization-change-field icon="mobile" field=change.mobile_top name="admin.customize.top"}}
+
+
-{{site-customization-change-field field=change.footer name="admin.customize.footer"}}
-{{site-customization-change-field icon="mobile" field=change.mobile_footer name="admin.customize.footer"}}
+
+
-{{site-customization-change-field icon="file-text-o" field=change.head_tag name="admin.customize.head_tag.text"}}
-{{site-customization-change-field icon="file-text-o" field=change.body_tag name="admin.customize.body_tag.text"}}
+
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-customization-change-field.hbs b/app/assets/javascripts/admin/addon/templates/components/site-customization-change-field.hbs
index b11022cb3c6..3c4d3fa099c 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-customization-change-field.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-customization-change-field.hbs
@@ -2,6 +2,6 @@
{{i18n name}} : ({{i18n "character_count" count=field.length}})
- {{textarea value=field class="plain"}}
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-setting.hbs b/app/assets/javascripts/admin/addon/templates/components/site-setting.hbs
index 01e47fee830..fd6910d0e53 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-setting.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-setting.hbs
@@ -2,11 +2,11 @@
{{#if staffLogFilter}}
{{settingName}}
- {{#link-to "adminLogs.staffActionLogs" (query-params filters=staffLogFilter force_refresh=true) title=(i18n "admin.settings.history")}}
+
{{d-icon "history"}}
- {{/link-to}}
+
{{else}}
{{settingName}}
{{/if}}
@@ -20,12 +20,12 @@
{{#if dirty}}
- {{d-button class="ok" action=(action "update") icon="check"}}
- {{d-button class="cancel" action=(action "cancel") icon="times"}}
+
+
{{else if setting.overridden}}
{{#if setting.secret}}
- {{d-button action=(action "toggleSecret") icon="far-eye-slash"}}
+
{{/if}}
- {{d-button class="btn-default undo" action=(action "resetDefault") icon="undo" label="admin.settings.reset"}}
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/bool.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/bool.hbs
index 848c68145c6..29ec01159fa 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/bool.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/bool.hbs
@@ -1,6 +1,6 @@
- {{input type="checkbox" checked=enabled}}
+
{{html-safe setting.description}}
-{{setting-validation-message message=validationMessage}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/category-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/category-list.hbs
index a551fd9f126..5019261a245 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/category-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/category-list.hbs
@@ -1,7 +1,4 @@
-{{category-selector
- categories=selectedCategories
- onChange=(action "onChangeSelectedCategories")
-}}
+
{{html-safe setting.description}}
-{{setting-validation-message message=validationMessage}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/category.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/category.hbs
index 27a80e7aaaf..2986fef49e3 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/category.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/category.hbs
@@ -1,10 +1,6 @@
-{{category-chooser
- value=value
- onChange=(action (mut value))
- options=(hash
+
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/color.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/color.hbs
index 7b9b5bf2a88..05d28ae1ada 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/color.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/color.hbs
@@ -1,9 +1,3 @@
-{{color-input
- hexValue=(readonly value)
- valid=valid
- onlyHex=false
- styleSelection=false
- onChangeColor=(action "onChangeColor")
-}}
-{{setting-validation-message message=validationMessage}}
+
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/compact-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/compact-list.hbs
index c896d5ecc35..6d1f56e6bd9 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/compact-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/compact-list.hbs
@@ -1,13 +1,6 @@
-{{list-setting
- value=settingValue
- settingName=setting.setting
- choices=settingChoices
- onChange=(action "onChangeListSetting")
- onChangeChoices=(action "onChangeChoices")
- options=(hash
+
-{{setting-validation-message message=validationMessage}}
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/emoji-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/emoji-list.hbs
index 50d1d18898b..1a42748ff11 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/emoji-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/emoji-list.hbs
@@ -1,3 +1,3 @@
-{{emoji-value-list setting=setting values=value}}
+
{{html-safe setting.description}}
-{{setting-validation-message message=validationMessage}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/enum.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/enum.hbs
index 265301db6a4..e11ec645827 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/enum.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/enum.hbs
@@ -1,18 +1,11 @@
-{{combo-box
- content=setting.validValues
- value=value
- onChange=(action (mut value))
- valueProperty=setting.computedValueProperty
- nameProperty=setting.computedNameProperty
- options=(hash
+
{{preview}}
-{{setting-validation-message message=validationMessage}}
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/group-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/group-list.hbs
index 9ad465c8d48..96a009b3490 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/group-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/group-list.hbs
@@ -1,10 +1,3 @@
-{{list-setting
- value=settingValue
- choices=groupChoices
- settingName="name"
- nameProperty=nameProperty
- valueProperty=valueProperty
- onChange=(action "onChangeGroupListSetting")
-}}
-{{setting-validation-message message=validationMessage}}
+
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/host-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/host-list.hbs
index 3460bf78df3..8953f1350ad 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/host-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/host-list.hbs
@@ -1,12 +1,6 @@
-{{list-setting
- value=settingValue
- settingName=setting.setting
- choices=settingValue
- onChange=(action "onChange")
- options=(hash
+
-{{setting-validation-message message=validationMessage}}
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/list.hbs
index 753b9ba9871..d0cbacd5ea7 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/list.hbs
@@ -1,3 +1,3 @@
-{{value-list values=value inputDelimiter="|" choices=setting.choices}}
-{{setting-validation-message message=validationMessage}}
+
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/named-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/named-list.hbs
index 8e2a8aac50f..9f3393704ab 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/named-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/named-list.hbs
@@ -1,14 +1,6 @@
-{{list-setting
- value=settingValue
- settingName=setting.setting
- choices=settingChoices
- nameProperty="name"
- valueProperty="value"
- onChange=(action "onChangeListSetting")
- options=(hash
+
-{{setting-validation-message message=validationMessage}}
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/secret-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/secret-list.hbs
index 08b9992e882..26010dd8048 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/secret-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/secret-list.hbs
@@ -1,3 +1,3 @@
-{{secret-value-list setting=setting values=value isSecret=isSecret}}
-{{setting-validation-message message=validationMessage}}
+
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/simple-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/simple-list.hbs
index 3eca57db83a..0d34eee4b8b 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/simple-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/simple-list.hbs
@@ -1,3 +1,3 @@
-{{simple-list values=value inputDelimiter=inputDelimiter onChange=(action "onChange")}}
-{{setting-validation-message message=validationMessage}}
+
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/string.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/string.hbs
index 09eb918646f..28d4a0a44ad 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/string.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/string.hbs
@@ -1,16 +1,12 @@
{{#if setting.textarea}}
- {{textarea value=value classNames="input-setting-textarea"}}
+
{{else if setting.json_schema}}
- {{d-button
- action=(action "launchJsonEditorModal")
- icon="pencil-alt"
- label="admin.site_settings.json_schema.edit"
- }}
+
{{else if isSecret}}
- {{input type="password" value=value classNames="input-setting-string"}}
+
{{else}}
- {{text-field value=value classNames="input-setting-string"}}
+
{{/if}}
-{{setting-validation-message message=validationMessage}}
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/tag-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/tag-list.hbs
index a326f2a6562..2f0375bb6b5 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/tag-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/tag-list.hbs
@@ -1,11 +1,6 @@
-{{tag-chooser
- tags=selectedTags
- onChange=(action "changeSelectedTags")
- everyTag=true
- options=(hash
+
{{html-safe setting.description}}
-{{setting-validation-message message=validationMessage}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/upload.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/upload.hbs
index 7d2c4b4e03c..d68639ddd66 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/upload.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/upload.hbs
@@ -1,9 +1,3 @@
-{{uppy-image-uploader
- imageUrl=value
- placeholderUrl=setting.placeholder
- additionalParams=(hash for_site_setting=true)
- type="site_setting"
- id=(concat "site-setting-image-uploader-" setting.setting)
-}}
+
{{html-safe setting.description}}
-{{setting-validation-message message=validationMessage}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/uploaded-image-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/uploaded-image-list.hbs
index df019bae62f..22b35fd33a8 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/uploaded-image-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/uploaded-image-list.hbs
@@ -1,3 +1,3 @@
-{{d-button label="admin.site_settings.uploaded_image_list.label" action=(action "showUploadModal") actionParam=(hash value=value setting=setting)}}
+
{{html-safe setting.description}}
-{{setting-validation-message message=validationMessage}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/url-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/url-list.hbs
index 7d22100489d..b9f79d51b05 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/url-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/url-list.hbs
@@ -1,3 +1,3 @@
-{{value-list values=value addKey="admin.site_settings.add_url"}}
-{{setting-validation-message message=validationMessage}}
+
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/value-list.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/value-list.hbs
index 52a0fcc5c9f..3265f00790c 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/value-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/value-list.hbs
@@ -1,3 +1,3 @@
-{{value-list values=value}}
-{{setting-validation-message message=validationMessage}}
+
+
{{html-safe setting.description}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-text-summary.hbs b/app/assets/javascripts/admin/addon/templates/components/site-text-summary.hbs
index 42323a18340..181e885f680 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-text-summary.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-text-summary.hbs
@@ -1,4 +1,4 @@
-{{d-button label="admin.site_text.edit" class="btn-default edit" action=editAction actionParam=siteText}}
+
{{siteText.id}}
{{siteText.value}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/suspension-details.hbs b/app/assets/javascripts/admin/addon/templates/components/suspension-details.hbs
index 97fcbd8dcd0..309e9206848 100644
--- a/app/assets/javascripts/admin/addon/templates/components/suspension-details.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/suspension-details.hbs
@@ -11,16 +11,9 @@
{{i18n "admin.user.suspend_reason_title"}}
- {{combo-box
- content=reasons
- value=selectedReason
- class="suspend-reason"
- onChange=(action setSelectedReason)}}
+
{{#if isCustomReason}}
- {{text-field
- value=customReason
- class="suspend-reason"
- onChange=(action setCustomReason)}}
+
{{/if}}
@@ -29,7 +22,4 @@
{{i18n "admin.user.suspend_message"}}
-{{textarea
- value=message
- class="suspend-message"
- placeholder=(i18n "admin.user.suspend_message_placeholder")}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/themes-list-item.hbs b/app/assets/javascripts/admin/addon/templates/components/themes-list-item.hbs
index 70a704ee463..c1c9e7fced3 100644
--- a/app/assets/javascripts/admin/addon/templates/components/themes-list-item.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/themes-list-item.hbs
@@ -1,5 +1,5 @@
- {{plugin-outlet name="admin-customize-themes-list-item" tagName="span" connectorTagName="span" args=(hash theme=theme)}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/themes-list.hbs b/app/assets/javascripts/admin/addon/templates/components/themes-list.hbs
index 5639dc42c1e..6c268550975 100644
--- a/app/assets/javascripts/admin/addon/templates/components/themes-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/themes-list.hbs
@@ -1,36 +1,19 @@
{{#if showFilter}}
- {{input
- class="filter-input"
- placeholder=(i18n "admin.customize.theme.filter_placeholder")
- autocomplete="off"
- type="search"
- value=(mut filterTerm)
- }}
+
{{d-icon "search"}}
{{/if}}
{{#if hasThemes}}
{{#if hasActiveThemes}}
{{#each activeThemes as |theme|}}
- {{themes-list-item theme=theme navigateToTheme=(action "navigateToTheme" theme)}}
+
{{/each}}
{{#if hasInactiveThemes}}
@@ -48,7 +31,7 @@
{{#if hasInactiveThemes}}
{{#each inactiveThemes as |theme|}}
- {{themes-list-item theme=theme navigateToTheme=(action "navigateToTheme" theme)}}
+
{{/each}}
{{/if}}
{{else}}
@@ -59,5 +42,5 @@
- {{d-button action=installModal icon="upload" label="admin.customize.install" class="btn-primary"}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/value-list.hbs b/app/assets/javascripts/admin/addon/templates/components/value-list.hbs
index c9852ed170f..03e6a72ff34 100644
--- a/app/assets/javascripts/admin/addon/templates/components/value-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/value-list.hbs
@@ -2,45 +2,20 @@
{{#each collection as |value index|}}
- {{d-button
- action=(action "removeValue")
- actionParam=value
- icon="times"
- class="remove-value-btn btn-small"
- }}
+
- {{input
- title=value
- value=value
- class="value-input"
- focus-out=(action "changeValue" index)
- }}
+
{{#if showUpDownButtons}}
- {{d-button
- action=(action "shift" -1 index)
- icon="arrow-up"
- class="shift-up-value-btn btn-small"
- }}
- {{d-button
- action=(action "shift" 1 index)
- icon="arrow-down"
- class="shift-down-value-btn btn-small"
- }}
+
+
{{/if}}
{{/each}}
{{/if}}
-{{combo-box
- valueProperty=null
- nameProperty=null
- value=newValue
- content=filteredChoices
- onChange=(action "selectChoice")
- options=(hash
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/version-checks.hbs b/app/assets/javascripts/admin/addon/templates/components/version-checks.hbs
index f9d418a4160..0d5208c1716 100644
--- a/app/assets/javascripts/admin/addon/templates/components/version-checks.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/version-checks.hbs
@@ -126,10 +126,5 @@
{{/if}}
- {{custom-html
- name="upgrade-header"
- versionCheck=versionCheck
- tagName="div"
- classNames="upgrade-header"
- }}
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/watched-word-form.hbs b/app/assets/javascripts/admin/addon/templates/components/watched-word-form.hbs
index a76822c9553..c459a42d49b 100644
--- a/app/assets/javascripts/admin/addon/templates/components/watched-word-form.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/watched-word-form.hbs
@@ -1,40 +1,33 @@
{{i18n "admin.watched_words.form.label"}}
- {{text-field id="watched-word" value=word disabled=formSubmitted class="watched-word-input-field" autocorrect="off" autocapitalize="off" placeholderKey=placeholderKey title=(i18n placeholderKey)}}
+
{{#if canReplace}}
{{i18n "admin.watched_words.form.replace_label"}}
- {{text-field id="watched-replacement" value=replacement disabled=formSubmitted class="watched-word-input-field" autocorrect="off" autocapitalize="off" placeholderKey="admin.watched_words.form.replace_placeholder"}}
+
{{/if}}
{{#if canTag}}
{{i18n "admin.watched_words.form.tag_label"}}
- {{tag-chooser
- id="watched-tag"
- class="watched-word-input-field"
- tags=selectedTags
- onChange=(action "changeSelectedTags")
- everyTag=true
- options=(hash
+
{{/if}}
{{#if canLink}}
{{i18n "admin.watched_words.form.link_label"}}
- {{text-field id="watched-replacement" value=replacement disabled=formSubmitted class="watched-word-input-field" autocorrect="off" autocapitalize="off" placeholderKey="admin.watched_words.form.link_placeholder"}}
+
{{/if}}
-{{d-button class="btn btn-primary" action=(action "submit") disabled=formSubmitted label="admin.watched_words.form.add"}}
+
{{#if showMessage}}
{{message}}
diff --git a/app/assets/javascripts/admin/addon/templates/customize-colors-show.hbs b/app/assets/javascripts/admin/addon/templates/customize-colors-show.hbs
index 7c0ef9a3e0f..b5ffc2413f5 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-colors-show.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize-colors-show.hbs
@@ -1,40 +1,20 @@
-
{{#if model.theme_id}}{{model.name}}{{else}}{{text-field class="style-name" value=model.name}}{{/if}}
+
{{#if model.theme_id}}{{model.name}}{{else}} {{/if}}
{{#unless model.theme_id}}
- {{d-button
- class="btn-primary"
- action=(action "save")
- disabled=model.disableSave
- label="admin.customize.save"
- }}
+
{{/unless}}
- {{d-button
- class="btn-default"
- action=(action "copy" model)
- icon="copy"
- label="admin.customize.copy"
- }}
- {{d-button
- class="btn-default copy-to-clipboard"
- action=(action "copyToClipboard" model)
- icon="far-clipboard"
- label="admin.customize.copy_to_clipboard"
- }}
+
+
{{model.savingStatus}}
{{#if model.theme_id}}
{{i18n "admin.customize.theme_owner"}}
- {{#link-to "adminCustomizeThemes.show" model.theme_id}}{{model.theme_name}}{{/link-to}}
+ {{model.theme_name}}
{{else}}
- {{d-button
- action=(action "destroy")
- class="btn-danger"
- icon="far-trash-alt"
- label="admin.customize.delete"
- }}
+
{{/if}}
@@ -42,7 +22,7 @@
{{#unless model.theme_id}}
- {{input type="checkbox" checked=onlyOverridden}}
+
{{i18n "admin.settings.show_overriden"}}
@@ -50,10 +30,10 @@
{{#if model.theme_id}}
- {{inline-edit-checkbox action=(action "applyUserSelectable") labelKey="admin.customize.theme.color_scheme_user_selectable" checked=model.user_selectable modelId=model.id}}
+
{{else}}
- {{input type="checkbox" checked=model.user_selectable}}
+
{{i18n "admin.customize.theme.color_scheme_user_selectable"}}
{{/if}}
@@ -76,19 +56,11 @@
{{c.translatedName}}
{{c.description}}
-
{{color-input hexValue=c.hex brightnessValue=c.brightness valid=c.valid}}
+
{{#unless model.theme_id}}
- {{d-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}}
diff --git a/app/assets/javascripts/admin/addon/templates/customize-colors.hbs b/app/assets/javascripts/admin/addon/templates/customize-colors.hbs
index 01716958c87..0c64ee1e26d 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-colors.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize-colors.hbs
@@ -5,20 +5,16 @@
{{#each model as |scheme|}}
{{#unless scheme.is_base}}
- {{#link-to "adminCustomize.colors.show" scheme replace=true}}
+
{{d-icon "paint-brush"}}
{{scheme.description}}
- {{/link-to}}
+
{{/unless}}
{{/each}}
- {{d-button
- class="btn-default"
- action=(action "newColorScheme")
- icon="plus"
- label="admin.customize.new"}}
+
{{outlet}}
diff --git a/app/assets/javascripts/admin/addon/templates/customize-email-style-edit.hbs b/app/assets/javascripts/admin/addon/templates/customize-email-style-edit.hbs
index 6acb4ed37b8..0d3dbab7416 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-email-style-edit.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize-email-style-edit.hbs
@@ -1,7 +1,7 @@
-{{email-styles-editor styles=model fieldName=fieldName save=(action "save")}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/customize-email-templates-edit.hbs b/app/assets/javascripts/admin/addon/templates/customize-email-templates-edit.hbs
index e41522c0b92..0a90f0b6486 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-email-templates-edit.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize-email-templates-edit.hbs
@@ -1,25 +1,20 @@
-{{combo-box
- value=emailTemplate.id
- content=adminCustomizeEmailTemplates.sortedTemplates
- onChange=adminCustomizeEmailTemplates.onSelectTemplate
- nameProperty="title"
-}}
+
{{i18n "admin.customize.email_templates.subject"}}
{{#if hasMultipleSubjects}}
-
{{#link-to "adminSiteText" (query-params q=hasMultipleSubjects)}}{{i18n "admin.customize.email_templates.multiple_subjects"}}{{/link-to}}
+ {{i18n "admin.customize.email_templates.multiple_subjects"}}
{{else}}
- {{input value=buffered.subject}}
+
{{/if}}
{{i18n "admin.customize.email_templates.body"}}
- {{d-editor value=buffered.body}}
+
- {{#save-controls model=emailTemplate action=(action "saveChanges") saved=saved saveDisabled=saveDisabled}}
+
{{#if emailTemplate.can_revert}}
- {{d-button action=(action "revertChanges") label="admin.customize.email_templates.revert"}}
+
{{/if}}
- {{/save-controls}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/customize-robots-txt.hbs b/app/assets/javascripts/admin/addon/templates/customize-robots-txt.hbs
index 7c78e1f9d27..539f9c98ea7 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-robots-txt.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize-robots-txt.hbs
@@ -6,15 +6,8 @@
{{i18n "admin.customize.robots.overridden"}}
{{/if}}
- {{textarea
- value=buffered.robots_txt
- class="robots-txt-input"}}
- {{#save-controls model=this action=(action "save") saved=saved saveDisabled=saveDisabled}}
- {{d-button
- class="btn-default"
- disabled=resetDisabled
- icon="undo"
- action=(action "reset")
- label="admin.settings.reset"}}
- {{/save-controls}}
+
+
+
+
diff --git a/app/assets/javascripts/admin/addon/templates/customize-themes-edit.hbs b/app/assets/javascripts/admin/addon/templates/customize-themes-edit.hbs
index b4e845e4169..e0c81b56faa 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-themes-edit.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize-themes-edit.hbs
@@ -1,32 +1,17 @@
- {{d-button
- title="go_back"
- action=(action "goBack")
- icon="chevron-left"
- class="btn-small editor-back-button"
- }}
+
{{i18n "admin.customize.theme.edit_css_html"}}
- {{#link-to showRouteName model.id replace=true class="editor-theme-name"
- }}
+
{{model.name}}
- {{/link-to}}
+
- {{admin-theme-editor
- theme=model
- editRouteName=editRouteName
- currentTargetName=currentTargetName
- fieldName=fieldName
- fieldAdded=(action "fieldAdded")
- maximized=maximized
- onlyOverriddenChanged=(action "onlyOverriddenChanged")
- save=(action "save")
- }}
+
diff --git a/app/assets/javascripts/admin/addon/templates/customize-themes-index.hbs b/app/assets/javascripts/admin/addon/templates/customize-themes-index.hbs
index fd1914a9101..e8ddd77ae31 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-themes-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize-themes-index.hbs
@@ -3,7 +3,7 @@
{{i18n "admin.customize.theme.themes_intro"}}
- {{d-button action=(route-action "installModal") icon="upload" label="admin.customize.install" class="btn-primary"}}
+
{{#each externalResources as |resource|}}
diff --git a/app/assets/javascripts/admin/addon/templates/customize-themes-show.hbs b/app/assets/javascripts/admin/addon/templates/customize-themes-show.hbs
index 811510fa3ed..92fecd210b7 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-themes-show.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize-themes-show.hbs
@@ -1,17 +1,13 @@
- {{plugin-outlet name="admin-customize-themes-show-top" tagName="span" connectorTagName="div" args=(hash theme=model)}}
+
{{#if editingName}}
- {{text-field value=model.name autofocus="true"}}
- {{d-button action=(action "finishedEditingName") class="btn-primary btn-small submit-edit" icon="check"}}
- {{d-button action=(action "cancelEditingName") class="btn-small cancel-edit" icon="times"}}
+
+
+
{{else}}
{{model.name}}
- {{d-button
- action=(action "startEditingName")
- icon="pencil-alt"
- class="btn-small"
- }}
+
{{/if}}
@@ -35,19 +31,15 @@
{{#if model.disabled_by}}
{{i18n "admin.customize.theme.disabled_by"}}
- {{#user-link user=model.disabled_by}}
+
{{avatar model.disabled_by imageSize="tiny"}}
{{model.disabled_by.username}}
- {{/user-link}}
+
{{format-date model.disabled_at leaveAgo="true"}}
{{else}}
{{i18n "admin.customize.theme.disabled"}}
{{/if}}
- {{d-button
- class="btn-default"
- action=(action "enableComponent")
- icon="check"
- label="admin.customize.theme.enable"}}
+
{{/unless}}
@@ -95,9 +87,9 @@
{{/if}}
{{#if model.remote_theme.commits_behind}}
- {{d-button action=(action "updateToLatest") icon="download" class="btn-primary" label="admin.customize.theme.update_to_latest"}}
+
{{else}}
- {{d-button action=(action "checkForThemeUpdates") icon="sync" class="btn-default" label="admin.customize.theme.check_for_updates"}}
+
{{/if}}
@@ -131,9 +123,9 @@
{{else}}
{{i18n "admin.customize.theme.creator"}}
- {{#user-link user=model.user}}
+
{{format-username model.user.username}}
- {{/user-link}}
+
{{/if}}
@@ -141,41 +133,36 @@
{{#if showCheckboxes}}
{{#unless model.component}}
- {{inline-edit-checkbox action=(action "applyDefault") labelKey="admin.customize.theme.is_default" checked=model.default modelId=model.id}}
- {{inline-edit-checkbox action=(action "applyUserSelectable") labelKey="admin.customize.theme.user_selectable" checked=model.user_selectable modelId=model.id}}
+
+
{{/unless}}
{{#if model.remote_theme}}
- {{inline-edit-checkbox action=(action "applyAutoUpdateable") labelKey="admin.customize.theme.auto_update" checked=model.auto_update modelId=model.id}}
+
{{/if}}
{{/if}}
{{#unless model.component}}
- {{#d-section class="form-horizontal theme settings control-unit"}}
+
{{i18n "admin.customize.theme.color_scheme"}}
- {{color-palettes
- content=colorSchemes
- value=colorSchemeId
- icon="paint-brush"
- options=(hash
+
{{i18n "admin.customize.theme.color_scheme_select"}}
{{#if colorSchemeChanged}}
- {{d-button action=(action "changeScheme") class="ok submit-edit" icon="check"}}
- {{d-button action=(action "cancelChangeScheme") class="cancel cancel-edit" icon="times"}}
+
+
{{/if}}
- {{/d-section}}
+
{{/unless}}
{{#if parentThemes}}
@@ -183,24 +170,24 @@
{{i18n "admin.customize.theme.component_of"}}
{{#each parentThemes as |theme|}}
- {{#link-to "adminCustomizeThemes.show" theme replace=true}}{{theme.name}}{{/link-to}}
+ {{theme.name}}
{{/each}}
{{/if}}
{{#if model.component}}
- {{#d-section class="form-horizontal theme settings control-unit"}}
+
- {{theme-setting-relatives-selector setting=relativesSelectorSettingsForComponent model=model class="theme-setting"}}
+
- {{/d-section}}
+
{{else}}
- {{#d-section class="form-horizontal theme settings control-unit"}}
+
- {{theme-setting-relatives-selector setting=relativesSelectorSettingsForTheme model=model class="theme-setting"}}
+
- {{/d-section}}
+
{{/if}}
{{#unless model.remote_theme.is_git}}
@@ -219,10 +206,7 @@
{{/if}}
- {{d-button
- class="btn-default edit"
- action=(action "editTheme")
- label="admin.customize.theme.edit_css_html"}}
+
@@ -233,7 +217,7 @@
${{upload.name}}: {{upload.filename}}
- {{d-button action=(action "removeUpload") actionParam=upload class="second btn-default btn-default cancel-edit" icon="times"}}
+
{{/each}}
@@ -241,7 +225,7 @@
{{else}}
{{i18n "admin.customize.theme.no_uploads"}}
{{/if}}
- {{d-button action=(action "addUploadModal") class="btn-default" icon="plus" label="admin.customize.theme.add"}}
+
{{/unless}}
@@ -268,22 +252,22 @@
{{#if hasSettings}}
{{i18n "admin.customize.theme.theme_settings"}}
- {{#d-section class="form-horizontal theme settings control-unit"}}
+
{{#each settings as |setting|}}
- {{theme-setting-editor setting=setting model=model class="theme-setting control-unit"}}
+
{{/each}}
- {{/d-section}}
+
{{/if}}
{{#if hasTranslations}}
{{i18n "admin.customize.theme.theme_translations"}}
- {{#d-section class="form-horizontal theme settings translations control-unit"}}
+
{{#each translations as |translation|}}
- {{theme-translation translation=translation model=model class="theme-translation"}}
+
{{/each}}
- {{/d-section}}
+
{{/if}}
@@ -293,26 +277,18 @@
{{d-icon "download"}} {{i18n "admin.export_json.button_text"}}
{{#if showConvert}}
- {{d-button action=(action "switchType") label="admin.customize.theme.convert" icon=convertIcon class="btn-default btn-normal" title=convertTooltip}}
+
{{/if}}
{{#if model.component}}
{{#if model.enabled}}
- {{d-button
- class="btn-default"
- action=(action "disableComponent")
- icon="ban"
- label="admin.customize.theme.disable"}}
+
{{else}}
- {{d-button
- class="btn-default"
- action=(action "enableComponent")
- icon="check"
- label="admin.customize.theme.enable"}}
+
{{/if}}
{{/if}}
- {{d-button action=(action "destroy") label="admin.customize.delete" icon="trash-alt" class="btn-danger"}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/customize-themes.hbs b/app/assets/javascripts/admin/addon/templates/customize-themes.hbs
index 31d81941df6..8767606671f 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-themes.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize-themes.hbs
@@ -1,9 +1,5 @@
{{#unless editingTheme}}
- {{themes-list
- themes=fullThemes
- components=childThemes
- currentTab=currentTab
- installModal=(route-action "installModal")}}
+
{{/unless}}
{{outlet}}
diff --git a/app/assets/javascripts/admin/addon/templates/customize.hbs b/app/assets/javascripts/admin/addon/templates/customize.hbs
index 48ed0896efa..2b192fb11b7 100644
--- a/app/assets/javascripts/admin/addon/templates/customize.hbs
+++ b/app/assets/javascripts/admin/addon/templates/customize.hbs
@@ -1,17 +1,17 @@
-{{#admin-nav}}
+
{{#if currentUser.admin}}
- {{nav-item route="adminCustomizeThemes" label="admin.customize.theme.title" class="admin-customize-themes"}}
- {{nav-item route="adminCustomize.colors" label="admin.customize.colors.title" class="admin-customize-colors"}}
- {{nav-item route="adminSiteText" label="admin.site_text.title" class="admin-customize-site-text"}}
- {{nav-item route="adminCustomizeEmailTemplates" label="admin.customize.email_templates.title" class="admin-customize-email-templates"}}
- {{nav-item route="adminCustomizeEmailStyle" label="admin.customize.email_style.title" class="admin-customize-email-styles"}}
- {{nav-item route="adminUserFields" label="admin.user_fields.title" class="admin-customize-user-fields"}}
- {{nav-item route="adminEmojis" label="admin.emoji.title" class="admin-customize-emojis"}}
- {{nav-item route="adminPermalinks" label="admin.permalink.title" class="admin-customize-permalinks"}}
- {{nav-item route="adminEmbedding" label="admin.embedding.title" class="admin-customize-embedding"}}
+
+
+
+
+
+
+
+
+
{{/if}}
- {{nav-item route="adminWatchedWords" label="admin.watched_words.title" class="admin-customize-watched-words"}}
-{{/admin-nav}}
+
+
{{outlet}}
diff --git a/app/assets/javascripts/admin/addon/templates/dashboard.hbs b/app/assets/javascripts/admin/addon/templates/dashboard.hbs
index e12e72dce6d..7eb39b55103 100644
--- a/app/assets/javascripts/admin/addon/templates/dashboard.hbs
+++ b/app/assets/javascripts/admin/addon/templates/dashboard.hbs
@@ -1,56 +1,49 @@
-{{plugin-outlet name="admin-dashboard-top" tagName="span" connectorTagName="div"}}
+
{{#if showVersionChecks}}
- {{version-checks versionCheck=versionCheck tagName=""}}
+
{{/if}}
-{{dashboard-problems
- loadingProblems=loadingProblems
- foundProblems=foundProblems
- lowPriorityProblems=lowPriorityProblems
- highPriorityProblems=highPriorityProblems
- problemsTimestamp=problemsTimestamp
- refreshProblems=(action "refreshProblems")
-}}
+
- {{#link-to "admin.dashboard.general" class="navigation-link"}}
+
{{i18n "admin.dashboard.general_tab"}}
- {{/link-to}}
+
{{#if isModerationTabVisible}}
- {{#link-to "admin.dashboardModeration" class="navigation-link"}}
+
{{i18n "admin.dashboard.moderation_tab"}}
- {{/link-to}}
+
{{/if}}
{{#if isSecurityTabVisible}}
- {{#link-to "admin.dashboardSecurity" class="navigation-link"}}
+
{{i18n "admin.dashboard.security_tab"}}
- {{/link-to}}
+
{{/if}}
{{#if isReportsTabVisible}}
- {{#link-to "admin.dashboardReports" class="navigation-link"}}
+
{{i18n "admin.dashboard.reports_tab"}}
- {{/link-to}}
+
{{/if}}
{{outlet}}
-{{dashboard-new-features tagName="div"}}
+
-{{plugin-outlet name="admin-dashboard-bottom" tagName="span" connectorTagName="div"}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/dashboard_general.hbs b/app/assets/javascripts/admin/addon/templates/dashboard_general.hbs
index 4425ee338ff..09bfa92a240 100644
--- a/app/assets/javascripts/admin/addon/templates/dashboard_general.hbs
+++ b/app/assets/javascripts/admin/addon/templates/dashboard_general.hbs
@@ -1,5 +1,5 @@
-{{#conditional-loading-spinner condition=isLoading}}
- {{plugin-outlet name="admin-dashboard-general-top" tagName="span" connectorTagName="div"}}
+
+
{{#if isCommunityHealthVisible}}
- {{admin-report
- dataSourceName="consolidated_page_views"
- forcedModes="stacked-chart"
- filters=filters}}
+
- {{admin-report
- dataSourceName="signups"
- showTrend=true
- forcedModes="chart"
- filters=filters}}
+
- {{admin-report
- dataSourceName="topics"
- showTrend=true
- forcedModes="chart"
- filters=filters}}
+
- {{admin-report
- dataSourceName="posts"
- showTrend=true
- forcedModes="chart"
- filters=filters}}
+
- {{admin-report
- dataSourceName="dau_by_mau"
- showTrend=true
- forcedModes="chart"
- filters=filters}}
+
- {{admin-report
- dataSourceName="daily_engaged_users"
- showTrend=true
- forcedModes="chart"
- filters=filters}}
+
- {{admin-report
- dataSourceName="new_contributors"
- showTrend=true
- forcedModes="chart"
- filters=filters}}
+
@@ -73,9 +42,9 @@
@@ -90,11 +59,7 @@
{{#each activityMetrics as |metric|}}
- {{admin-report
- showHeader=false
- filters=activityMetricsFilters
- forcedModes="counters"
- dataSourceName=metric}}
+
{{/each}}
@@ -103,22 +68,15 @@
{{/if}}
- {{#conditional-loading-section isLoading=isLoading}}
- {{admin-report
- forcedModes="inline-table"
- dataSourceName="users_by_type"}}
+
+
- {{admin-report
- forcedModes="inline-table"
- dataSourceName="users_by_trust_level"}}
- {{/conditional-loading-section}}
+
+
- {{admin-report
- forcedModes="storage-stats"
- dataSourceName="storage_stats"
- showHeader=false}}
+
@@ -140,21 +98,13 @@
{{#if isSearchReportsVisible}}
- {{admin-report
- filters=topReferredTopicsFilters
- dataSourceName="top_referred_topics"
- reportOptions=topReferredTopicsOptions}}
+
- {{admin-report
- dataSourceName="trending_search"
- reportOptions=trendingSearchOptions
- filters=trendingSearchFilters
- isEnabled=logSearchQueriesEnabled
- disabledLabel=trendingSearchDisabledLabel}}
+
{{html-safe (i18n "admin.dashboard.reports.trending_search.more" basePath=(base-path))}}
{{/if}}
- {{plugin-outlet name="admin-dashboard-general-bottom" tagName="span" connectorTagName="div"}}
-{{/conditional-loading-spinner}}
+
+
diff --git a/app/assets/javascripts/admin/addon/templates/dashboard_moderation.hbs b/app/assets/javascripts/admin/addon/templates/dashboard_moderation.hbs
index cebed3c3ff9..66032ad9b87 100644
--- a/app/assets/javascripts/admin/addon/templates/dashboard_moderation.hbs
+++ b/app/assets/javascripts/admin/addon/templates/dashboard_moderation.hbs
@@ -1,5 +1,5 @@
- {{plugin-outlet name="admin-dashboard-moderation-top" tagName="span" connectorTagName="div"}}
+
{{#if isModeratorsActivityVisible}}
@@ -9,37 +9,22 @@
{{i18n "admin.dashboard.moderators_activity"}}
- {{period-chooser
- period=period
- action=(action "changePeriod")
- content=availablePeriods
- fullDay=false}}
+
- {{admin-report
- filters=filters
- showHeader=false
- dataSourceName="moderators_activity"}}
+
{{/if}}
- {{admin-report
- dataSourceName="flags_status"
- reportOptions=flagsStatusOptions
- filters=lastWeekfilters}}
+
- {{admin-report
- dataSourceName="post_edits"
- filters=lastWeekfilters}}
+
- {{admin-report
- dataSourceName="user_flagging_ratio"
- filters=lastWeekfilters
- reportOptions=userFlaggingRatioOptions}}
+
- {{plugin-outlet name="admin-dashboard-moderation-bottom" tagName="span" connectorTagName="div"}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/dashboard_reports.hbs b/app/assets/javascripts/admin/addon/templates/dashboard_reports.hbs
index 83f3ad74eb1..2a45f8928d5 100644
--- a/app/assets/javascripts/admin/addon/templates/dashboard_reports.hbs
+++ b/app/assets/javascripts/admin/addon/templates/dashboard_reports.hbs
@@ -1,28 +1,23 @@
-{{#conditional-loading-spinner condition=isLoading}}
+
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/dashboard_security.hbs b/app/assets/javascripts/admin/addon/templates/dashboard_security.hbs
index 9f0a23dbb51..b076f9f9f2c 100644
--- a/app/assets/javascripts/admin/addon/templates/dashboard_security.hbs
+++ b/app/assets/javascripts/admin/addon/templates/dashboard_security.hbs
@@ -1,15 +1,11 @@
- {{plugin-outlet name="admin-dashboard-security-top" tagName="span" connectorTagName="div"}}
+
- {{admin-report
- dataSourceName="suspicious_logins"
- filters=lastWeekfilters}}
+
- {{admin-report
- dataSourceName="staff_logins"
- filters=lastWeekfilters}}
+
- {{plugin-outlet name="admin-dashboard-security-bottom" tagName="span" connectorTagName="div"}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/email-advanced-test.hbs b/app/assets/javascripts/admin/addon/templates/email-advanced-test.hbs
index 8e4b0cbff04..03a32956681 100644
--- a/app/assets/javascripts/admin/addon/templates/email-advanced-test.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email-advanced-test.hbs
@@ -2,14 +2,11 @@
{{i18n "admin.email.advanced_test.email"}}
- {{textarea name="email" value=email class="email-body"}}
- {{d-button
- action=(action "run")
- label="admin.email.advanced_test.run"
- }}
+
+
-{{#conditional-loading-spinner condition=loading}}
+
{{#if format}}
@@ -22,4 +19,4 @@
{{html-safe elided}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/email-bounced.hbs b/app/assets/javascripts/admin/addon/templates/email-bounced.hbs
index 5677cc4664a..85fa2d8bed5 100644
--- a/app/assets/javascripts/admin/addon/templates/email-bounced.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email-bounced.hbs
@@ -1,4 +1,4 @@
-{{#load-more selector=".email-list tr" action=(action "loadMore")}}
+
@@ -11,9 +11,9 @@
{{i18n "admin.email.logs.filters.title"}}
- {{text-field value=filter.user placeholderKey="admin.email.logs.filters.user_placeholder"}}
- {{text-field value=filter.address placeholderKey="admin.email.logs.filters.address_placeholder"}}
- {{text-field value=filter.type placeholderKey="admin.email.logs.filters.type_placeholder"}}
+
+
+
{{#each model as |l|}}
@@ -21,8 +21,8 @@
{{format-date l.created_at}}
{{#if l.user}}
- {{#link-to "adminUser" l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}}
- {{#link-to "adminUser" l.user}}{{l.user.username}}{{/link-to}}
+ {{avatar l.user imageSize="tiny"}}
+ {{l.user.username}}
{{else}}
—
{{/if}}
@@ -52,6 +52,6 @@
{{/each}}
-{{/load-more}}
+
-{{conditional-loading-spinner condition=loading}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/email-index.hbs b/app/assets/javascripts/admin/addon/templates/email-index.hbs
index 4919b249e6f..d21414f0f59 100644
--- a/app/assets/javascripts/admin/addon/templates/email-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email-index.hbs
@@ -21,14 +21,8 @@
{{#if sendingEmail}}
{{i18n "admin.email.sending_test"}}
{{else}}
- {{text-field value=testEmailAddress placeholderKey="admin.email.test_email_address"}}
- {{d-button
- class="btn-primary"
- action=(action "sendTestEmail")
- disabled=sendTestEmailDisabled
- label="admin.email.send_test"
- type="submit"
- }}
+
+
{{#if sentTestEmailMessage}}
{{sentTestEmailMessage}}
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/email-preview-digest.hbs b/app/assets/javascripts/admin/addon/templates/email-preview-digest.hbs
index a4af09fb881..a051a7b3134 100644
--- a/app/assets/javascripts/admin/addon/templates/email-preview-digest.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email-preview-digest.hbs
@@ -4,20 +4,12 @@
-{{#conditional-loading-spinner condition=loading}}
+
{{#if showSendEmailForm}}
@@ -45,12 +37,8 @@
{{i18n "admin.email.sending_test"}}
{{else}}
{{i18n "admin.email.send_digest_label"}}
- {{text-field value=email placeholderKey="admin.email.test_email_address"}}
- {{d-button
- class="btn-default"
- action=(action "sendEmail")
- disabled=sendEmailDisabled
- label="admin.email.send_digest"}}
+
+
{{#if sentEmail}}
{{i18n "admin.email.sent_test"}}
{{/if}}
@@ -72,4 +60,4 @@
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/email-received.hbs b/app/assets/javascripts/admin/addon/templates/email-received.hbs
index e8632cc687d..584872acf52 100644
--- a/app/assets/javascripts/admin/addon/templates/email-received.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email-received.hbs
@@ -1,4 +1,4 @@
-{{#load-more selector=".email-list tr" action=(action "loadMore")}}
+
@@ -12,9 +12,9 @@
{{i18n "admin.email.logs.filters.title"}}
- {{text-field value=filter.from placeholderKey="admin.email.incoming_emails.filters.from_placeholder"}}
- {{text-field value=filter.to placeholderKey="admin.email.incoming_emails.filters.to_placeholder"}}
- {{text-field value=filter.subject placeholderKey="admin.email.incoming_emails.filters.subject_placeholder"}}
+
+
+
{{#each model as |email|}}
@@ -23,10 +23,10 @@
{{#if email.user}}
- {{#link-to "adminUser" email.user}}
+
{{avatar email.user imageSize="tiny"}}
{{email.from_address}}
- {{/link-to}}
+
{{else}}
—
{{/if}}
@@ -53,6 +53,6 @@
{{/each}}
-{{/load-more}}
+
-{{conditional-loading-spinner condition=loading}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/email-rejected.hbs b/app/assets/javascripts/admin/addon/templates/email-rejected.hbs
index c214a57e374..6a734246eb3 100644
--- a/app/assets/javascripts/admin/addon/templates/email-rejected.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email-rejected.hbs
@@ -1,4 +1,4 @@
-{{#load-more selector=".email-list tr" action=(action "loadMore")}}
+
@@ -13,10 +13,10 @@
{{i18n "admin.email.logs.filters.title"}}
- {{text-field value=filter.from placeholderKey="admin.email.incoming_emails.filters.from_placeholder"}}
- {{text-field value=filter.to placeholderKey="admin.email.incoming_emails.filters.to_placeholder"}}
- {{text-field value=filter.subject placeholderKey="admin.email.incoming_emails.filters.subject_placeholder"}}
- {{text-field value=filter.error placeholderKey="admin.email.incoming_emails.filters.error_placeholder"}}
+
+
+
+
{{#each model as |email|}}
@@ -25,10 +25,10 @@
{{#if email.user}}
- {{#link-to "adminUser" email.user}}
+
{{avatar email.user imageSize="tiny"}}
{{email.from_address}}
- {{/link-to}}
+
{{else}}
{{#if email.from_address}}
{{email.from_address}}
@@ -61,6 +61,6 @@
{{/each}}
-{{/load-more}}
+
-{{conditional-loading-spinner condition=loading}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/email-sent.hbs b/app/assets/javascripts/admin/addon/templates/email-sent.hbs
index d213f4b3735..2317185cf65 100644
--- a/app/assets/javascripts/admin/addon/templates/email-sent.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email-sent.hbs
@@ -1,4 +1,4 @@
-{{#load-more selector=".email-list tr" action=(action "loadMore")}}
+
@@ -12,10 +12,10 @@
{{i18n "admin.email.logs.filters.title"}}
- {{text-field value=filter.user placeholderKey="admin.email.logs.filters.user_placeholder"}}
- {{text-field value=filter.address placeholderKey="admin.email.logs.filters.address_placeholder"}}
- {{text-field value=filter.type placeholderKey="admin.email.logs.filters.type_placeholder"}}
- {{text-field value=filter.reply_key placeholderKey="admin.email.logs.filters.reply_key_placeholder"}}
+
+
+
+
{{#each model as |l|}}
@@ -23,8 +23,8 @@
{{format-date l.created_at}}
{{#if l.user}}
- {{#link-to "adminUser" l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}}
- {{#link-to "adminUser" l.user}}{{l.user.username}}{{/link-to}}
+ {{avatar l.user imageSize="tiny"}}
+ {{l.user.username}}
{{else}}
—
{{/if}}
@@ -50,6 +50,6 @@
{{/each}}
-{{/load-more}}
+
-{{conditional-loading-spinner condition=loading}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/email-skipped.hbs b/app/assets/javascripts/admin/addon/templates/email-skipped.hbs
index 3dc05cfc720..5bd3479d504 100644
--- a/app/assets/javascripts/admin/addon/templates/email-skipped.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email-skipped.hbs
@@ -1,4 +1,4 @@
-{{#load-more selector=".email-list tr" action=(action "loadMore")}}
+
@@ -12,9 +12,9 @@
{{i18n "admin.email.logs.filters.title"}}
- {{text-field value=filter.user placeholderKey="admin.email.logs.filters.user_placeholder"}}
- {{text-field value=filter.address placeholderKey="admin.email.logs.filters.address_placeholder"}}
- {{text-field value=filter.type placeholderKey="admin.email.logs.filters.type_placeholder"}}
+
+
+
@@ -23,8 +23,8 @@
{{format-date l.created_at}}
{{#if l.user}}
- {{#link-to "adminUser" l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}}
- {{#link-to "adminUser" l.user}}{{l.user.username}}{{/link-to}}
+ {{avatar l.user imageSize="tiny"}}
+ {{l.user.username}}
{{else}}
—
{{/if}}
@@ -46,6 +46,6 @@
{{/each}}
-{{/load-more}}
+
-{{conditional-loading-spinner condition=loading}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/email.hbs b/app/assets/javascripts/admin/addon/templates/email.hbs
index b61bdcae840..c4d714d5bc0 100644
--- a/app/assets/javascripts/admin/addon/templates/email.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email.hbs
@@ -1,14 +1,14 @@
-{{#admin-nav}}
- {{nav-item route="adminEmail.index" label="admin.email.settings"}}
- {{nav-item route="adminEmail.previewDigest" label="admin.email.preview_digest"}}
- {{nav-item route="adminEmail.advancedTest" label="admin.email.advanced_test.title"}}
- {{nav-item route="adminCustomizeEmailTemplates" label="admin.email.templates"}}
- {{nav-item route="adminEmail.sent" label="admin.email.sent"}}
- {{nav-item route="adminEmail.skipped" label="admin.email.skipped"}}
- {{nav-item route="adminEmail.bounced" label="admin.email.bounced"}}
- {{nav-item route="adminEmail.received" label="admin.email.received"}}
- {{nav-item route="adminEmail.rejected" label="admin.email.rejected"}}
-{{/admin-nav}}
+
+
+
+
+
+
+
+
+
+
+
{{outlet}}
diff --git a/app/assets/javascripts/admin/addon/templates/embedding.hbs b/app/assets/javascripts/admin/addon/templates/embedding.hbs
index fc07050e346..a09ea779b72 100644
--- a/app/assets/javascripts/admin/addon/templates/embedding.hbs
+++ b/app/assets/javascripts/admin/addon/templates/embedding.hbs
@@ -10,7 +10,7 @@
{{#each embedding.embeddable_hosts as |host|}}
- {{embeddable-host host=host deleteHost=(action "deleteHost")}}
+
{{/each}}
@@ -18,13 +18,13 @@
{{i18n "admin.embedding.get_started"}}
{{/if}}
- {{d-button label="admin.embedding.add_host" action=(action "addHost") icon="plus" class="btn-primary add-host"}}
+
{{#if showSecondary}}
{{html-safe (i18n "admin.embedding.sample")}}
- {{highlighted-code code=embeddingCode lang="html"}}
+
@@ -32,37 +32,26 @@
{{i18n "admin.embedding.settings"}}
- {{embedding-setting field="embed_by_username" value=embedding.embed_by_username}}
- {{embedding-setting field="embed_post_limit" value=embedding.embed_post_limit}}
- {{embedding-setting field="embed_title_scrubber"
- value=embedding.embed_title_scrubber
- placeholder="- site.com$"}}
- {{embedding-setting field="embed_truncate" value=embedding.embed_truncate type="checkbox"}}
- {{embedding-setting field="embed_unlisted" value=embedding.embed_unlisted type="checkbox"}}
+
+
+
+
+
{{i18n "admin.embedding.crawling_settings"}}
{{i18n "admin.embedding.crawling_description"}}
- {{embedding-setting field="allowed_embed_selectors"
- value=embedding.allowed_embed_selectors
- placeholder="article, #story, .post"}}
+
- {{embedding-setting field="blocked_embed_selectors"
- value=embedding.blocked_embed_selectors
- placeholder=".ad-unit, header"}}
+
- {{embedding-setting field="allowed_embed_classnames"
- value=embedding.allowed_embed_classnames
- placeholder="emoji, classname"}}
+
- {{d-button label="admin.embedding.save"
- action=(action "saveChanges")
- class="btn-primary embed-save"
- disabled=embedding.isSaving}}
+
{{#if saved}}{{i18n "saved"}}{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/emojis.hbs b/app/assets/javascripts/admin/addon/templates/emojis.hbs
index e2e39499866..18f33fbf654 100644
--- a/app/assets/javascripts/admin/addon/templates/emojis.hbs
+++ b/app/assets/javascripts/admin/addon/templates/emojis.hbs
@@ -3,11 +3,7 @@
{{i18n "admin.emoji.help"}}
- {{emoji-uploader
- emojiGroups=emojiGroups
- done=(action "emojiUploaded")
- id="emoji-uploader"
- }}
+
@@ -18,13 +14,7 @@
{{i18n "admin.emoji.image"}}
{{i18n "admin.emoji.name"}}
- {{combo-box
- value=filter
- content=sortingGroups
- nameProperty=null
- valueProperty=null
- onChange=(action "filterGroups")
- }}
+
@@ -35,11 +25,7 @@
:{{e.name}}:
{{e.group}}
- {{d-button
- action=(action "destroyEmoji" e)
- class="btn-danger"
- icon="far-trash-alt"
- }}
+
{{/each}}
diff --git a/app/assets/javascripts/admin/addon/templates/logs.hbs b/app/assets/javascripts/admin/addon/templates/logs.hbs
index 4cc214e1848..237f810fb8c 100644
--- a/app/assets/javascripts/admin/addon/templates/logs.hbs
+++ b/app/assets/javascripts/admin/addon/templates/logs.hbs
@@ -1,13 +1,13 @@
-{{#admin-nav}}
- {{nav-item route="adminLogs.staffActionLogs" label="admin.logs.staff_actions.title"}}
- {{nav-item route="adminLogs.screenedEmails" label="admin.logs.screened_emails.title"}}
- {{nav-item route="adminLogs.screenedIpAddresses" label="admin.logs.screened_ips.title"}}
- {{nav-item route="adminLogs.screenedUrls" label="admin.logs.screened_urls.title"}}
- {{nav-item route="adminSearchLogs" label="admin.logs.search_logs.title"}}
+
+
+
+
+
+
{{#if currentUser.admin}}
- {{nav-item path="/logs" label="admin.logs.logster.title"}}
+
{{/if}}
-{{/admin-nav}}
+
{{outlet}}
diff --git a/app/assets/javascripts/admin/addon/templates/logs/screened-emails.hbs b/app/assets/javascripts/admin/addon/templates/logs/screened-emails.hbs
index 17b4316629b..57c78176eb0 100644
--- a/app/assets/javascripts/admin/addon/templates/logs/screened-emails.hbs
+++ b/app/assets/javascripts/admin/addon/templates/logs/screened-emails.hbs
@@ -2,16 +2,11 @@
{{i18n "admin.logs.screened_emails.description"}}
-{{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"}}
+
-{{#conditional-loading-spinner condition=loading}}
+
{{#if model.length}}
@@ -36,7 +31,7 @@
{{i18n "admin.logs.created_at"}}
{{age-with-tooltip item.created_at}}
{{item.ip_address}}
- {{d-button action=(action "clearBlock") actionParam=item icon="check" label="admin.logs.screened_emails.actions.allow"}}
+
{{/each}}
@@ -46,4 +41,4 @@
{{else}}
{{i18n "search.no_results"}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/logs/screened-ip-addresses.hbs b/app/assets/javascripts/admin/addon/templates/logs/screened-ip-addresses.hbs
index 1531a541bef..9b981b1af35 100644
--- a/app/assets/javascripts/admin/addon/templates/logs/screened-ip-addresses.hbs
+++ b/app/assets/javascripts/admin/addon/templates/logs/screened-ip-addresses.hbs
@@ -2,24 +2,14 @@
- {{text-field
- value=filter
- class="ip-address-input"
- placeholderKey="admin.logs.screened_ips.form.filter"
- autocorrect="off"
- autocapitalize="off"}}
- {{d-button
- class="btn-default"
- action=(action "exportScreenedIpList")
- icon="download"
- title="admin.export_csv.button_title.screened_ip"
- label="admin.export_csv.button_text"}}
+
+
- {{screened-ip-address-form action=(action "recordAdded")}}
+
-{{#conditional-loading-spinner condition=loading}}
+
{{#if model.length}}
@@ -35,7 +25,7 @@
{{#if item.editing}}
- {{text-field value=item.ip_address autofocus="autofocus"}}
+
{{else}}
{{#if item.isRange}}
@@ -72,39 +62,17 @@
{{#if item.editing}}
- {{d-button
- class="btn-default"
- action=(action "save")
- actionParam=item
- label="admin.logs.save"}}
+
{{i18n "cancel"}}
{{else}}
- {{d-button
- class="btn-default btn-danger"
- action=(action "destroy")
- actionParam=item
- icon="far-trash-alt"}}
- {{d-button
- class="btn-default"
- action=(action "edit")
- actionParam=item
- icon="pencil-alt"}}
+
+
{{#if item.isBlocked}}
- {{d-button
- class="btn-default"
- action=(action "allow")
- actionParam=item
- icon="check"
- label="admin.logs.screened_ips.actions.do_nothing"}}
+
{{else}}
- {{d-button
- class="btn-default"
- action=(action "block")
- actionParam=item
- icon="ban"
- label="admin.logs.screened_ips.actions.block"}}
+
{{/if}}
{{/if}}
@@ -115,4 +83,4 @@
{{else}}
{{i18n "search.no_results"}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/logs/screened-urls.hbs b/app/assets/javascripts/admin/addon/templates/logs/screened-urls.hbs
index d48248152d0..10f9fd3d653 100644
--- a/app/assets/javascripts/admin/addon/templates/logs/screened-urls.hbs
+++ b/app/assets/javascripts/admin/addon/templates/logs/screened-urls.hbs
@@ -1,15 +1,10 @@
{{i18n "admin.logs.screened_urls.description"}}
- {{d-button
- class="btn-default"
- action=(action "exportScreenedUrlList")
- title="admin.export_csv.button_title.screened_url"
- icon="download"
- label="admin.export_csv.button_text"}}
+
-{{#conditional-loading-spinner condition=loading}}
+
{{#if model.length}}
@@ -36,4 +31,4 @@
{{else}}
{{i18n "search.no_results"}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/logs/staff-action-logs.hbs b/app/assets/javascripts/admin/addon/templates/logs/staff-action-logs.hbs
index afb605991bf..0250ebd3888 100644
--- a/app/assets/javascripts/admin/addon/templates/logs/staff-action-logs.hbs
+++ b/app/assets/javascripts/admin/addon/templates/logs/staff-action-logs.hbs
@@ -31,23 +31,18 @@
{{else}}
{{i18n "admin.logs.staff_actions.filter"}}
- {{combo-box
- content=userHistoryActions
- value=filterActionId
- onChange=(action "filterActionIdChanged")
- options=(hash
+
{{/if}}
- {{d-button class="btn-default" action=(action "exportStaffActionLogs") label="admin.export_csv.button_text" icon="download"}}
+
-{{#staff-actions}}
- {{#load-more selector=".staff-logs tr" action=(action "loadMore")}}
+
+
{{#if model.content}}
@@ -64,10 +59,10 @@
{{#if item.acting_user}}
- {{#link-to "adminUser" item.acting_user}}
+
{{avatar item.acting_user imageSize="tiny"}}
{{item.acting_user.username}}
- {{/link-to}}
+
{{else}}
{{d-icon "far-trash-alt"}}
@@ -81,7 +76,7 @@
{{#if item.target_user}}
- {{#link-to "adminUser" item.target_user}}{{avatar item.target_user imageSize="tiny"}}{{/link-to}}
+
{{avatar item.target_user imageSize="tiny"}}
{{item.target_user.username}}
{{/if}}
{{#if item.subject}}
@@ -107,9 +102,9 @@
{{else if model.loadingMore}}
- {{conditional-loading-spinner condition=model.loadingMore}}
+
{{else}}
{{i18n "search.no_results"}}
{{/if}}
- {{/load-more}}
-{{/staff-actions}}
+
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-add-upload.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-add-upload.hbs
index 100a36afce2..e2348526e1e 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-add-upload.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-add-upload.hbs
@@ -1,4 +1,4 @@
-{{#d-modal-body class="add-upload-modal" title="admin.customize.theme.add_upload"}}
+
{{#if fileSelected}}
{{#if errorMessage}}
@@ -14,9 +14,9 @@
{{/if}}
{{/if}}
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-api-key-urls.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-api-key-urls.hbs
index f9a138f247b..df8e196d946 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-api-key-urls.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-api-key-urls.hbs
@@ -1,4 +1,4 @@
-{{#d-modal-body title="admin.api.scopes.allowed_urls"}}
+
{{#each model.urls as |url|}}
@@ -8,4 +8,4 @@
{{/each}}
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-badge-preview.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-badge-preview.hbs
index 219dee18d45..ef68ae0d4ce 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-badge-preview.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-badge-preview.hbs
@@ -1,4 +1,4 @@
-{{#d-modal-body title="admin.badges.preview.modal_title" class="badge-query-preview"}}
+
{{#if errors}}
@@ -52,4 +52,4 @@
{{/if}}
{{/if}}
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-color-scheme-select-base.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-color-scheme-select-base.hbs
index 15a39314cd3..3d5980e00e7 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-color-scheme-select-base.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-color-scheme-select-base.hbs
@@ -1,20 +1,10 @@
- {{#d-modal-body title="admin.customize.colors.select_base.title"}}
+
{{i18n "admin.customize.colors.select_base.description"}}
- {{combo-box
- content=model
- value=selectedBaseThemeId
- onChange=(action (mut selectedBaseThemeId))
- valueProperty="base_scheme_id"
- }}
- {{/d-modal-body}}
+
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-delete-posts-confirmation.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-delete-posts-confirmation.hbs
index 9c5cb275c3b..b9836ac0025 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-delete-posts-confirmation.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-delete-posts-confirmation.hbs
@@ -1,20 +1,11 @@
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-delete-user-posts-progress.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-delete-user-posts-progress.hbs
index 1f962689428..8f86288d70c 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-delete-user-posts-progress.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-delete-user-posts-progress.hbs
@@ -1,4 +1,4 @@
-{{#d-modal-body title="admin.user.delete_posts.progress.title" dismissable=false}}
+
{{I18n "admin.user.delete_posts.progress.description"}}
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-edit-badge-groupings.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-edit-badge-groupings.hbs
index a5fba689935..7c47c27779b 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-edit-badge-groupings.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-edit-badge-groupings.hbs
@@ -1,34 +1,30 @@
-{{#d-modal-body title="admin.badges.badge_groupings.modal_title" class="badge-groupings-modal"}}
+
- {{d-button action=(action "add") label="admin.badges.new"}}
-{{/d-modal-body}}
+
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-incoming-email.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-incoming-email.hbs
index 7882fbd0745..057f58c1ed8 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-incoming-email.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-incoming-email.hbs
@@ -1,4 +1,4 @@
-{{#d-modal-body class="incoming-emails" title="admin.email.incoming_emails.modal.title"}}
+
{{i18n "admin.email.incoming_emails.modal.error"}}
@@ -14,7 +14,7 @@
{{i18n "admin.email.incoming_emails.modal.headers"}}
- {{textarea value=model.headers wrap="off"}}
+
@@ -28,7 +28,7 @@
{{i18n "admin.email.incoming_emails.modal.body"}}
- {{textarea value=model.body}}
+
@@ -38,8 +38,8 @@
{{i18n "admin.email.incoming_emails.modal.rejection_message"}}
- {{textarea value=model.rejection_message}}
+
{{/if}}
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-install-theme.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-install-theme.hbs
index cdaed98667b..abb8dde504e 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-install-theme.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-install-theme.hbs
@@ -1,10 +1,10 @@
-{{#d-modal-body class="install-theme" title="admin.customize.theme.install"}}
+
{{#unless directRepoInstall}}
- {{install-theme-item value="popular" selection=selection label="admin.customize.theme.install_popular"}}
- {{install-theme-item value="local" selection=selection label="admin.customize.theme.install_upload"}}
- {{install-theme-item value="remote" selection=selection label="admin.customize.theme.install_git_repo"}}
- {{install-theme-item value="create" selection=selection label="admin.customize.theme.install_create" showIcon=true}}
+
+
+
+
{{/unless}}
@@ -28,11 +28,7 @@
{{#if theme.installed}}
{{i18n "admin.customize.theme.installed"}}
{{else}}
- {{d-button class="btn-small"
- label="admin.customize.theme.install"
- disabled=installDisabled
- icon="upload"
- action=(action "installThemeFromList" theme.value)}}
+
{{#if theme.preview}}
{{d-icon "desktop"}} {{i18n "admin.customize.theme.preview"}}
@@ -55,23 +51,20 @@
-{{/d-modal-body}}
+
{{#unless popular}}
{{/if}}
- {{d-button action=(action "installTheme") disabled=installDisabled class="btn btn-primary" label=submitLabel}}
- {{d-modal-cancel close=(route-action "closeModal")}}
+
+
{{/unless}}
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-confirmation.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-confirmation.hbs
index fc07ea1f19f..d315ac0672b 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-confirmation.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-confirmation.hbs
@@ -1,20 +1,11 @@
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-progress.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-progress.hbs
index 40c3c160daf..2f08cd30a52 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-progress.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-progress.hbs
@@ -1,3 +1,3 @@
-{{#d-modal-body title="admin.user.merge.progress.title" dismissable=false}}
+
{{ message }}
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-prompt.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-prompt.hbs
index 458c5b56bcf..b8b1f604391 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-prompt.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-merge-users-prompt.hbs
@@ -1,27 +1,14 @@
- {{#d-modal-body rawTitle=(i18n "admin.user.merge.prompt.title" username=username)}}
+
{{html-safe (i18n "admin.user.merge.prompt.description" username=username)}}
- {{email-group-user-chooser
- value=targetUsername
- onChange=(action "updateUsername")
- options=(hash
+
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-reseed.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-reseed.hbs
index 9bdbd1dba73..f56a14d706f 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-reseed.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-reseed.hbs
@@ -1,12 +1,12 @@
-{{#d-modal-body title="admin.reseed.modal.title" subtitle="admin.reseed.modal.subtitle" class="reseed-modal"}}
- {{#conditional-loading-spinner condition=loading}}
+
+
{{#if categories}}
{{i18n "admin.reseed.modal.categories"}}
{{#each categories as |category|}}
- {{input class="option" type="checkbox" checked=category.selected}}
+
{{category.name}}
{{/each}}
@@ -21,20 +21,20 @@
{{#each topics as |topic|}}
- {{input class="option" type="checkbox" checked=topic.selected}}
+
{{topic.name}}
{{/each}}
{{/if}}
- {{/conditional-loading-spinner}}
-{{/d-modal-body}}
+
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-silence-user.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-silence-user.hbs
index e6a31315b5f..2dec18de884 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-silence-user.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-silence-user.hbs
@@ -1,43 +1,29 @@
-{{#d-modal-body title="admin.user.silence_modal_title"}}
- {{#conditional-loading-spinner condition=loadingUser}}
+
+
{{#if errorMessage}}
{{errorMessage}}
{{/if}}
- {{admin-penalty-history user=user}}
+
- {{future-date-input
- class="silence-until"
- label="admin.user.silence_duration"
- clearable=false
- input=silenceUntil
- onChangeInput=(action (mut silenceUntil))
- }}
+
- {{silence-details reason=reason message=message}}
+
{{#if postId}}
- {{penalty-post-action
- postId=postId
- postAction=postAction
- postEdit=postEdit}}
+
{{/if}}
- {{/conditional-loading-spinner}}
+
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-staff-action-log-details.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-staff-action-log-details.hbs
index 3039e95b132..e23e737cc1f 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-staff-action-log-details.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-staff-action-log-details.hbs
@@ -1,6 +1,6 @@
-{{#d-modal-body title="admin.logs.staff_actions.modal_title"}}
+
{{model.details}}
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-start-backup.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-start-backup.hbs
index 011de55de94..fe0bb228c0e 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-start-backup.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-start-backup.hbs
@@ -1,14 +1,5 @@
-{{#d-modal-body title="admin.backups.operations.backup.confirm"}}
- {{d-button
- class="btn-primary backup-with-uploads"
- action=(action "startBackupWithUploads")
- label="yes_value"}}
- {{d-button
- class="backup-no-uploads"
- action=(action "startBackupWithoutUploads")
- label="admin.backups.operations.backup.without_uploads"}}
- {{d-button
- class="btn-default"
- action=(action "cancel")
- label="no_value"}}
-{{/d-modal-body}}
+
+
+
+
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-suspend-user.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-suspend-user.hbs
index 44f4a47ec1a..4c3288338dc 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-suspend-user.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-suspend-user.hbs
@@ -1,31 +1,22 @@
-{{#d-modal-body title="admin.user.suspend_modal_title"}}
- {{#conditional-loading-spinner condition=loadingUser}}
+
+
{{#if errorMessage}}
{{errorMessage}}
{{/if}}
{{#if user.canSuspend}}
- {{admin-penalty-history user=user}}
+
- {{future-date-input
- class="suspend-until"
- label="admin.user.suspend_duration"
- clearable=false
- input=suspendUntil
- onChangeInput=(action (mut suspendUntil))
- }}
+
- {{suspension-details reason=reason message=message}}
+
{{#if postId}}
- {{penalty-post-action
- postId=postId
- postAction=postAction
- postEdit=postEdit}}
+
{{/if}}
{{else}}
@@ -34,17 +25,12 @@
{{/if}}
- {{/conditional-loading-spinner}}
+
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-theme-change.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-theme-change.hbs
index 7b3ffb5ca5b..11e9b5c6abd 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-theme-change.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-theme-change.hbs
@@ -1,11 +1,8 @@
- {{#d-modal-body title="admin.logs.staff_actions.modal_title"}}
+
{{html-safe diff}}
- {{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-theme-item.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-theme-item.hbs
index 7a7198fd570..bcb26896217 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-theme-item.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-theme-item.hbs
@@ -9,11 +9,7 @@
{{#if theme.installed}}
{{i18n "admin.customize.theme.installed"}}
{{else}}
- {{d-button class="btn-small"
- label="admin.customize.theme.install"
- disabled=installDisabled
- icon="upload"
- action=(action "installThemeFromList" theme.value)}}
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-uploaded-image-list.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-uploaded-image-list.hbs
index 178f39075ce..a760891e33d 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-uploaded-image-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-uploaded-image-list.hbs
@@ -1,4 +1,4 @@
-{{#d-modal-body class="uploaded-image-list"}}
+
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-watched-word-test.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-watched-word-test.hbs
index 92b6b22679c..550a537278a 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-watched-word-test.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-watched-word-test.hbs
@@ -1,6 +1,6 @@
-{{#d-modal-body rawTitle=(i18n "admin.watched_words.test.modal_title" action=model.name) class="watched-words-test-modal"}}
+
{{i18n "admin.watched_words.test.description"}}
- {{textarea name="test_value" value=value autofocus="autofocus"}}
+
{{#if matches}}
{{i18n "admin.watched_words.test.found_matches"}}
@@ -33,4 +33,4 @@
{{else}}
{{i18n "admin.watched_words.test.no_matches"}}
{{/if}}
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/site-setting-default-categories.hbs b/app/assets/javascripts/admin/addon/templates/modal/site-setting-default-categories.hbs
index cd3e3c67459..3a79e51fde5 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/site-setting-default-categories.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/site-setting-default-categories.hbs
@@ -1,8 +1,8 @@
-{{#d-modal-body class="incoming-emails" rawTitle=model.key}}
+
{{i18n "admin.site_settings.default_categories.modal_description" count=model.count}}
-{{/d-modal-body}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/permalinks.hbs b/app/assets/javascripts/admin/addon/templates/permalinks.hbs
index e23b0a62994..b1fcd5fa61e 100644
--- a/app/assets/javascripts/admin/addon/templates/permalinks.hbs
+++ b/app/assets/javascripts/admin/addon/templates/permalinks.hbs
@@ -3,18 +3,12 @@
{{i18n "admin.permalink.description"}}
-{{permalink-form action=(action "recordAdded")}}
+
-{{#conditional-loading-spinner condition=loading}}
+
{{#if model.length}}
- {{text-field
- value=filter
- class="url-input"
- placeholderKey="admin.permalink.form.filter"
- autocorrect="off"
- autocapitalize="off"
- }}
+
@@ -26,11 +20,7 @@
{{#each model as |pl|}}
- {{flat-button
- title="admin.permalink.copy_to_clipboard"
- icon="far-clipboard"
- action=(action "copyUrl" pl)
- }}
+
{{pl.url}}
@@ -54,7 +44,7 @@
{{/if}}
- {{d-button action=(action "destroy") actionParam=pl icon="far-trash-alt" class="btn-danger"}}
+
{{/each}}
@@ -63,4 +53,4 @@
{{else}}
{{i18n "search.no_results"}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/plugins-index.hbs b/app/assets/javascripts/admin/addon/templates/plugins-index.hbs
index c2f02308987..fbdd4210b3d 100644
--- a/app/assets/javascripts/admin/addon/templates/plugins-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/plugins-index.hbs
@@ -53,7 +53,7 @@
{{#if currentUser.admin}}
{{#if plugin.has_settings}}
- {{d-button class="btn-default" action=(route-action "showSettings") actionParam=plugin icon="cog" label="admin.plugins.change_settings_short"}}
+
{{/if}}
{{/if}}
@@ -67,4 +67,4 @@
{{i18n "admin.plugins.howto"}}
-{{plugin-outlet name="admin-below-plugins-index" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/plugins.hbs b/app/assets/javascripts/admin/addon/templates/plugins.hbs
index 054a6d10068..f3d69d71c7e 100644
--- a/app/assets/javascripts/admin/addon/templates/plugins.hbs
+++ b/app/assets/javascripts/admin/addon/templates/plugins.hbs
@@ -1,24 +1,19 @@
- {{d-button action=(action "toggleMenu") class="menu-toggle" icon="bars"}}
+
{{#if currentUser.admin}}
- {{d-button
- label="admin.plugins.change_settings"
- icon="cog"
- class="btn-default settings-button"
- action=(route-action "showSettings")
- }}
+
{{/if}}
- {{nav-item route="adminPlugins.index" label="admin.plugins.title"}}
+
{{#each adminRoutes as |route|}}
- {{nav-item route=route.full_location label=route.label}}
+
{{/each}}
diff --git a/app/assets/javascripts/admin/addon/templates/reports-show.hbs b/app/assets/javascripts/admin/addon/templates/reports-show.hbs
index 6c6a8fb279e..4f761d850a6 100644
--- a/app/assets/javascripts/admin/addon/templates/reports-show.hbs
+++ b/app/assets/javascripts/admin/addon/templates/reports-show.hbs
@@ -1,8 +1 @@
-{{admin-report
- showAllReportsLink=true
- dataSourceName=model.type
- filters=model
- reportOptions=reportOptions
- showFilteringUI=true
- onRefresh=(route-action "onParamsChange")
-}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/search-logs-index.hbs b/app/assets/javascripts/admin/addon/templates/search-logs-index.hbs
index baf516489d8..c2c091e1d29 100644
--- a/app/assets/javascripts/admin/addon/templates/search-logs-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/search-logs-index.hbs
@@ -1,14 +1,9 @@
- {{period-chooser period=period onChange=(action (mut period))}}
- {{combo-box
- content=searchTypeOptions
- value=searchType
- class="search-logs-filter"
- onChange=(action (mut searchType))
- }}
+
+
-{{#conditional-loading-spinner condition=loading}}
+
{{#if model.length}}
@@ -21,9 +16,9 @@
{{#each model as |item|}}
- {{#link-to "adminSearchLogs.term" (query-params term=item.term period=period) class="test"}}
+
{{item.term}}
- {{/link-to}}
+
{{i18n "admin.logs.search_logs.searches"}}
{{item.searches}}
{{i18n "admin.logs.search_logs.click_through_rate"}}
{{item.ctr}}%
@@ -35,4 +30,4 @@
{{else}}
{{i18n "search.no_results"}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/search-logs-term.hbs b/app/assets/javascripts/admin/addon/templates/search-logs-term.hbs
index b4b0c8aed3e..d90571523a8 100644
--- a/app/assets/javascripts/admin/addon/templates/search-logs-term.hbs
+++ b/app/assets/javascripts/admin/addon/templates/search-logs-term.hbs
@@ -1,19 +1,14 @@
- {{period-chooser period=period onChange=(action (mut period))}}
- {{combo-box
- content=searchTypeOptions
- value=searchType
- class="search-logs-filter"
- onChange=(action (mut searchType))
- }}
+
+
- {{#link-to "full-page-search" (query-params q=term)}}{{term}}{{/link-to}}
+ {{term}}
-{{#conditional-loading-spinner condition=refreshing}}
- {{admin-graph model=model type="bar"}}
+
+
{{i18n "admin.logs.search_logs.header_search_results"}}
@@ -31,14 +26,14 @@
{{/each}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/site-settings-category.hbs b/app/assets/javascripts/admin/addon/templates/site-settings-category.hbs
index 3703cf3c8fb..b6aa9caa872 100644
--- a/app/assets/javascripts/admin/addon/templates/site-settings-category.hbs
+++ b/app/assets/javascripts/admin/addon/templates/site-settings-category.hbs
@@ -1,12 +1,12 @@
{{#if filteredContent}}
- {{#d-section class="form-horizontal settings"}}
+
{{#each filteredContent as |setting|}}
- {{site-setting setting=setting afterSave=(route-action "refreshAll")}}
+
{{/each}}
{{#if category.hasMore}}
{{i18n "admin.site_settings.more_than_30_results"}}
{{/if}}
- {{/d-section}}
+
{{else}}
{{i18n "admin.site_settings.no_results"}}
diff --git a/app/assets/javascripts/admin/addon/templates/site-settings.hbs b/app/assets/javascripts/admin/addon/templates/site-settings.hbs
index f236db32a1a..0e6cdf0f68d 100644
--- a/app/assets/javascripts/admin/addon/templates/site-settings.hbs
+++ b/app/assets/javascripts/admin/addon/templates/site-settings.hbs
@@ -2,14 +2,14 @@
- {{d-button action=(action "toggleMenu") class="menu-toggle" icon="bars"}}
- {{text-field id="setting-filter" value=filter placeholderKey="type_to_filter" class="no-blur"}}
- {{d-button class="btn-default" id="clear-filter" action=(action "clearFilter") label="admin.site_settings.clear_filter"}}
+
+
+
- {{input type="checkbox" checked=onlyOverridden}}
+
{{i18n "admin.settings.show_overriden"}}
@@ -19,10 +19,10 @@
{{#each visibleSiteSettings as |category|}}
- {{#link-to "adminSiteSettingsCategory" category.nameKey class=category.nameKey}}
+
{{category.name}}
{{#if category.count}}({{category.count}}) {{/if}}
- {{/link-to}}
+
{{/each}}
diff --git a/app/assets/javascripts/admin/addon/templates/site-text-edit.hbs b/app/assets/javascripts/admin/addon/templates/site-text-edit.hbs
index 2bf960c24bc..5d726ad92af 100644
--- a/app/assets/javascripts/admin/addon/templates/site-text-edit.hbs
+++ b/app/assets/javascripts/admin/addon/templates/site-text-edit.hbs
@@ -7,17 +7,17 @@
{{i18n "admin.site_text.locale"}} {{localeFullName}}
- {{expanding-text-area value=buffered.value rows="1" class="site-text-value"}}
+
- {{#save-controls model=siteText action=(action "saveChanges") saved=saved saveDisabled=saveDisabled}}
+
{{#if siteText.can_revert}}
- {{d-button action=(action "revertChanges") label="admin.site_text.revert" class="revert-site-text"}}
+
{{/if}}
- {{/save-controls}}
+
- {{#link-to "adminSiteText.index" (query-params locale=locale) class="go-back"}}
+
{{d-icon "arrow-left"}}
{{i18n "admin.site_text.go_back"}}
- {{/link-to}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/site-text-index.hbs b/app/assets/javascripts/admin/addon/templates/site-text-index.hbs
index bce391d31e7..34fcd700a79 100644
--- a/app/assets/javascripts/admin/addon/templates/site-text-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/site-text-index.hbs
@@ -1,41 +1,26 @@
{{i18n "admin.site_text.description"}}
- {{text-field value=q
- placeholderKey="admin.site_text.search"
- class="no-blur site-text-search"
- autofocus="true"
- key-up=(action "search")}}
+
- {{d-button action=(route-action "showReseedModal")
- class="btn-default"
- label="admin.reseed.action.label"
- title="admin.reseed.action.title"
- icon="sync"}}
+
{{i18n "admin.site_text.locale"}}
- {{combo-box
- valueProperty="value"
- content=availableLocales
- value=locale
- onChange=(action "updateLocale")
- class="locale-search"
- options=(hash filterable=true)
- }}
+
- {{input type="checkbox" checked=overridden click=(action "toggleOverridden")}}
+
{{i18n "admin.site_text.show_overriden"}}
-{{#conditional-loading-spinner condition=searching}}
+
{{#if showFallbackLocaleWarning}}
{{d-icon "exclamation-circle"}}
@@ -48,10 +33,10 @@
{{/if}}
{{#each siteTexts as |siteText|}}
- {{site-text-summary siteText=siteText editAction=(action "edit") term=q searchRegex=siteTexts.extras.regex}}
+
{{/each}}
{{#if siteTexts.extras.has_more}}
{{i18n "admin.site_text.more_than_50_results"}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/user-badges.hbs b/app/assets/javascripts/admin/addon/templates/user-badges.hbs
index 44549f6613d..38d322d2a66 100644
--- a/app/assets/javascripts/admin/addon/templates/user-badges.hbs
+++ b/app/assets/javascripts/admin/addon/templates/user-badges.hbs
@@ -1,12 +1,12 @@
- {{#link-to "adminUser" user}}{{d-icon "caret-left"}} {{user.username}}{{/link-to}}
+ {{d-icon "caret-left"}} {{user.username}}
-{{#conditional-loading-spinner condition=loading}}
+
{{i18n "admin.badges.grant_badge"}}
@@ -16,24 +16,15 @@
{{/if}}
@@ -48,12 +39,12 @@
{{#each groupedBadges as |userBadge|}}
- {{user-badge badge=userBadge.badge count=userBadge.count}}
+
- {{#link-to "adminUser" userBadge.badge.granted_by}}
+
{{avatar userBadge.granted_by imageSize="tiny"}}
{{userBadge.granted_by.username}}
- {{/link-to}}
+
{{#if userBadge.postUrl}}
@@ -63,14 +54,9 @@
{{age-with-tooltip userBadge.granted_at}}
{{#if userBadge.grouped}}
- {{d-button
- action=(action "expandGroup" userBadge)
- label="admin.badges.expand"}}
+
{{else}}
- {{d-button
- class="btn-danger"
- action=(action "revokeBadge" userBadge)
- label="admin.badges.revoke"}}
+
{{/if}}
@@ -84,4 +70,4 @@
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/user-fields.hbs b/app/assets/javascripts/admin/addon/templates/user-fields.hbs
index a14119e92bb..198aa74eee5 100644
--- a/app/assets/javascripts/admin/addon/templates/user-fields.hbs
+++ b/app/assets/javascripts/admin/addon/templates/user-fields.hbs
@@ -15,10 +15,6 @@
{{/each}}
{{/if}}
- {{d-button disabled=createDisabled
- class="btn-primary"
- action=(action "createField")
- label="admin.user_fields.create"
- icon="plus"}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/user-index.hbs b/app/assets/javascripts/admin/addon/templates/user-index.hbs
index f445b3c581c..b2ba7993a11 100644
--- a/app/assets/javascripts/admin/addon/templates/user-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/user-index.hbs
@@ -1,53 +1,32 @@
{{#if model.canViewProfile}}
- {{#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=(action "viewActionLogs")
- class="btn-default"
- actionParam=model.username
- icon="far-list-alt"
- label="admin.user.action_logs"}}
+
{{/if}}
{{#if model.active}}
{{#if currentUser.admin}}
- {{d-button
- class="btn-default"
- action=(action "logOut")
- icon="power-off"
- label="admin.user.log_out"}}
+
{{/if}}
{{/if}}
- {{plugin-outlet
- name="admin-user-controls-after"
- args=(hash model=model)
- }}
+
- {{admin-editable-field name="user.username.title"
- value=model.username
- action=(action "saveUsername")
- editing=editingUsername}}
+
- {{admin-editable-field name="user.name.title"
- value=model.name
- action=(action "saveName")
- editing=editingName}}
+
- {{plugin-outlet
- name="admin-user-below-names"
- args=(hash user=model)
- }}
+
{{#if canCheckEmails}}
@@ -59,12 +38,7 @@
{{#if model.email}}
{{model.email}}
{{else}}
- {{d-button
- class="btn-default"
- action=(route-action "checkEmail")
- actionParam=model icon="far-envelope"
- label="admin.users.check_email.text"
- title="admin.users.check_email.title"}}
+
{{/if}}
@@ -91,12 +65,7 @@
{{i18n "user.email.no_secondary"}}
{{/if}}
{{else}}
- {{d-button action=(route-action "checkEmail")
- class="btn-default"
- actionParam=model
- icon="far-envelope"
- label="admin.users.check_email.text"
- title="admin.users.check_email.title"}}
+
{{/if}}
@@ -118,11 +87,7 @@
{{model.bounceScore}}
{{#if model.canResetBounceScore}}
- {{d-button
- class="btn-default"
- action=(action "resetBounceScore")
- label="admin.user.reset_bounce_score.label"
- title="admin.user.reset_bounce_score.title"}}
+
{{/if}}
{{model.bounceScoreExplanation}}
@@ -134,12 +99,7 @@
{{#if associatedAccountsLoaded}}
{{associatedAccounts}}
{{else}}
- {{d-button
- class="btn-default"
- action=(route-action "checkEmail")
- actionParam=model icon="far-envelope"
- label="admin.users.check_email.text"
- title="admin.users.check_email.title"}}
+
{{/if}}
@@ -154,10 +114,7 @@
- {{admin-editable-field name="user.title.title"
- value=model.title
- action=(action "saveTitle")
- editing=editingTitle}}
+
@@ -165,7 +122,7 @@
{{model.ip_address}}
{{#if currentUser.staff}}
- {{ip-lookup ip=model.ip_address userId=model.id}}
+
{{/if}}
@@ -175,7 +132,7 @@
{{model.registration_ip_address}}
{{#if currentUser.staff}}
- {{ip-lookup ip=model.registration_ip_address userId=model.id}}
+
{{/if}}
@@ -187,10 +144,10 @@
{{i18n "badges.badge_count" count=model.badge_count}}
- {{#link-to "adminUser.badges" model class="btn btn-default"}}
+
{{d-icon "certificate"}}
{{i18n "admin.badges.edit_badges"}}
- {{/link-to}}
+
{{/if}}
@@ -206,11 +163,7 @@
{{#if canDisableSecondFactor}}
- {{d-button
- class="btn-default"
- action=(action "disableSecondFactor")
- icon="unlock-alt"
- label="user.second_factor.disable"}}
+
{{/if}}
@@ -233,7 +186,7 @@
{{/if}}
-{{plugin-outlet name="admin-user-details" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
{{i18n "admin.user.permissions"}}
@@ -244,12 +197,12 @@
{{#if model.approved}}
{{i18n "admin.user.approved_by"}}
- {{#link-to "adminUser" model.approvedBy}}
+
{{avatar model.approvedBy imageSize="small"}}
- {{/link-to}}
- {{#link-to "adminUser" model.approvedBy}}
+
+
{{model.approvedBy.username}}
- {{/link-to}}
+
{{else}}
{{i18n "no_value"}}
{{/if}}
@@ -259,11 +212,7 @@
{{i18n "admin.user.approve_success"}}
{{else}}
{{#if model.can_approve}}
- {{d-button
- class="btn-default"
- action=(action "approve")
- icon="check"
- label="admin.user.approve"}}
+
{{/if}}
{{/if}}
@@ -276,26 +225,15 @@
{{#if model.active}}
{{#if model.can_deactivate}}
- {{d-button
- class="btn-default"
- action=(action "deactivate")
- label="admin.user.deactivate_account"}}
+
{{i18n "admin.user.deactivate_explanation"}}
{{/if}}
{{else}}
{{#if model.can_send_activation_email}}
- {{d-button
- class="btn-default"
- action=(action "sendActivationEmail")
- icon="envelope"
- label="admin.user.send_activation_email"}}
+
{{/if}}
{{#if model.can_activate}}
- {{d-button
- class="btn-default"
- action=(action "activate")
- icon="check"
- label="admin.user.activate"}}
+
{{/if}}
{{/if}}
@@ -314,7 +252,7 @@
{{model.api_key_count}}
- {{d-button class="btn-default" href="/admin/api/keys" label="admin.api.manage_keys"}}
+
{{/if}}
@@ -324,18 +262,10 @@
{{i18n-yes-no model.admin}}
{{#if model.can_revoke_admin}}
- {{d-button
- class="btn-default"
- action=(action "revokeAdmin")
- icon="shield-alt"
- label="admin.user.revoke_admin"}}
+
{{/if}}
{{#if model.can_grant_admin}}
- {{d-button
- class="btn-default grant-admin"
- action=(action "grantAdmin")
- icon="shield-alt"
- label="admin.user.grant_admin"}}
+
{{/if}}
@@ -345,18 +275,10 @@
{{i18n-yes-no model.moderator}}
{{#if model.can_revoke_moderation}}
- {{d-button
- class="btn-default"
- action=(action "revokeModeration")
- icon="shield-alt"
- label="admin.user.revoke_moderation"}}
+
{{/if}}
{{#if model.can_grant_moderation}}
- {{d-button
- class="btn-default"
- action=(action "grantModeration")
- icon="shield-alt"
- label="admin.user.grant_moderation"}}
+
{{/if}}
@@ -364,17 +286,12 @@
{{i18n "trust_level"}}
- {{combo-box
- content=site.trustLevels
- nameProperty="detailedName"
- value=model.trustLevel.id
- onChange=(action (mut model.trust_level))
- }}
+
{{#if model.dirty}}
- {{d-button class="ok no-text" action=(action "saveTrustLevel") icon="check"}}
- {{d-button class="cancel no-text" action=(action "restoreTrustLevel") icon="times"}}
+
+
{{/if}}
@@ -382,24 +299,16 @@
{{#if model.canLockTrustLevel}}
{{#if hasLockedTrustLevel}}
{{d-icon "lock" title="admin.user.trust_level_locked_tip"}}
- {{d-button
- class="btn-default"
- action=(action "lockTrustLevel")
- actionParam=false
- label="admin.user.unlock_trust_level"}}
+
{{else}}
{{d-icon "unlock" title="admin.user.trust_level_unlocked_tip"}}
- {{d-button
- class="btn-default"
- action=(action "lockTrustLevel")
- actionParam=true
- label="admin.user.lock_trust_level"}}
+
{{/if}}
{{/if}}
{{#if model.tl3Requirements}}
- {{#link-to "adminUser.tl3Requirements" model class="btn btn-default"}}
+
{{i18n "admin.user.trust_level_3_requirements"}}
- {{/link-to}}
+
{{/if}}
@@ -416,19 +325,11 @@
{{#if model.suspended}}
- {{d-button
- class="btn-danger unsuspend-user"
- action=(action "unsuspend")
- icon="ban"
- label="admin.user.unsuspend"}}
+
{{i18n "admin.user.suspended_explanation"}}
{{else}}
{{#if model.canSuspend}}
- {{d-button
- class="btn-danger suspend-user"
- action=(action "showSuspendModal")
- icon="ban"
- label="admin.user.suspend"}}
+
{{i18n "admin.user.suspended_explanation"}}
{{/if}}
{{/if}}
@@ -439,12 +340,12 @@
{{i18n "admin.user.suspended_by"}}
- {{#link-to "adminUser" model.suspendedBy}}
+
{{avatar model.suspendedBy imageSize="tiny"}}
- {{/link-to}}
- {{#link-to "adminUser" model.suspendedBy}}
+
+
{{model.suspendedBy.username}}
- {{/link-to}}
+
{{i18n "admin.user.suspend_reason"}} :
@@ -464,23 +365,15 @@
{{/if}}
- {{#conditional-loading-spinner size="small" condition=model.silencingUser}}
+
{{#if model.silenced}}
- {{d-button
- class="btn-danger unsilence-user"
- action=(action "unsilence")
- icon="microphone-slash"
- label="admin.user.unsilence"}}
+
{{i18n "admin.user.silence_explanation"}}
{{else}}
- {{d-button
- class="btn-danger silence-user"
- action=(action "showSilenceModal")
- icon="microphone-slash"
- label="admin.user.silence"}}
+
{{i18n "admin.user.silence_explanation"}}
{{/if}}
- {{/conditional-loading-spinner}}
+
@@ -488,12 +381,12 @@
{{i18n "admin.user.silenced_by"}}
- {{#link-to "adminUser" model.silencedBy}}
+
{{avatar model.silencedBy imageSize="tiny"}}
- {{/link-to}}
- {{#link-to "adminUser" model.silencedBy}}
+
+
{{model.silencedBy.username}}
- {{/link-to}}
+
{{i18n "admin.user.silence_reason"}} :
@@ -508,10 +401,7 @@
{{model.tl3_requirements.penalty_counts.total}}
{{#if currentUser.admin}}
- {{d-button label="admin.user.clear_penalty_history.title"
- class="btn-default"
- icon="times"
- action=(action "clearPenaltyHistory")}}
+
{{i18n "admin.user.clear_penalty_history.description"}}
{{/if}}
@@ -530,17 +420,12 @@
{{i18n "admin.groups.custom"}}
- {{group-chooser
- content=availableGroups
- value=customGroupIdsBuffer
- labelProperty="name"
- onChange=(action (mut customGroupIdsBuffer))
- }}
+
{{#if customGroupsDirty}}
- {{d-button icon="check" class="ok" action=(action "saveCustomGroups")}}
- {{d-button icon="times" class="cancel" action=(action "resetCustomGroups")}}
+
+
{{/if}}
@@ -548,19 +433,14 @@
{{i18n "admin.groups.primary"}}
- {{combo-box
- content=model.customGroups
- value=model.primary_group_id
- onChange=(action (mut model.primary_group_id))
- options=(hash
+
{{#if primaryGroupDirty}}
- {{d-button icon="check" class="ok" action=(action "savePrimaryGroup")}}
- {{d-button icon="times" class="cancel" action=(action "resetPrimaryGroup")}}
+
+
{{/if}}
@@ -597,11 +477,7 @@
{{#if model.can_delete_all_posts}}
{{#if model.post_count}}
- {{d-button
- class="btn-danger"
- action=(action "showDeletePostsConfirmation")
- icon="far-trash-alt"
- label="admin.user.delete_posts.button"}}
+
{{/if}}
{{else}}
{{deleteAllPostsExplanation}}
@@ -623,9 +499,9 @@
{{#if model.flags_received_count}}
- {{#link-to "review" (query-params username=model.username type="ReviewableFlaggedPost" status="all") class="btn"}}
+
{{i18n "admin.user.show_flags_received"}}
- {{/link-to}}
+
{{/if}}
@@ -648,10 +524,10 @@
{{#if (gt model.post_edits_count 0) }}
- {{#link-to "adminReports.show" "post_edits" (query-params filters=postEditsByEditorFilter) class="btn btn-icon"}}
+
{{d-icon "far-eye"}}
{{i18n "admin.user.view_edits"}}
- {{/link-to}}
+
{{/if}}
@@ -667,12 +543,7 @@
{{sso.external_id}}
{{#if model.can_delete_sso_record}}
- {{d-button
- class="btn-danger"
- action=(action "deleteSSORecord")
- icon="far-trash-alt"
- label="admin.user.discourse_connect.delete_sso_record"
- }}
+
{{/if}}
@@ -690,12 +561,7 @@
{{#if ssoExternalEmail}}
{{ssoExternalEmail}}
{{else}}
- {{d-button
- class="btn-default"
- action=(action "checkSsoEmail")
- actionParam=model icon="far-envelope"
- label="admin.users.check_email.text"
- title="admin.users.check_email.title"}}
+
{{/if}}
{{/if}}
@@ -713,12 +579,7 @@
{{/each}}
{{else}}
- {{d-button
- class="btn-default"
- action=(action "checkSsoPayload")
- actionParam=model icon="far-list-alt"
- label="admin.users.check_sso.text"
- title="admin.users.check_sso.title"}}
+
{{/if}}
{{/if}}
@@ -726,41 +587,27 @@
{{/if}}
-{{plugin-outlet name="after-user-details" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
{{#if model.active}}
{{#if model.can_impersonate}}
- {{d-button
- class="btn-danger btn-impersonate"
- action=(action "impersonate")
- icon="crosshairs"
- label="admin.impersonate.title"
- title="admin.impersonate.help"}}
+
{{/if}}
{{/if}}
{{#if model.can_be_anonymized}}
- {{d-button label="admin.user.anonymize"
- icon="exclamation-triangle"
- class="btn-danger btn-anonymize"
- action=(action "anonymize")}}
+
{{/if}}
{{#if model.canBeDeleted}}
- {{d-button label="admin.user.delete"
- icon="trash-alt"
- class="btn-danger btn-user-delete"
- action=(action "destroy")}}
+
{{/if}}
{{#if model.can_be_merged}}
- {{d-button label="admin.user.merge.button"
- icon="arrows-alt-h"
- class="btn-danger btn-user-merge"
- action=(action "promptTargetUser")}}
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/user-tl3-requirements.hbs b/app/assets/javascripts/admin/addon/templates/user-tl3-requirements.hbs
index 74738f2080c..f32d4a7185b 100644
--- a/app/assets/javascripts/admin/addon/templates/user-tl3-requirements.hbs
+++ b/app/assets/javascripts/admin/addon/templates/user-tl3-requirements.hbs
@@ -1,8 +1,8 @@
- {{#link-to "adminUser" model}}{{d-icon "caret-left"}} {{model.username}}{{/link-to}}
- {{#link-to "adminUsersList.show" "member"}}{{i18n "admin.user.trust_level_2_users"}}{{/link-to}}
+ {{d-icon "caret-left"}} {{model.username}}
+ {{i18n "admin.user.trust_level_2_users"}}
diff --git a/app/assets/javascripts/admin/addon/templates/user.hbs b/app/assets/javascripts/admin/addon/templates/user.hbs
index 3b1c7742714..dffc22a179a 100644
--- a/app/assets/javascripts/admin/addon/templates/user.hbs
+++ b/app/assets/javascripts/admin/addon/templates/user.hbs
@@ -1,3 +1,3 @@
-{{#d-section}}
+
{{outlet}}
-{{/d-section}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/users-list-show.hbs b/app/assets/javascripts/admin/addon/templates/users-list-show.hbs
index a8742527135..056511986af 100644
--- a/app/assets/javascripts/admin/addon/templates/users-list-show.hbs
+++ b/app/assets/javascripts/admin/addon/templates/users-list-show.hbs
@@ -2,35 +2,29 @@
{{title}}
{{#if canCheckEmails}}
{{#if showEmails}}
- {{d-button
- action=(action "toggleEmailVisibility")
- class="hide-emails btn-default"
- label="admin.users.hide_emails"}}
+
{{else}}
- {{d-button
- action=(action "toggleEmailVisibility")
- class="show-emails btn-default"
- label="admin.users.show_emails"}}
+
{{/if}}
{{/if}}
- {{text-field value=listFilter placeholder=searchHint title=searchHint}}
+
-{{#load-more class="users-list-container" selector=".users-list tr" action=(action "loadMore")}}
+
{{#if model}}
- {{table-header-toggle field="username" labelKey="username" order=order asc=asc automatic=true}}
- {{table-header-toggle class=(if showEmails "" "hidden") field="email" labelKey="email" order=order asc=asc automatic=true}}
- {{table-header-toggle field="last_emailed" labelKey="admin.users.last_emailed" order=order asc=asc automatic=true}}
- {{table-header-toggle field="seen" labelKey="last_seen" order=order asc=asc automatic=true}}
- {{table-header-toggle field="topics_viewed" labelKey="admin.user.topics_entered" order=order asc=asc automatic=true}}
- {{table-header-toggle field="posts_read" labelKey="admin.user.posts_read_count" order=order asc=asc automatic=true}}
- {{table-header-toggle field="read_time" labelKey="admin.user.time_read" order=order asc=asc automatic=true}}
- {{table-header-toggle field="created" labelKey="created" order=order asc=asc automatic=true}}
+
+
+
+
+
+
+
+
{{#if siteSettings.must_approve_users}}
{{i18n "admin.users.approved"}}
{{/if}}
@@ -43,7 +37,7 @@
{{avatar user imageSize="small"}}
- {{#link-to "adminUser" user}}{{user.username}}{{/link-to}}
+ {{user.username}}
{{#if user.staged}}
{{d-icon "far-envelope" title="user.staged" }}
{{/if}}
@@ -100,14 +94,14 @@
{{#if user.second_factor_enabled}}
{{d-icon "lock" title="admin.user.second_factor_enabled" }}
{{/if}}
- {{plugin-outlet name="admin-users-list-icon" connectorTagName="div" args=(hash user=user query=query)}}
+
{{/each}}
- {{conditional-loading-spinner condition=refreshing}}
+
{{else}}
{{i18n "search.no_results"}}
{{/if}}
-{{/load-more}}
+
diff --git a/app/assets/javascripts/admin/addon/templates/users-list.hbs b/app/assets/javascripts/admin/addon/templates/users-list.hbs
index 88f860734aa..7e0c27eeda9 100644
--- a/app/assets/javascripts/admin/addon/templates/users-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/users-list.hbs
@@ -1,22 +1,22 @@
- {{nav-item route="adminUsersList.show" routeParam="active" label="admin.users.nav.active" class="active-users"}}
- {{nav-item route="adminUsersList.show" routeParam="new" label="admin.users.nav.new" class="new-users"}}
- {{nav-item route="adminUsersList.show" routeParam="staff" label="admin.users.nav.staff" class="staff-users"}}
- {{nav-item route="adminUsersList.show" routeParam="suspended" label="admin.users.nav.suspended" class="suspended-users"}}
- {{nav-item route="adminUsersList.show" routeParam="silenced" label="admin.users.nav.silenced" class="silenced-users"}}
- {{nav-item route="adminUsersList.show" routeParam="staged" label="admin.users.nav.staged" class="staged-users"}}
- {{nav-item route="groups" label="groups.index.title" class="groups"}}
- {{plugin-outlet name="admin-users-list-nav-after"}}
+
+
+
+
+
+
+
+
{{#if currentUser.can_invite_to_forum}}
- {{d-button class="btn-default" action=(route-action "sendInvites") title="admin.invite.button_title" icon="user-plus" label="admin.invite.button_text"}}
+
{{/if}}
{{#if currentUser.admin}}
- {{d-button class="btn-default" action=(route-action "exportUsers") title="admin.export_csv.button_title.user" icon="download" label="admin.export_csv.button_text"}}
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/watched-words-action.hbs b/app/assets/javascripts/admin/addon/templates/watched-words-action.hbs
index f074dc3ede9..28dc9e6cb2f 100644
--- a/app/assets/javascripts/admin/addon/templates/watched-words-action.hbs
+++ b/app/assets/javascripts/admin/addon/templates/watched-words-action.hbs
@@ -3,29 +3,13 @@
{{/if}}
- {{d-button
- class="btn-default download-link"
- href=downloadLink
- icon="download"
- label="admin.watched_words.download"}}
+
- {{watched-word-uploader
- id="watched-word-uploader"
- uploading=uploading
- actionKey=actionNameKey
- done=(action "uploadComplete")}}
+
- {{d-button
- class="watched-word-test"
- label="admin.watched_words.test.button_label"
- icon="far-eye"
- action=(action "test")}}
+
- {{d-button
- class="btn-danger clear-all"
- label="admin.watched_words.clear_all"
- icon="trash-alt"
- action=(action "clearAll")}}
+
{{actionDescription}}
@@ -34,15 +18,11 @@
{{html-safe (i18n "admin.watched_words.regex_warning" basePath=(base-path))}}
{{/if}}
-{{watched-word-form
- actionKey=actionNameKey
- action=(action "recordAdded")
- filteredContent=currentAction.words
-}}
+
{{#if currentAction.words}}
- {{input type="checkbox" checked=adminWatchedWords.showWords disabled=adminWatchedWords.disableShowWords}}
+
{{i18n "admin.watched_words.show_words" count=currentAction.words.length}}
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/watched-words.hbs b/app/assets/javascripts/admin/addon/templates/watched-words.hbs
index 53a08964199..803b0e82dc9 100644
--- a/app/assets/javascripts/admin/addon/templates/watched-words.hbs
+++ b/app/assets/javascripts/admin/addon/templates/watched-words.hbs
@@ -2,9 +2,9 @@
- {{d-button action=(action "toggleMenu") class="menu-toggle" icon="bars"}}
- {{text-field value=filter placeholderKey="admin.watched_words.search" class="no-blur"}}
- {{d-button action=(action "clearFilter") label="admin.watched_words.clear_filter"}}
+
+
+
@@ -13,10 +13,10 @@
{{#each model as |action|}}
- {{#link-to "adminWatchedWords.action" action.nameKey}}
+
{{action.name}}
{{#if action.words}}({{action.words.length}}) {{/if}}
- {{/link-to}}
+
{{/each}}
diff --git a/app/assets/javascripts/admin/addon/templates/web-hooks-show-events.hbs b/app/assets/javascripts/admin/addon/templates/web-hooks-show-events.hbs
index 14557341d8f..eac48aad00d 100644
--- a/app/assets/javascripts/admin/addon/templates/web-hooks-show-events.hbs
+++ b/app/assets/javascripts/admin/addon/templates/web-hooks-show-events.hbs
@@ -1,16 +1,16 @@
- {{#link-to "adminWebHooks" tagName="button" classNames="btn"}}
+
{{d-icon "list"}} {{i18n "admin.web_hooks.events.go_list"}}
- {{/link-to}}
- {{d-button icon="paper-plane" label="admin.web_hooks.events.ping" action=(action "ping") disabled=pingDisabled}}
- {{#link-to "adminWebHooks.show" model.extras.web_hook_id tagName="button" classNames="btn"}}
+
+
+
{{d-icon "far-edit"}} {{i18n "admin.web_hooks.events.go_details"}}
- {{/link-to}}
+
{{#if model}}
- {{#load-more selector=".web-hook-events li" action=(action "loadMore")}}
+
{{i18n "admin.web_hooks.events.status"}}
@@ -22,17 +22,17 @@
{{#if hasIncoming}}
- {{count-i18n key="admin.web_hooks.events.incoming" count=incomingCount}}
+
{{/if}}
{{#each model as |webHookEvent|}}
- {{admin-web-hook-event model=webHookEvent}}
+
{{/each}}
- {{conditional-loading-spinner condition=model.loadingMore}}
- {{/load-more}}
+
+
{{else}}
{{i18n "admin.web_hooks.events.none"}}
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs b/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs
index 9cb7be2b723..5a17f25e3cf 100644
--- a/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs
+++ b/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs
@@ -1,49 +1,44 @@
-{{#link-to "adminWebHooks" class="go-back"}}
+
{{d-icon "arrow-left"}}
{{i18n "admin.web_hooks.go_back"}}
-{{/link-to}}
+
{{i18n "admin.web_hooks.detailed_instruction"}}
-{{/d-section}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/badges/show.hbs b/app/assets/javascripts/discourse/app/templates/badges/show.hbs
index 164c21a71db..908468863db 100644
--- a/app/assets/javascripts/discourse/app/templates/badges/show.hbs
+++ b/app/assets/javascripts/discourse/app/templates/badges/show.hbs
@@ -1,21 +1,18 @@
- {{#link-to "badges.index"}}{{i18n "badges.title"}}{{/link-to}}
+ {{i18n "badges.title"}}
/
{{model.name}}
- {{badge-card badge=model size="large" count=userBadges.grant_count}}
+
{{#if canSelectTitle}}
{{i18n "badges.allow_title"}}
- {{d-button
- class="btn-default pad-left"
- action=(action "toggleSetUserTitle")
- icon="pencil-alt"}}
+
{{/if}}
{{#if model.multiple_grant}}
@@ -28,26 +25,26 @@
{{#if canSelectTitle}}
- {{badge-title selectableUserBadges=selectableUserBadges}}
- {{d-button class="btn-default close-btn" action=(action "toggleSetUserTitle") label="close"}}
+
+
{{/if}}
{{#if userBadges}}
- {{#load-more selector=".badge-info" action=(action "loadMore")}}
+
{{#each userBadges as |ub|}}
- {{#user-info user=ub.user size="medium" class="badge-info" date=ub.granted_at}}
+
{{i18n "badges.granted_on" date=(inline-date ub.granted_at)}}
{{#if ub.post_number}}
{{html-safe ub.topic.fancyTitle}}
{{/if}}
- {{/user-info}}
+
{{/each}}
- {{/load-more}}
+
{{#unless canLoadMore}}
{{#if canShowOthers}}
@@ -58,6 +55,6 @@
{{/unless}}
- {{conditional-loading-spinner condition=canLoadMore}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/bulk-tag.hbs b/app/assets/javascripts/discourse/app/templates/bulk-tag.hbs
index 4ed48ddc2b6..4215736057d 100644
--- a/app/assets/javascripts/discourse/app/templates/bulk-tag.hbs
+++ b/app/assets/javascripts/discourse/app/templates/bulk-tag.hbs
@@ -1,5 +1,5 @@
{{i18n (concat "topics.bulk." title)}}
-
{{tag-chooser tags=tags categoryId=categoryId}}
+
-{{d-button action=action disabled=emptyTags label=(concat "topics.bulk." label)}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/activation-controls.hbs b/app/assets/javascripts/discourse/app/templates/components/activation-controls.hbs
index 454aa331031..2b49b2ad1d8 100644
--- a/app/assets/javascripts/discourse/app/templates/components/activation-controls.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/activation-controls.hbs
@@ -1,13 +1,7 @@
{{#unless siteSettings.must_approve_users}}
- {{d-button action=sendActivationEmail
- label="login.resend_title"
- icon="envelope"
- class="btn-primary resend"}}
+
{{/unless}}
{{#if canEditEmail}}
- {{d-button action=editActivationEmail
- label="login.change_email"
- icon="pencil-alt"
- class="edit-email"}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/activation-email-form.hbs b/app/assets/javascripts/discourse/app/templates/components/activation-email-form.hbs
index c340df40f50..82c42603ee6 100644
--- a/app/assets/javascripts/discourse/app/templates/components/activation-email-form.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/activation-email-form.hbs
@@ -1,2 +1,2 @@
{{i18n "login.provide_new_email"}}
-{{input value=email class="activate-new-email"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/backup-codes.hbs b/app/assets/javascripts/discourse/app/templates/components/backup-codes.hbs
index 95ae6664711..de8bbaf7244 100644
--- a/app/assets/javascripts/discourse/app/templates/components/backup-codes.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/backup-codes.hbs
@@ -1,12 +1,7 @@
- {{d-button
- action=(action "copyToClipboard")
- class="backup-codes-copy-btn"
- icon="copy"
- aria-label="user.second_factor_backup.copy_to_clipboard"
- title="user.second_factor_backup.copy_to_clipboard"}}
+
{{else}}
- {{d-button
- icon="far-star"
- class="favorite-btn"
- action=onFavoriteClick
- title=(if canFavoriteMoreBadges "badges.favorite_max_not_reached" "badges.favorite_max_reached")
- disabled=(not canFavoriteMoreBadges)
- }}
+
{{/if}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/badge-title.hbs b/app/assets/javascripts/discourse/app/templates/components/badge-title.hbs
index 6df7fc0a24b..d32973e1dd7 100644
--- a/app/assets/javascripts/discourse/app/templates/components/badge-title.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/badge-title.hbs
@@ -9,23 +9,13 @@
- {{combo-box
- value=_selectedUserBadgeId
- nameProperty="badge.name"
- content=selectableUserBadges
- onChange=(action (mut _selectedUserBadgeId))
- }}
+
- {{d-button
- class="btn-primary"
- action=(action "saveBadgeTitle")
- disabled=_isSaving
- label=(if _isSaving "saving" "save")
- }}
+
{{#if _isSaved}}
{{i18n "saved"}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/basic-topic-list.hbs b/app/assets/javascripts/discourse/app/templates/components/basic-topic-list.hbs
index db3c4d9fcd2..87f36da3851 100644
--- a/app/assets/javascripts/discourse/app/templates/components/basic-topic-list.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/basic-topic-list.hbs
@@ -1,20 +1,6 @@
-{{#conditional-loading-spinner condition=loading}}
+
{{#if topics}}
- {{topic-list
- showPosters=showPosters
- hideCategory=hideCategory
- topics=topics
- expandExcerpts=expandExcerpts
- bulkSelectEnabled=bulkSelectEnabled
- bulkSelectAction=bulkSelectAction
- canBulkSelect=canBulkSelect
- selected=selected
- tagsForUser=tagsForUser
- onScroll=onScroll
- scrollOnLoad=scrollOnLoad
- toggleBulkSelect=toggleBulkSelect
- updateAutoAddTopicsToBulkSelect=updateAutoAddTopicsToBulkSelect
- }}
+
{{else}}
{{#unless loadingMore}}
@@ -22,4 +8,4 @@
{{/unless}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/bookmark-list.hbs b/app/assets/javascripts/discourse/app/templates/components/bookmark-list.hbs
index c7954015474..7f1daf30654 100644
--- a/app/assets/javascripts/discourse/app/templates/components/bookmark-list.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/bookmark-list.hbs
@@ -1,5 +1,5 @@
-{{#conditional-loading-spinner condition=loading}}
- {{#load-more selector=".bookmark-list .bookmark-list-item" action=loadMore}}
+
+
- {{conditional-loading-spinner condition=loadingMore}}
- {{/load-more}}
-{{/conditional-loading-spinner}}
+
+
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/bookmark.hbs b/app/assets/javascripts/discourse/app/templates/components/bookmark.hbs
index 44d14a340a6..6e038c999a9 100644
--- a/app/assets/javascripts/discourse/app/templates/components/bookmark.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/bookmark.hbs
@@ -1,4 +1,4 @@
-{{#conditional-loading-spinner condition=loading}}
+
{{#if errorMessage}}
@@ -8,19 +8,14 @@
{{/if}}
- {{input id="bookmark-name" value=model.name name="bookmark-name" class="bookmark-name" enter=(action "saveAndClose") placeholder=(i18n "post.bookmarks.name_placeholder") maxlength="100"}}
- {{d-button icon="cog" action=(action "toggleShowOptions") class="bookmark-options-button" ariaLabel="post.bookmarks.options"}}
+
+
{{#if showOptions}}
{{i18n "bookmarks.auto_delete_preference.label"}}
- {{combo-box
- content=autoDeletePreferences
- value=autoDeletePreference
- class="bookmark-option-selector"
- onChange=(action (mut autoDeletePreference))
- }}
+
{{/if}}
@@ -37,24 +32,17 @@
{{#if userHasTimezoneSet}}
- {{time-shortcut-picker
- timeShortcuts=timeOptions
- prefilledDatetime=prefilledDatetime
- onTimeSelected=(action "onTimeSelected")
- hiddenOptions=hiddenTimeShortcutOptions
- customLabels=customTimeShortcutLabels
- _itsatrap=_itsatrap
- }}
+
{{else}}
{{html-safe (i18n "bookmarks.no_timezone" basePath=(base-path))}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/bread-crumbs.hbs b/app/assets/javascripts/discourse/app/templates/components/bread-crumbs.hbs
index f34b9e21f20..21fcaeb6987 100644
--- a/app/assets/javascripts/discourse/app/templates/components/bread-crumbs.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/bread-crumbs.hbs
@@ -1,19 +1,12 @@
{{#each categoryBreadcrumbs as |breadcrumb|}}
{{#if breadcrumb.hasOptions}}
- {{category-drop
- category=breadcrumb.category
- categories=breadcrumb.options
- tagId=tag.id
- editingCategory=editingCategory
- editingCategoryTab=editingCategoryTab
- options=(hash
+
{{/if}}
{{/each}}
@@ -21,24 +14,15 @@
{{#if showTagsSection}}
{{#if additionalTags}}
- {{tags-intersection-chooser
- currentCategory=category
- mainTag=tag.id
- additionalTags=additionalTags
- options=(hash
+
{{else}}
- {{tag-drop
- currentCategory=category
- noSubcategories=noSubcategories
- tagId=tag.id
- }}
+
{{/if}}
{{/if}}
-{{plugin-outlet name="bread-crumbs-right" connectorTagName="li"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/cancel-link.hbs b/app/assets/javascripts/discourse/app/templates/components/cancel-link.hbs
index 311aaceae07..cdef7f3c203 100644
--- a/app/assets/javascripts/discourse/app/templates/components/cancel-link.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/cancel-link.hbs
@@ -1,3 +1,3 @@
-{{#link-to route args class="cancel"}}
+
{{i18n "cancel"}}
-{{/link-to}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/categories-and-latest-topics.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-and-latest-topics.hbs
index 9bd1f392feb..73b51ca62b7 100644
--- a/app/assets/javascripts/discourse/app/templates/components/categories-and-latest-topics.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/categories-and-latest-topics.hbs
@@ -1,9 +1,9 @@
- {{categories-only categories=categories}}
+
- {{categories-topic-list topics=topics filter="latest" class="latest-topic-list"}}
+
-{{plugin-outlet name="extra-categories-column" connectorTagName="div"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/categories-and-top-topics.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-and-top-topics.hbs
index 803bd2dc8c0..2d33841cca0 100644
--- a/app/assets/javascripts/discourse/app/templates/components/categories-and-top-topics.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/categories-and-top-topics.hbs
@@ -1,9 +1,9 @@
- {{categories-only categories=categories}}
+
- {{categories-topic-list topics=topics filter="top" class="top-topic-list"}}
+
-{{plugin-outlet name="extra-categories-column" connectorTagName="div"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/categories-boxes-with-topics.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-boxes-with-topics.hbs
index e25f0d922c1..1a515034835 100644
--- a/app/assets/javascripts/discourse/app/templates/components/categories-boxes-with-topics.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/categories-boxes-with-topics.hbs
@@ -5,18 +5,12 @@
{{#unless c.isMuted}}
{{#if c.uploaded_logo.url}}
- {{cdn-img
- src=c.uploaded_logo.url
- class="logo"
- width=c.uploaded_logo.width
- height=c.uploaded_logo.height
- alt=""
- }}
+
{{/if}}
{{/unless}}
- {{category-title-before category=c}}
+
{{#if c.read_restricted}}
{{d-icon lockIcon}}
{{/if}}
@@ -30,14 +24,14 @@
{{#if c.topics}}
{{#each c.topics as |topic|}}
- {{categories-boxes-topic topic=topic}}
+
{{/each}}
{{/if}}
{{/unless}}
- {{plugin-outlet name="category-box-below-each-category" args=(hash category=c)}}
+
{{/each}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/categories-boxes.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-boxes.hbs
index 95758c17e50..b1da9f26f32 100644
--- a/app/assets/javascripts/discourse/app/templates/components/categories-boxes.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/categories-boxes.hbs
@@ -1,18 +1,12 @@
{{#each categories as |c|}}
- {{plugin-outlet name="category-box-before-each-box" args=(hash category=c)}}
+
{{#unless c.isMuted}}
{{#if c.uploaded_logo.url}}
- {{cdn-img
- src=c.uploaded_logo.url
- class="logo"
- width=c.uploaded_logo.width
- height=c.uploaded_logo.height
- alt=""
- }}
+
{{/if}}
{{/unless}}
@@ -21,7 +15,7 @@
{{#each categories as |category|}}
- {{parent-category-row category=category showTopics=showTopics}}
+
{{/each}}
@@ -38,7 +38,7 @@
{{#each categories as |category|}}
- {{parent-category-row category=category showTopics=showTopics listType="muted"}}
+
{{/each}}
@@ -46,4 +46,4 @@
{{/if}}
{{/if}}
-{{plugin-outlet name="below-categories-only" connectorTagName="div" args=(hash categories=categories showTopics=showTopics)}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/categories-topic-list.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-topic-list.hbs
index b5125ff0892..b25ccba1a07 100644
--- a/app/assets/javascripts/discourse/app/templates/components/categories-topic-list.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/categories-topic-list.hbs
@@ -1,11 +1,11 @@
{{i18n (concat "filters." filter ".title")}}
- {{plugin-outlet name="categories-topics-table-heading" connectorTagName="div"}}
+
{{#if topics}}
{{#each topics as |t|}}
- {{latest-topic-list-item topic=t}}
+
{{/each}}
{{i18n "more"}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/categories-with-featured-topics.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-with-featured-topics.hbs
index b62e4a8fb54..75eaa9bb810 100644
--- a/app/assets/javascripts/discourse/app/templates/components/categories-with-featured-topics.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/categories-with-featured-topics.hbs
@@ -1,2 +1 @@
-{{categories-only categories=categories
- showTopics="true"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/category-name-fields.hbs b/app/assets/javascripts/discourse/app/templates/components/category-name-fields.hbs
index 7bcefbbe18b..c470ef1f2bf 100644
--- a/app/assets/javascripts/discourse/app/templates/components/category-name-fields.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/category-name-fields.hbs
@@ -2,11 +2,11 @@
{{#unless category.isUncategorizedCategory}}
{{i18n "category.name"}}
- {{text-field value=category.name placeholderKey="category.name_placeholder" maxlength="50" class="category-name"}}
+
{{/unless}}
{{i18n "category.slug"}}
- {{text-field value=category.slug placeholderKey="category.slug_placeholder" maxlength="255"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/category-permission-row.hbs b/app/assets/javascripts/discourse/app/templates/components/category-permission-row.hbs
index b3ac950558c..975c455d177 100644
--- a/app/assets/javascripts/discourse/app/templates/components/category-permission-row.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/category-permission-row.hbs
@@ -5,25 +5,9 @@
- {{d-button
- icon="check-square"
- class="btn btn-flat see"
- disabled=true
- }}
+
- {{d-button
- icon=canReplyIcon
- action=(action "setPermissionReply")
- translatedTitle=replyTooltip
- class=(concat "btn btn-flat reply-toggle " replyGranted)
- disabled=replyDisabled
- }}
+
- {{d-button
- icon=canCreateIcon
- action=(action "setPermissionFull")
- translatedTitle=createTooltip
- class=(concat "btn btn-flat create-toggle " createGranted)
- disabled=createDisabled
- }}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/category-title-before.hbs b/app/assets/javascripts/discourse/app/templates/components/category-title-before.hbs
index 99761e59b2d..b4cc2ca52cf 100644
--- a/app/assets/javascripts/discourse/app/templates/components/category-title-before.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/category-title-before.hbs
@@ -1 +1 @@
-{{plugin-outlet name="category-title-before" args=(hash category=category)}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/category-title-link.hbs b/app/assets/javascripts/discourse/app/templates/components/category-title-link.hbs
index 43cec199dc2..0ca2df142c1 100644
--- a/app/assets/javascripts/discourse/app/templates/components/category-title-link.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/category-title-link.hbs
@@ -1,17 +1,12 @@
- {{category-title-before category=category}}
+
{{#if category.read_restricted}}
{{d-icon lockIcon}}
{{/if}}
{{dir-span category.name}}
{{#if category.uploaded_logo.url}}
- {{cdn-img
- src=category.uploaded_logo.url
- class="category-logo"
- width=category.uploaded_logo.width
- height=category.uploaded_logo.height
- alt=""}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/choose-message.hbs b/app/assets/javascripts/discourse/app/templates/components/choose-message.hbs
index f8005caa4ad..6561946c4e9 100644
--- a/app/assets/javascripts/discourse/app/templates/components/choose-message.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/choose-message.hbs
@@ -1,6 +1,6 @@
{{i18n "choose_message.title.search"}}
-{{text-field value=messageTitle placeholderKey="choose_message.title.placeholder" id="choose-message-title"}}
+
{{#if loading}}
{{i18n "loading"}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/choose-topic.hbs b/app/assets/javascripts/discourse/app/templates/components/choose-topic.hbs
index 60c99d75417..fcd59e1ed26 100644
--- a/app/assets/javascripts/discourse/app/templates/components/choose-topic.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/choose-topic.hbs
@@ -5,11 +5,7 @@
{{i18n labelText}}
-{{text-field
- value=topicTitle
- placeholderKey="choose_topic.title.placeholder"
- id="choose-topic-title"
-}}
+
{{#if loading}}
{{i18n "loading"}}
@@ -21,14 +17,8 @@
{{#each topics as |t|}}
- {{input
- id=(concat "choose-topic-" t.id)
- checked=(eq t.id selectedTopicId)
- click=(action "chooseTopic" t)
- type="radio"
- name="choose_topic_id"
- }}
- {{topic-status topic=t disableActions=true}}
+
+
{{replace-emoji t.fancy_title}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/color-input.hbs b/app/assets/javascripts/discourse/app/templates/components/color-input.hbs
index 2d6a1bf703f..9c5ab4433ab 100644
--- a/app/assets/javascripts/discourse/app/templates/components/color-input.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/color-input.hbs
@@ -1,7 +1,2 @@
-{{#if onlyHex}}# {{/if}}{{text-field
- class="hex-input"
- value=hexValue
- maxlength=maxlength
- input=(action "onHexInput" value="target.value")
-}}
+{{#if onlyHex}}# {{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/color-picker.hbs b/app/assets/javascripts/discourse/app/templates/components/color-picker.hbs
index a7b3613fa53..b33c5463162 100644
--- a/app/assets/javascripts/discourse/app/templates/components/color-picker.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/color-picker.hbs
@@ -1,5 +1,5 @@
{{#each colors as |c|}}
- {{#color-picker-choice color=c usedColors=usedColors selectColor=(action "selectColor")}}
+
{{d-icon "check"}}
- {{/color-picker-choice}}
+
{{/each}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/composer-action-title.hbs b/app/assets/javascripts/discourse/app/templates/components/composer-action-title.hbs
index 220f9dd497e..ace38619ae2 100644
--- a/app/assets/javascripts/discourse/app/templates/components/composer-action-title.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/composer-action-title.hbs
@@ -1,19 +1,6 @@
-{{composer-actions
- composerModel=model
- replyOptions=model.replyOptions
- canWhisper=canWhisper
- openComposer=openComposer
- closeComposer=closeComposer
- action=model.action
- tabindex=tabindex
- topic=model.topic
- post=model.post
- whisper=model.whisper
- noBump=model.noBump
- options=(hash
+
{{actionTitle}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/composer-editor.hbs b/app/assets/javascripts/discourse/app/templates/components/composer-editor.hbs
index 767b0a854ae..fce455b4192 100644
--- a/app/assets/javascripts/discourse/app/templates/components/composer-editor.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/composer-editor.hbs
@@ -1,27 +1,7 @@
-{{#d-editor
- value=composer.reply
- placeholder=replyPlaceholder
- previewUpdated=(action "previewUpdated")
- markdownOptions=markdownOptions
- extraButtons=(action "extraButtons")
- importQuote=(action "importQuote")
- showUploadModal=showUploadModal
- togglePreview=(action "togglePreview")
- processPreview=processPreview
- validation=validation
- loading=composer.loading
- forcePreview=forcePreview
- showLink=showLink
- composerEvents=true
- onExpandPopupMenuOptions=(action "onExpandPopupMenuOptions")
- onPopupMenuAction=onPopupMenuAction
- popupMenuOptions=popupMenuOptions
- disabled=disableTextarea
- outletArgs=(hash composer=composer editorType="composer")
-}}
+
{{yield}}
-{{/d-editor}}
+
{{#if allowUpload}}
- {{pick-files-button fileInputId="file-uploader" allowMultiple=true}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/composer-messages.hbs b/app/assets/javascripts/discourse/app/templates/components/composer-messages.hbs
index 2374a83a17a..60aa15fbeeb 100644
--- a/app/assets/javascripts/discourse/app/templates/components/composer-messages.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/composer-messages.hbs
@@ -1,8 +1,3 @@
{{#each messages as |message|}}
- {{composer-message
- message=message
- closeMessage=(action "closeMessage")
- shareModal=(action "shareModal")
- switchPM=(action "switchPM")
- }}
+
{{/each}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/composer-title.hbs b/app/assets/javascripts/discourse/app/templates/components/composer-title.hbs
index 55f7302f1e1..f192ecbdc01 100644
--- a/app/assets/javascripts/discourse/app/templates/components/composer-title.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/composer-title.hbs
@@ -1,11 +1,3 @@
-{{text-field
- value=composer.title
- id="reply-title"
- maxLength=titleMaxLength
- placeholderKey=composer.titlePlaceholder
- aria-label=(I18n composer.titlePlaceholder)
- disabled=disabled
- autocomplete="off"
-}}
+
-{{popup-input-tip validation=validation}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs b/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs
index 5ea7bb8c0b1..9668f4f6c9c 100644
--- a/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs
@@ -1,32 +1,13 @@
- {{plugin-outlet name="before-composer-toggles" tagName="span" connectorTagName="div"}}
+
{{#if site.mobileView}}
- {{d-button
- class="btn-flat toggle-toolbar btn-mini-toggle"
- icon="bars"
- action=toggleToolbar
- title=toggleToolbarTitle
- preventFocus=true
- tabindex=-1
- }}
+
{{/if}}
- {{d-button
- class="btn-flat toggler toggle-minimize btn-mini-toggle"
- icon=toggleIcon
- action=toggleComposer
- title=toggleTitle
- tabindex=-1
- }}
+
{{#if showFullScreenButton}}
- {{d-button
- class="btn-flat toggle-fullscreen btn-mini-toggle"
- icon=fullscreenIcon
- action=toggleFullscreen
- title=fullscreenTitle
- tabindex=-1
- }}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/composer-user-selector.hbs b/app/assets/javascripts/discourse/app/templates/components/composer-user-selector.hbs
index fda26a748aa..df79751a1b5 100644
--- a/app/assets/javascripts/discourse/app/templates/components/composer-user-selector.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/composer-user-selector.hbs
@@ -1,12 +1,7 @@
-{{email-group-user-chooser
- id="private-message-users"
- value=splitRecipients
- onChange=(action "updateRecipients")
- options=(hash
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/copy-button.hbs b/app/assets/javascripts/discourse/app/templates/components/copy-button.hbs
index 6a554d97829..6e06af71d8b 100644
--- a/app/assets/javascripts/discourse/app/templates/components/copy-button.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/copy-button.hbs
@@ -1 +1 @@
-{{d-button class=copyClass icon=copyIcon action=(action "copy")}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/create-topic-button.hbs b/app/assets/javascripts/discourse/app/templates/components/create-topic-button.hbs
index 76524d1478f..da851686378 100644
--- a/app/assets/javascripts/discourse/app/templates/components/create-topic-button.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/create-topic-button.hbs
@@ -1,9 +1,3 @@
{{#if canCreateTopic}}
- {{d-button
- class=btnClass
- id="create-topic"
- action=action
- icon="plus"
- disabled=disabled
- label=label}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/d-editor.hbs b/app/assets/javascripts/discourse/app/templates/components/d-editor.hbs
index f6ca96a8ea7..9b6c0d90c83 100644
--- a/app/assets/javascripts/discourse/app/templates/components/d-editor.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/d-editor.hbs
@@ -7,31 +7,12 @@
{{#each toolbar.groups as |group|}}
{{#each group.buttons as |b|}}
{{#if b.popupMenu}}
- {{toolbar-popup-menu-options
- content=popupMenuOptions
- onChange=onPopupMenuAction
- onOpen=(action b.action b)
- class=b.className
- tabindex=-1
- onKeydown=rovingButtonBar
- options=(hash
+
{{else}}
- {{d-button
- action=b.action
- type="button"
- actionParam=b
- translatedTitle=b.title
- label=b.label
- icon=b.icon
- class=b.className
- preventFocus=b.preventFocus
- tabindex=b.tabindex
- onKeyDown=rovingButtonBar
- }}
+
{{/if}}
{{/each}}
@@ -41,21 +22,10 @@
{{/each}}
- {{conditional-loading-spinner condition=loading}}
- {{d-textarea
- autocomplete="off"
- tabindex=tabindex
- value=value
- class="d-editor-input"
- placeholder=placeholderTranslated
- aria-label=placeholderTranslated
- disabled=disabled
- input=change
- focusIn=(action "focusIn")
- focusOut=(action "focusOut")
- }}
- {{popup-input-tip validation=validation}}
- {{plugin-outlet name="after-d-editor" connectorTagName="div" args=outletArgs}}
+
+
+
+
@@ -65,14 +35,8 @@
{{html-safe preview}}
{{/unless}}
- {{plugin-outlet name="editor-preview" tagName="span" connectorTagName="div" classNames="d-editor-plugin" args=outletArgs}}
+
-{{emoji-picker
- isActive=emojiPickerIsActive
- isEditorFocused=isEditorFocused
- initialFilter=this.emojiFilter
- emojiSelected=(action "emojiSelected")
- onEmojiPickerClose=onEmojiPickerClose
-}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/d-modal.hbs b/app/assets/javascripts/discourse/app/templates/components/d-modal.hbs
index 961d37e8245..b0ce07b0c03 100644
--- a/app/assets/javascripts/discourse/app/templates/components/d-modal.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/d-modal.hbs
@@ -3,12 +3,7 @@
diff --git a/app/assets/javascripts/discourse/app/templates/components/suggested-topics.hbs b/app/assets/javascripts/discourse/app/templates/components/suggested-topics.hbs
index 01ef22e3602..5923ffd129a 100644
--- a/app/assets/javascripts/discourse/app/templates/components/suggested-topics.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/suggested-topics.hbs
@@ -6,13 +6,9 @@
{{#if topic.isPrivateMessage}}
- {{basic-topic-list
- hideCategory="true"
- showPosters="true"
- topics=topic.suggestedTopics
- }}
+
{{else}}
- {{basic-topic-list topics=topic.suggestedTopics}}
+
{{/if}}
@@ -21,4 +17,4 @@
-{{plugin-outlet name="below-suggested-topics" tagName="span" connectorTagName="div" args=(hash topic=topic)}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/tag-groups-form.hbs b/app/assets/javascripts/discourse/app/templates/components/tag-groups-form.hbs
index 3fabd1678d1..ced5f82bb9c 100644
--- a/app/assets/javascripts/discourse/app/templates/components/tag-groups-form.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/tag-groups-form.hbs
@@ -1,123 +1,73 @@
{{i18n "tagging.groups.name_placeholder"}}
- {{text-field value=buffered.name}}
+
{{i18n "tagging.groups.parent_tag_label"}}
- {{tag-chooser
- tags=buffered.parent_tag_name
- everyTag=true
- excludeSynonyms=true
- options=(hash
+
{{i18n "tagging.groups.parent_tag_description"}}
- {{radio-button
- class="tag-permissions-choice"
- name="tag-permissions-choice"
- value="public"
- id="public-permission"
- selection=buffered.permissionName
- onChange=(action "setPermissionsType")}}
+
{{i18n "tagging.groups.everyone_can_use"}}
- {{radio-button
- class="tag-permissions-choice"
- name="tag-permissions-choice"
- value="visible"
- id="visible-permission"
- selection=buffered.permissionName
- onChange=(action "setPermissionsType")}}
+
{{i18n "tagging.groups.usable_only_by_groups"}}
- {{group-chooser
- content=allGroups
- value=selectedGroupIds
- labelProperty="name"
- onChange=(action "setPermissionsGroups")
- options=(hash
+
- {{radio-button
- class="tag-permissions-choice"
- name="tag-permissions-choice"
- value="private"
- id="private-permission"
- selection=buffered.permissionName
- onChange=(action "setPermissionsType")}}
+
{{i18n "tagging.groups.visible_only_to_groups"}}
- {{group-chooser
- content=allGroups
- value=selectedGroupIds
- labelProperty="name"
- onChange=(action "setPermissionsGroups")
- options=(hash
+
- {{d-button
- class="btn-primary"
- action=(action "save")
- disabled=buffered.isSaving
- label="tagging.groups.save"}}
+
- {{d-button
- class="btn-danger"
- action=(action "destroy")
- disabled=buffered.isNew
- icon="far-trash-alt"
- label="tagging.groups.delete"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/tag-info.hbs b/app/assets/javascripts/discourse/app/templates/components/tag-info.hbs
index e235b4c02c6..bf50c171d4d 100644
--- a/app/assets/javascripts/discourse/app/templates/components/tag-info.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/tag-info.hbs
@@ -3,14 +3,14 @@
{{#if editing}}
- {{text-field id="edit-name" value=(readonly tagInfo.name) maxlength=siteSettings.max_tag_length input=(action (mut newTagName) value="target.value") autofocus="true"}}
- {{text-field id="edit-description" value=(readonly tagInfo.description) placeholder=(i18n "tagging.description") maxlength=280 input=(action (mut newTagDescription) value="target.value") autofocus="true"}}
+
+
{{#unless updateDisabled}}
- {{d-button action=(action "finishedEditing") class="btn-primary submit-edit" icon="check" ariaLabel="tagging.save"}}
+
{{/unless}}
- {{d-button action=(action "cancelEditing") class="btn-default cancel-edit" icon="times" ariaLabel="cancel"}}
+
{{else}}
@@ -72,28 +72,17 @@
{{i18n "tagging.add_synonyms_label"}}
- {{tag-chooser
- id="add-synonyms"
- tags=newSynonyms
- blockedTags=(array tagInfo.name)
- everyTag=true
- excludeSynonyms=true
- excludeHasSynonyms=true
- unlimitedTagCount=true}}
- {{d-button
- class="ok"
- action=(action "addSynonyms")
- disabled=addSynonymsDisabled
- icon="check"}}
+
+
{{/if}}
{{#if canAdminTag}}
- {{plugin-outlet name="tag-custom-settings" args=(hash tag=tagInfo) tagName="section"}}
+
- {{d-button class="btn-default" action=(action "toggleEditControls") icon="cog" label="tagging.edit_synonyms" id="edit-synonyms"}}
+
{{#if deleteAction}}
- {{d-button class="btn-danger delete-tag" action=(action "deleteTag") icon="far-trash-alt" label="tagging.delete_tag" id="delete-tag"}}
+
{{/if}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/tag-list.hbs b/app/assets/javascripts/discourse/app/templates/components/tag-list.hbs
index e02568a225b..7a2b3c02a87 100644
--- a/app/assets/javascripts/discourse/app/templates/components/tag-list.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/tag-list.hbs
@@ -2,7 +2,7 @@
{{title}}
{{/if}}
{{#if category}}
- {{category-title-link category=category}}
+
{{/if}}
{{#if tagGroupName}}
{{tagGroupName}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/time-input.hbs b/app/assets/javascripts/discourse/app/templates/components/time-input.hbs
index 8dd13ff06b3..9d6103a3b56 100644
--- a/app/assets/javascripts/discourse/app/templates/components/time-input.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/time-input.hbs
@@ -1,12 +1,7 @@
-{{combo-box
- value=time
- content=timeOptions
- onChange=(action "onChangeTime")
- options=(hash
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/time-shortcut-picker.hbs b/app/assets/javascripts/discourse/app/templates/components/time-shortcut-picker.hbs
index d8b03ffa422..1df2609c7be 100644
--- a/app/assets/javascripts/discourse/app/templates/components/time-shortcut-picker.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/time-shortcut-picker.hbs
@@ -1,10 +1,10 @@
-{{#tap-tile-grid activeTile=selectedShortcut as |grid|}}
+
{{#each options as |option|}}
{{#unless option.hidden}}
- {{#tap-tile icon=option.icon tileId=option.id activeTile=grid.activeTile onChange=(action "selectShortcut")}}
+
{{i18n option.label}}
{{option.timeFormatted}}
- {{/tap-tile}}
+
{{/unless}}
{{#if option.isCustomTimeShortcut}}
@@ -12,22 +12,18 @@
{{i18n "relative_time_picker.relative"}}
- {{relative-time-picker onChange=(action "relativeTimeChanged")}}
+
{{/if}}
{{/if}}
{{/each}}
-{{/tap-tile-grid}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/top-period-buttons.hbs b/app/assets/javascripts/discourse/app/templates/components/top-period-buttons.hbs
index 770688531e9..4f4898e1691 100644
--- a/app/assets/javascripts/discourse/app/templates/components/top-period-buttons.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/top-period-buttons.hbs
@@ -1,3 +1,3 @@
{{#each periods as |p|}}
- {{d-button action=(action "changePeriod") class="btn-default" actionParam=p translatedLabel=(period-title p)}}
+
{{/each}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-category.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-category.hbs
index 1b302847afd..27bd49073e5 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-category.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-category.hbs
@@ -12,4 +12,4 @@
{{/if}}
-{{plugin-outlet name="topic-category" tagName="span" connectorTagName="div" args=(hash topic=topic category=topic.category)}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-dismiss-buttons.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-dismiss-buttons.hbs
index 32d9e25d5d4..cf3474e3cbd 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-dismiss-buttons.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-dismiss-buttons.hbs
@@ -1,20 +1,10 @@
{{#if showBasedOnPosition}}
{{#if showDismissRead}}
- {{d-button
- class="btn-default dismiss-read"
- id=dismissReadId
- action=(action "dismissReadPosts")
- translatedLabel=dismissLabel
- title="topics.bulk.dismiss_tooltip"}}
+
{{/if}}
{{#if showResetNew}}
- {{d-button
- class="btn-default dismiss-read"
- id=dismissNewId
- action=resetNew
- icon="check"
- translatedLabel=dismissNewLabel}}
+
{{/if}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-entrance.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-entrance.hbs
index b7947a4f145..7e550e6e700 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-entrance.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-entrance.hbs
@@ -1,7 +1,7 @@
-{{#d-button action=(action "enterTop") class="btn-default full jump-top" ariaLabel="topic_entrance.sr_jump_top_button"}}
+
{{d-icon "step-backward"}} {{html-safe topDate}}
-{{/d-button}}
+
-{{#d-button action=(action "enterBottom") class="btn-default full jump-bottom" ariaLabel="topic_entrance.sr_jump_bottom_button"}}
+
{{html-safe bottomDate}} {{d-icon "step-forward"}}
-{{/d-button}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-footer-buttons.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-footer-buttons.hbs
index a58b01c9e71..1801b696d3d 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-footer-buttons.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-footer-buttons.hbs
@@ -1,81 +1,35 @@
- {{topic-admin-menu-button
- topic=topic
- openUpwards="true"
- toggleMultiSelect=toggleMultiSelect
- showTopicSlowModeUpdate=showTopicSlowModeUpdate
- deleteTopic=deleteTopic
- recoverTopic=recoverTopic
- toggleFeaturedOnProfile=toggleFeaturedOnProfile
- toggleClosed=toggleClosed
- toggleArchived=toggleArchived
- toggleVisibility=toggleVisibility
- showTopicTimerModal=showTopicTimerModal
- showFeatureTopic=showFeatureTopic
- showChangeTimestamp=showChangeTimestamp
- resetBumpDate=resetBumpDate
- convertToPublicTopic=convertToPublicTopic
- convertToPrivateMessage=convertToPrivateMessage
- }}
+
{{#if site.mobileView}}
- {{topic-footer-mobile-dropdown topic=topic content=dropdownButtons}}
+
{{/if}}
{{#each inlineActionables as |actionable|}}
{{#if (eq actionable.type "inline-button")}}
- {{d-button
- id=(concat "topic-footer-button-" actionable.id)
- class=(concat "btn-default topic-footer-button " actionable.classNames)
- action=actionable.action
- icon=actionable.icon
- translatedLabel=actionable.label
- translatedTitle=actionable.title
- translatedAriaLabel=actionable.ariaLabel
- disabled=actionable.disabled
- }}
+
{{else}}
- {{dropdown-select-box
- id=(concat "topic-footer-dropdown-" actionable.id)
- value=actionable.value
- class=(concat "topic-footer-dropdown " actionable.classNames)
- content=actionable.content
- onChange=(action actionable.action)
- options=(hash
+
{{/if}}
{{/each}}
- {{plugin-outlet name="topic-footer-main-buttons-before-create"
- args=(hash topic=topic)
- connectorTagName="span"}}
+
{{#if topic.details.can_create_post}}
- {{d-button class="btn-primary create"
- icon="reply"
- action=replyToPost
- label="topic.reply.title"
- title="topic.reply.help"}}
+
{{/if}}
- {{plugin-outlet name="after-topic-footer-main-buttons"
- args=(hash topic=topic)
- connectorTagName="span"}}
+
-{{pinned-button pinned=topic.pinned topic=topic}}
+
{{#if showNotificationsButton}}
- {{topic-notifications-button
- notificationLevel=topic.details.notification_level
- topic=topic
- }}
+
{{/if}}
-{{plugin-outlet name="after-topic-footer-buttons"
- args=(hash topic=topic)
- connectorTagName="span"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs
index 1f8575a5df2..33cf78b13c1 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs
@@ -17,50 +17,26 @@
{{/unless}}
-{{plugin-outlet
- name="before-topic-list-body"
- args=(hash
+
{{#each filteredTopics as |topic index|}}
- {{topic-list-item topic=topic
- bulkSelectEnabled=bulkSelectEnabled
- showTopicPostBadges=showTopicPostBadges
- hideCategory=hideCategory
- showPosters=showPosters
- showLikes=showLikes
- showOpLikes=showOpLikes
- expandGloballyPinned=expandGloballyPinned
- expandAllPinned=expandAllPinned
- lastVisitedTopic=lastVisitedTopic
- selected=selected
- lastChecked=lastChecked
- tagsForUser=tagsForUser
- focusLastVisitedTopic=focusLastVisitedTopic
- index=index}}
+
{{raw "list/visited-line" lastVisitedTopic=lastVisitedTopic topic=topic}}
- {{plugin-outlet
- name="after-topic-list-item"
- args=(hash topic=topic index=index)
- connectorTagName="tr"
- }}
+
{{/each}}
-{{plugin-outlet
- name="after-topic-list-body"
- args=(hash
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-navigation-popup.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-navigation-popup.hbs
index 66c5f3e2115..7a859f4538d 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-navigation-popup.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-navigation-popup.hbs
@@ -1,6 +1,6 @@
{{#unless hidden}}
{{/unless}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-progress.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-progress.hbs
index e110f2098cc..1574c1d0296 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-progress.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-progress.hbs
@@ -4,7 +4,7 @@
{{#if showBackButton}}
- {{d-button label="topic.timeline.back" class="btn-primary progress-back" action=(action "goBack") icon="arrow-down"}}
+
{{/if}}
@@ -19,4 +19,4 @@
-{{plugin-outlet name="after-topic-progress" tagName="" connectorTagName="div"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-status.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-status.hbs
index ab63a3a40bd..6f53c219bba 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-status.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-status.hbs
@@ -30,4 +30,4 @@
{{~#if topicInvisible~}}
{{invisibleIcon}}
{{~/if~}}
-{{plugin-outlet name="after-topic-status" connectorTagName="div" args=(hash topic=topic)~}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-timer-info.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-timer-info.hbs
index c2cb0d0a1ed..15cbdaff173 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-timer-info.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-timer-info.hbs
@@ -5,20 +5,10 @@
{{#if showEdit}}
- {{~d-button
- title="post.controls.edit_timer"
- icon="pencil-alt"
- class="btn topic-timer-edit no-text"
- action=showTopicTimerModal
- ~}}
+
{{/if}}
{{#if showTrashCan}}
- {{~d-button
- title="post.controls.remove_timer"
- icon="trash-alt"
- class="btn topic-timer-remove no-text"
- action=removeTopicTimer
- ~}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-title.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-title.hbs
index 8aa4279fe60..aa418dff106 100644
--- a/app/assets/javascripts/discourse/app/templates/components/topic-title.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/topic-title.hbs
@@ -2,5 +2,5 @@
{{yield}}
- {{plugin-outlet name="topic-title" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/track-selected.hbs b/app/assets/javascripts/discourse/app/templates/components/track-selected.hbs
index dcc61529505..2d7c73231c7 100644
--- a/app/assets/javascripts/discourse/app/templates/components/track-selected.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/track-selected.hbs
@@ -1 +1 @@
-{{input type="checkbox" checked=selected}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/uppy-image-uploader.hbs b/app/assets/javascripts/discourse/app/templates/components/uppy-image-uploader.hbs
index 9244794936c..50a3314eb6a 100644
--- a/app/assets/javascripts/discourse/app/templates/components/uppy-image-uploader.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/uppy-image-uploader.hbs
@@ -5,25 +5,13 @@
{{d-icon "far-image"}}
- {{pick-files-button fileInputDisabled=uploadingOrProcessing fileInputClass="hidden-upload-field" acceptedFormatsOverride="image/*" }}
+
{{#if imageUrl}}
- {{d-button
- action=(action "trash")
- class="btn-danger pad-left no-text"
- icon="far-trash-alt"
- type="button"
- }}
+
- {{d-button
- icon="discourse-expand"
- title="expand"
- type="button"
- class="image-uploader-lightbox-btn no-text"
- action=(action "toggleLightbox")
- disabled=loadingLightbox
- }}
+
{{/if}}
{{i18n "upload_selector.uploading"}} {{uploadProgress}}%
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-avatar-flair.hbs b/app/assets/javascripts/discourse/app/templates/components/user-avatar-flair.hbs
index cf88fa58040..6cfdaa4e287 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-avatar-flair.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-avatar-flair.hbs
@@ -1,8 +1,3 @@
{{#if flair}}
- {{avatar-flair
- flairName=flair.flairName
- flairUrl=flair.flairUrl
- flairBgColor=flair.flairBgColor
- flairColor=flair.flairColor
- }}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-badge.hbs b/app/assets/javascripts/discourse/app/templates/components/user-badge.hbs
index 5d89b20eb6b..9fce4fc5f95 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-badge.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-badge.hbs
@@ -1,7 +1,7 @@
- {{#badge-button badge=@badge}}
+
{{#if this.showGrantCount}}
(× {{@count}})
{{/if}}
- {{/badge-button}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-card-contents.hbs b/app/assets/javascripts/discourse/app/templates/components/user-card-contents.hbs
index 89e805b1c8a..079ebdb24ee 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-card-contents.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-card-contents.hbs
@@ -1,5 +1,5 @@
{{#if this.visible}}
- {{plugin-outlet name="before-user-card-content" args=(hash user=this.user)}}
+
{{#if this.loading}}
@@ -29,9 +29,9 @@
{{bound-avatar this.user "huge"}}
{{/if}}
- {{user-avatar-flair user=this.user}}
+
- {{plugin-outlet name="user-card-avatar-flair" connectorTagName="div" args=(hash user=this.user) tagName="div"}}
+
@@ -48,7 +48,7 @@
{{/if}}
- {{plugin-outlet name="user-card-after-username" connectorTagName="div" args=(hash user=this.user showUser=(action "showUser" this.user))}}
+
{{#if this.nameFirst}}
{{this.user.username}}
{{else}}
@@ -65,58 +65,33 @@
{{#if this.hasStatus}}
{{html-safe this.userStatusEmoji}} {{this.user.status.description}}
{{/if}}
- {{plugin-outlet name="user-card-post-names" connectorTagName="div" args=(hash user=this.user) tagName="div"}}
+
{{#if this.user.can_send_private_message_to_user}}
- {{d-button
- class="btn-primary"
- action=(action "composePM" this.user this.post)
- icon="envelope"
- label="user.private_message"}}
+
{{/if}}
- {{plugin-outlet
- name="user-card-below-message-button" connectorTagName="li"
- args=(hash user=this.user close=(action "close"))
- tagName=""}}
+
{{#if this.showFilter}}
- {{d-button
- class="btn-default"
- action=(action "filterPosts" this.user)
- icon="filter"
- translatedLabel=this.filterPostsLabel}}
+
{{/if}}
{{#if this.hasUserFilters}}
- {{d-button
- action=(action "cancelFilter")
- icon="times"
- label="topic.filters.cancel"}}
+
{{/if}}
{{#if this.showDelete}}
- {{d-button
- class="btn-danger"
- action=(action "deleteUser")
- actionParam=this.user
- icon="exclamation-triangle"
- label="admin.user.delete"}}
+
{{/if}}
- {{plugin-outlet
- name="user-card-additional-buttons" connectorTagName="div"
- args=(hash user=this.user close=(action "close"))
- tagName="li"}}
+
- {{plugin-outlet
- name="user-card-additional-controls" connectorTagName="div"
- args=(hash user=this.user close=(action "close"))
- }}
+
{{#if this.user.profile_hidden}}
@@ -147,9 +122,9 @@
{{else}}
{{#if this.user.bio_excerpt}}
- {{#html-with-links}}
+
{{html-safe this.user.bio_excerpt}}
- {{/html-with-links}}
+
{{/if}}
{{/if}}
@@ -160,7 +135,7 @@
{{i18n "user.featured_topic"}}
- {{#link-to "topic" this.user.featured_topic.slug this.user.featured_topic.id }}{{html-safe (replace-emoji this.user.featured_topic.fancy_title)}}{{/link-to}}
+ {{html-safe (replace-emoji this.user.featured_topic.fancy_title)}}
{{/if}}
@@ -192,7 +167,7 @@
{{this.formattedUserLocalTime}}
{{/if}}
- {{plugin-outlet name="user-card-location-and-website" tagName="span" connectorTagName="div" args=(hash user=this.user)}}
+
{{/if}}
@@ -221,19 +196,14 @@
{{#if this.user.email}}
{{this.user.email}}
{{else}}
- {{d-button
- action=(action "checkEmail")
- actionParam=this.user
- icon="far-envelope"
- label="admin.users.check_email.text"
- class="btn-primary"}}
+
{{/if}}
{{/if}}
- {{plugin-outlet name="user-card-metadata" connectorTagName="div" args=(hash user=this.user)}}
+
{{/unless}}
- {{plugin-outlet name="user-card-after-metadata" connectorTagName="div" args=(hash user=this.user)}}
+
{{#if this.publicUserFields}}
@@ -257,20 +227,20 @@
{{/if}}
- {{plugin-outlet name="user-card-before-badges" connectorTagName="div" args=(hash user=this.user)}}
+
{{#if this.showBadges}}
{{#if this.user.featured_user_badges}}
{{#each this.user.featured_user_badges as |ub|}}
- {{user-badge badge=ub.badge user=this.user}}
+
{{/each}}
{{#if this.showMoreBadges}}
- {{#link-to "user.badges" this.user}}
+
{{i18n "badges.more_badges" count=this.moreBadgesCount}}
- {{/link-to}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-fields/confirm.hbs b/app/assets/javascripts/discourse/app/templates/components/user-fields/confirm.hbs
index d0e67af3caf..5ada05e5fbd 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-fields/confirm.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-fields/confirm.hbs
@@ -6,7 +6,7 @@
- {{input id=(concat "user-" this.elementId) checked=this.value type="checkbox"}}
+
{{html-safe this.field.description}} {{#unless this.field.name}}{{#if this.field.required}}* {{/if}}{{/unless}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-fields/dropdown.hbs b/app/assets/javascripts/discourse/app/templates/components/user-fields/dropdown.hbs
index 540b3f9756e..3ac7a135aa0 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-fields/dropdown.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-fields/dropdown.hbs
@@ -6,16 +6,8 @@
- {{combo-box
- id=(concat "user-" this.elementId)
- content=this.field.options
- valueProperty=null
- nameProperty=null
- value=this.value
- onChange=(action (mut this.value))
- options=(hash
+
{{html-safe this.field.description}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-fields/multiselect.hbs b/app/assets/javascripts/discourse/app/templates/components/user-fields/multiselect.hbs
index 250206d8197..3799fd33f7e 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-fields/multiselect.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-fields/multiselect.hbs
@@ -6,16 +6,8 @@
- {{multi-select
- id=(concat "user-" this.elementId)
- content=this.field.options
- valueProperty=null
- nameProperty=null
- value=this.value
- onChange=(action (mut this.value))
- options=(hash
+
{{html-safe this.field.description}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-fields/text.hbs b/app/assets/javascripts/discourse/app/templates/components/user-fields/text.hbs
index 81c9439cb6a..6f41348587b 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-fields/text.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-fields/text.hbs
@@ -3,6 +3,6 @@
{{#if this.field.required}}
* {{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-info.hbs b/app/assets/javascripts/discourse/app/templates/components/user-info.hbs
index f22d4c5c425..e0bf9b0ea97 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-info.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-info.hbs
@@ -2,7 +2,7 @@
{{/if}}
@@ -27,7 +27,7 @@
{{if nameFirst (format-username @user.username) @user.name}}
{{/if}}
- {{plugin-outlet name="after-user-name" tagName="span" connectorTagName="span" args=(hash user=user)}}
+
{{@user.title}}
@@ -39,4 +39,4 @@
-{{plugin-outlet name="after-user-info" tagName="span" connectorTagName="div" args=(hash user=user)}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-notification-schedule-day.hbs b/app/assets/javascripts/discourse/app/templates/components/user-notification-schedule-day.hbs
index b03f1672287..cbf03f76ac4 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-notification-schedule-day.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-notification-schedule-day.hbs
@@ -1,22 +1,12 @@
{{dayLabel}}
- {{combo-box
- valueProperty="value"
- content=startTimeOptions
- value=startTimeValue
- onChange=onChangeStartTime
- }}
+
{{#if endTimeOptions}}
{{i18n "user.notification_schedule.to"}}
- {{combo-box
- valueProperty="value"
- content=endTimeOptions
- value=endTimeValue
- onChange=onChangeEndTime
- }}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-notification-schedule.hbs b/app/assets/javascripts/discourse/app/templates/components/user-notification-schedule.hbs
index acc1486e76c..f06312b45e6 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-notification-schedule.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-notification-schedule.hbs
@@ -1,8 +1,6 @@
{{i18n "user.notification_schedule.title"}}
- {{preference-checkbox
- labelKey="user.notification_schedule.label"
- checked=model.user_notification_schedule.enabled}}
+
{{#if model.user_notification_schedule.enabled}}
{{i18n "user.notification_schedule.tip"}}
@@ -10,15 +8,7 @@
{{#each days as |day|}}
- {{user-notification-schedule-day
- day=day.day
- startTimeOptions=day.startTimeOptions
- startTimeValue=day.startTimeValue
- onChangeStartTime=day.onChangeStartTime
- endTimeOptions=day.endTimeOptions
- endTimeValue=day.endTimeValue
- onChangeEndTime=day.onChangeEndTime
- }}
+
{{/each}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-profile-avatar.hbs b/app/assets/javascripts/discourse/app/templates/components/user-profile-avatar.hbs
index 6d663cc29bc..4bb2e2a7ea6 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-profile-avatar.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-profile-avatar.hbs
@@ -1,5 +1,5 @@
{{bound-avatar @user "huge"}}
- {{user-avatar-flair user=@user}}
- {{plugin-outlet name="user-profile-avatar-flair" connectorTagName="div" args=(hash model=@user) tagName="div"}}
+
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-status-picker.hbs b/app/assets/javascripts/discourse/app/templates/components/user-status-picker.hbs
index 046feaf844a..d1b6d1002d0 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-status-picker.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-status-picker.hbs
@@ -22,9 +22,4 @@
{{on "blur" this.blur}} />
-{{emoji-picker
- isActive=this.emojiPickerIsActive
- emojiSelected=(action "emojiSelected")
- onEmojiPickerClose=(action "onEmojiPickerOutsideClick")
- placement="bottom"
-}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-stream-item.hbs b/app/assets/javascripts/discourse/app/templates/components/user-stream-item.hbs
index a894a019bfb..7e94ee17226 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-stream-item.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-stream-item.hbs
@@ -4,11 +4,11 @@
{{#if @item.draftType}}
{{html-safe @item.draftType}}
{{else}}
- {{expand-post item=@item}}
+
{{/if}}
- {{topic-status topic=@item disableActions=true}}
+
{{#if @item.postUrl}}
{{html-safe @item.title}}
@@ -28,7 +28,7 @@
{{/if}}
- {{plugin-outlet name="user-stream-item-header" tagName="span" connectorTagName="div" args=(hash item=@item)}}
+
{{#if this.actionDescription}}
@@ -51,12 +51,7 @@
{{d-icon child.icon class="icon"}}
{{#each child.items as |grandChild|}}
{{#if grandChild.removableBookmark}}
- {{d-button
- class="btn-default remove-bookmark"
- action=(action @removeBookmark grandChild)
- icon="times"
- label="bookmarks.remove"
- }}
+
{{else}}
{{avatar grandChild imageSize="tiny" extraClasses="actor" ignoreTitle="true" avatarTemplatePath="acting_avatar_template"}}
{{#if grandChild.edit_reason}} —
{{grandChild.edit_reason}} {{/if}}
@@ -67,7 +62,7 @@
{{#if @item.editableDraft}}
- {{d-button action=@resumeDraft actionParam=@item icon="pencil-alt" label="drafts.resume" class="btn-default resume-draft"}}
- {{d-button action=@removeDraft actionParam=@item icon="far-trash-alt" class="btn-danger remove-draft"}}
+
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-stream.hbs b/app/assets/javascripts/discourse/app/templates/components/user-stream.hbs
index b9a007f4ddd..19d9abcb1a7 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-stream.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-stream.hbs
@@ -1,8 +1,3 @@
{{#each @stream.content as |item|}}
- {{user-stream-item
- item=item
- removeBookmark=(action "removeBookmark")
- resumeDraft=(action "resumeDraft")
- removeDraft=(action "removeDraft")
- }}
+
{{/each}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-summary-category-search.hbs b/app/assets/javascripts/discourse/app/templates/components/user-summary-category-search.hbs
index a0e1f3f0e0e..c643b8288d1 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-summary-category-search.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-summary-category-search.hbs
@@ -1,7 +1,7 @@
{{#if @count}}
- {{#link-to "full-page-search" (query-params q=this.searchParams)}}
+
{{@count}}
- {{/link-to}}
+
{{else}}
–
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-summary-topics-list.hbs b/app/assets/javascripts/discourse/app/templates/components/user-summary-topics-list.hbs
index d7e60c03aca..f27d5fc84e9 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-summary-topics-list.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-summary-topics-list.hbs
@@ -6,9 +6,9 @@
{{#if this.hasMore}}
- {{#link-to (concat "userActivity." @type) @user class="more"}}
+
{{i18n (concat "user.summary.more_" @type)}}
- {{/link-to}}
+
{{/if}}
{{else}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-summary-user.hbs b/app/assets/javascripts/discourse/app/templates/components/user-summary-user.hbs
index 6213d66c83f..3331fe2fc4d 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-summary-user.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-summary-user.hbs
@@ -1,4 +1,4 @@
-{{#user-info user=@user}}
+
{{d-icon @icon}}
{{number @user.count}}
-{{/user-info}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/composer.hbs b/app/assets/javascripts/discourse/app/templates/composer.hbs
index 71d136501cb..3542d7cfd88 100644
--- a/app/assets/javascripts/discourse/app/templates/composer.hbs
+++ b/app/assets/javascripts/discourse/app/templates/composer.hbs
@@ -1,35 +1,19 @@
-{{#composer-body
- composer=model
- showPreview=showPreview
- openIfDraft=(action "openIfDraft")
- typed=(action "typed")
- cancelled=(action "cancelled")
- save=(action "save")
-}}
+
{{#if visible}}
- {{composer-messages
- composer=model
- messageCount=messageCount
- addLinkLookup=(action "addLinkLookup")
- }}
+
{{#if model.viewOpenOrFullscreen}}
@@ -263,12 +189,7 @@
{{/if}}
- {{composer-toggles
- composeState=model.composeState
- toggleFullscreen=(action "openIfDraft")
- toggleComposer=(action "toggle")
- toggleToolbar=(action "toggleToolbar")
- }}
+
{{/if}}
{{/if}}
-{{/composer-body}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/composer/dominating-topic.hbs b/app/assets/javascripts/discourse/app/templates/composer/dominating-topic.hbs
index c76de1b3b1b..bd9be1b1f9e 100644
--- a/app/assets/javascripts/discourse/app/templates/composer/dominating-topic.hbs
+++ b/app/assets/javascripts/discourse/app/templates/composer/dominating-topic.hbs
@@ -3,10 +3,5 @@
{{html-safe message.body}}
{{#if currentUser.can_invite_to_forum}}
- {{d-button
- class="btn-primary"
- label="footer_nav.share"
- icon="link"
- action=(action shareModal)
- }}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/composer/get-a-room.hbs b/app/assets/javascripts/discourse/app/templates/composer/get-a-room.hbs
index 3a34bde5528..5ce1030afb6 100644
--- a/app/assets/javascripts/discourse/app/templates/composer/get-a-room.hbs
+++ b/app/assets/javascripts/discourse/app/templates/composer/get-a-room.hbs
@@ -2,9 +2,4 @@
{{html-safe message.body}}
-{{d-button
- class="btn-primary"
- label="user.private_message"
- icon="envelope"
- action=(action switchPM message)
-}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/composer/similar-topics.hbs b/app/assets/javascripts/discourse/app/templates/composer/similar-topics.hbs
index eefe3880cec..98a0dfd388b 100644
--- a/app/assets/javascripts/discourse/app/templates/composer/similar-topics.hbs
+++ b/app/assets/javascripts/discourse/app/templates/composer/similar-topics.hbs
@@ -2,5 +2,5 @@
{{i18n "composer.similar_topics"}}
- {{mount-widget widget="search-result-topic" args=(hash results=message.similarTopics)}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/discovery.hbs b/app/assets/javascripts/discourse/app/templates/discovery.hbs
index b71dba0b36a..1ce665e6084 100644
--- a/app/assets/javascripts/discourse/app/templates/discovery.hbs
+++ b/app/assets/javascripts/discourse/app/templates/discovery.hbs
@@ -1,42 +1,41 @@
- {{discourse-banner user=currentUser banner=site.banner}}
+
{{#unless viewingCategoriesList}}
- {{category-read-only-banner category=category readOnly=navigationCategory.cannotCreateTopicOnCategory}}
+
{{/unless}}
-{{plugin-outlet name="discovery-list-controls-above" tagName="span" connectorTagName="div"}}
+
- {{plugin-outlet name="discovery-navigation-bar-above" connectorTagName="div"}}
+
{{outlet "navigation-bar"}}
-{{conditional-loading-spinner condition=loading}}
+
-{{plugin-outlet name="discovery-above" tagName="span" connectorTagName="div"}}
+
- {{plugin-outlet name="before-list-area"}}
+
- {{plugin-outlet name="discovery-list-container-top" tagName="" connectorTagName="span"
- args=(hash category=category listLoading=loading)}}
+
{{outlet "list-container"}}
-{{plugin-outlet name="discovery-below" tagName="span" connectorTagName="div"}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs b/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs
index 8ffe641e472..6fe7c64c541 100644
--- a/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs
+++ b/app/assets/javascripts/discourse/app/templates/discovery/categories.hbs
@@ -1,10 +1,10 @@
-{{plugin-outlet name="above-discovery-categories" connectorTagName="div" args=(hash categories=model.categories categoryPageStyle=categoryPageStyle topics=model.topics)}}
+
-{{#discovery-categories refresh=(action "refresh")}}
+
{{#if topicTrackingState.hasIncoming}}
- {{count-i18n key="topic_count_" suffix=topicTrackingState.filter count=topicTrackingState.incomingCount}}
+
{{/if}}
@@ -12,6 +12,6 @@
{{component categoryPageStyle
categories=model.categories
topics=model.topics}}
-{{/discovery-categories}}
+
-{{plugin-outlet name="below-discovery-categories" connectorTagName="div" args=(hash categories=model.categories categoryPageStyle=categoryPageStyle topics=model.topics)}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs b/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs
index 946d599382c..259594a8186 100644
--- a/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs
+++ b/app/assets/javascripts/discourse/app/templates/discovery/topics.hbs
@@ -2,91 +2,51 @@
{{redirectedReason}}
{{/if}}
-{{topic-dismiss-buttons position="top" selectedTopics=selected
-model=model showResetNew=showResetNew showDismissRead=showDismissRead resetNew=(action "resetNew")}}
+
{{#if model.sharedDrafts}}
- {{topic-list
- class="shared-drafts"
- listTitle="shared_drafts.title"
- top=top
- hideCategory="true"
- category=category
- topics=model.sharedDrafts
- discoveryList=true}}
+
{{/if}}
-{{#discovery-topics-list
- model=model
- refresh=(action "refresh")
- loadingComplete=(action "loadingComplete")
- incomingCount=topicTrackingState.incomingCount
- autoAddTopicsToBulkSelect=autoAddTopicsToBulkSelect
- bulkSelectEnabled=bulkSelectEnabled
- addTopicsToBulkSelect=(action "addTopicsToBulkSelect")
- as |discoveryTopicList|}}
+
{{#if top}}
- {{period-chooser period=period action=(action "changePeriod") fullDay=false}}
+
{{else}}
{{#if topicTrackingState.hasIncoming}}
{{/if}}
{{/if}}
- {{plugin-outlet name="before-topic-list" tagName="span" connectorTagName="div" args=(hash category=category)}}
+
{{#if hasTopics}}
- {{topic-list
- highlightLastVisited=true
- top=top
- showTopicPostBadges=showTopicPostBadges
- showPosters=true
- canBulkSelect=canBulkSelect
- changeSort=(route-action "changeSort")
- toggleBulkSelect=(action "toggleBulkSelect")
- updateAutoAddTopicsToBulkSelect=(action "updateAutoAddTopicsToBulkSelect")
- hideCategory=model.hideCategory
- order=order
- ascending=ascending
- bulkSelectEnabled=bulkSelectEnabled
- bulkSelectAction=(action "refresh")
- selected=selected
- expandGloballyPinned=expandGloballyPinned
- expandAllPinned=expandAllPinned
- category=category
- topics=model.topics
- discoveryList=true
- scrollOnLoad=true
- onScroll=discoveryTopicList.saveScrollPosition
- focusLastVisitedTopic=true
- }}
+
{{/if}}
- {{plugin-outlet name="after-topic-list" tagName="span" connectorTagName="div" args=(hash category=category)}}
-{{/discovery-topics-list}}
+
+
- {{conditional-loading-spinner condition=model.loadingMore}}
+
{{#if allLoaded}}
- {{topic-dismiss-buttons position="bottom" selectedTopics=selected
- model=model showResetNew=showResetNew showDismissRead=showDismissRead resetNew=(action "resetNew")}}
+
- {{#footer-message education=footerEducation message=footerMessage}}
+
{{#if latest}}
{{#if canCreateTopicOnCategory}}
- {{discourse-linked-text action=(route-action "createTopic") text="topic.suggest_create_topic"}}
+
{{/if}}
{{else if top}}
- {{#link-to "discovery.categories"}}{{i18n "topic.browse_all_categories"}}{{/link-to}}, {{#link-to "discovery.latest"}}{{i18n "topic.view_latest_topics"}}{{/link-to}} {{i18n "or"}} {{i18n "filters.top.other_periods"}}
- {{top-period-buttons period=period action=(action "changePeriod")}}
+ {{i18n "topic.browse_all_categories"}} , {{i18n "topic.view_latest_topics"}} {{i18n "or"}} {{i18n "filters.top.other_periods"}}
+
{{else}}
- {{#link-to "discovery.categories"}} {{i18n "topic.browse_all_categories"}}{{/link-to}} {{i18n "or"}} {{#link-to "discovery.latest"}}{{i18n "topic.view_latest_topics"}}{{/link-to}}
+ {{i18n "topic.browse_all_categories"}} {{i18n "or"}} {{i18n "topic.view_latest_topics"}}
{{/if}}
- {{/footer-message}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/edit-category-tabs.hbs b/app/assets/javascripts/discourse/app/templates/edit-category-tabs.hbs
index 6837440bf17..f9fa38b6853 100644
--- a/app/assets/javascripts/discourse/app/templates/edit-category-tabs.hbs
+++ b/app/assets/javascripts/discourse/app/templates/edit-category-tabs.hbs
@@ -3,36 +3,25 @@
{{title}}
{{#if model.id}}
- {{bread-crumbs
- categories=site.categoriesList
- category=model
- noSubcategories=model.noSubcategories
- editingCategory=true
- editingCategoryTab=selectedTab
- }}
+
{{/if}}
{{#unless mobileView}}
{{#if model.id}}
- {{d-button
- class="category-back"
- action=(action "goBack")
- label="category.back"
- icon="caret-left"
- }}
+
{{/if}}
{{/unless}}
- {{edit-category-tab panels=panels selectedTab=selectedTab params=parentParams tab="general"}}
- {{edit-category-tab panels=panels selectedTab=selectedTab params=parentParams tab="security"}}
- {{edit-category-tab panels=panels selectedTab=selectedTab params=parentParams tab="settings"}}
- {{edit-category-tab panels=panels selectedTab=selectedTab params=parentParams tab="images"}}
- {{edit-category-tab panels=panels selectedTab=selectedTab params=parentParams tab="topic-template"}}
+
+
+
+
+
{{#if siteSettings.tagging_enabled}}
- {{edit-category-tab panels=panels selectedTab=selectedTab params=parentParams tab="tags"}}
+
{{/if}}
@@ -52,25 +41,13 @@
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/email-login.hbs b/app/assets/javascripts/discourse/app/templates/email-login.hbs
index 24e1f319fe3..772d627a377 100644
--- a/app/assets/javascripts/discourse/app/templates/email-login.hbs
+++ b/app/assets/javascripts/discourse/app/templates/email-login.hbs
@@ -14,23 +14,12 @@
{{#if model.can_login}}
{{#if secondFactorRequired }}
{{#if model.security_key_required }}
- {{#security-key-form
- allowedCredentialIds=model.allowed_credential_ids
- challenge=model.security_key_challenge
- showSecurityKey=model.security_key_required
- showSecondFactor=false
- secondFactorMethod=secondFactorMethod
- otherMethodAllowed=secondFactorRequired
- action=(action "authenticateSecurityKey")}}
- {{/security-key-form}}
+
+
{{else}}
- {{#second-factor-form
- secondFactorMethod=secondFactorMethod
- secondFactorToken=secondFactorToken
- backupEnabled=model.backup_codes_enabled
- isLogin=true}}
- {{second-factor-input value=secondFactorToken secondFactorMethod=secondFactorMethod backupEnabled=backupEnabled}}
- {{/second-factor-form}}
+
+
+
{{/if}}
{{else}}
{{i18n "email_login.confirm_title" site_name=siteSettings.title}}
@@ -38,11 +27,7 @@
{{/if}}
{{#unless model.security_key_required }}
- {{d-button
- label="email_login.confirm_button"
- action=(action "finishLogin")
- type="submit"
- class="btn-primary"}}
+
{{/unless}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/exception.hbs b/app/assets/javascripts/discourse/app/templates/exception.hbs
index 7e3ef7252b8..0b658f238c9 100644
--- a/app/assets/javascripts/discourse/app/templates/exception.hbs
+++ b/app/assets/javascripts/discourse/app/templates/exception.hbs
@@ -19,9 +19,9 @@
{{#each enabledButtons as |buttonData|}}
- {{d-button icon=buttonData.icon action=buttonData.action label=buttonData.key class=buttonData.classes}}
+
{{/each}}
- {{conditional-loading-spinner condition=loading}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/full-page-search.hbs b/app/assets/javascripts/discourse/app/templates/full-page-search.hbs
index 1fb8cb40768..8256a2a2749 100644
--- a/app/assets/javascripts/discourse/app/templates/full-page-search.hbs
+++ b/app/assets/javascripts/discourse/app/templates/full-page-search.hbs
@@ -1,5 +1,5 @@
-{{#d-section pageClass="search" class="search-container"}}
- {{scroll-tracker name="full-page-search" tag=searchTerm class="hidden"}}
+
+
{{/if}}
{{/if}}
- {{plugin-outlet name="full-page-search-below-search-info" tagName="span" connectorTagName="div" args=(hash search=searchTerm)}}
+
{{#if searching}}
{{loading-spinner size="medium"}}
{{else}}
- {{#load-more selector=".fps-result" action=(action "loadMore")}}
+
{{#if usingDefaultSearchType}}
- {{search-result-entries
- posts=model.posts
- bulkSelectEnabled=bulkSelectEnabled
- selected=selected
- highlightQuery=highlightQuery
- searchLogId=model.grouped_search_result.search_log_id
- }}
+
- {{#conditional-loading-spinner condition=loading}}
+
{{#unless hasResults}}
{{#if searchActive}}
{{i18n "search.no_results"}}
@@ -158,7 +110,7 @@
{{/if}}
- {{google-search searchTerm=searchTerm}}
+
{{/if}}
{{/if}}
{{/unless}}
@@ -174,9 +126,9 @@
{{/if}}
{{/if}}
- {{/conditional-loading-spinner}}
+
{{else}}
- {{#conditional-loading-spinner condition=loading}}
+
{{#if hasResults}}
{{#if model.categories.length}}
@@ -208,7 +160,7 @@
{{#if model.users}}
{{#each model.users as |user|}}
- {{#user-link user=user class="fps-user-item"}}
+
{{avatar user imageSize="large"}}
@@ -222,7 +174,7 @@
{{user.username}}
- {{/user-link}}
+
{{/each}}
{{/if}}
@@ -231,10 +183,10 @@
{{i18n "search.no_results"}}
{{/if}}
{{/if}}
- {{/conditional-loading-spinner}}
+
{{/if}}
- {{/load-more}}
+
{{/if}}
-{{/d-section}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/group-activity-posts.hbs b/app/assets/javascripts/discourse/app/templates/group-activity-posts.hbs
index 8e833dc151e..47f023d7a19 100644
--- a/app/assets/javascripts/discourse/app/templates/group-activity-posts.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group-activity-posts.hbs
@@ -1,10 +1,10 @@
-{{#load-more selector=".user-stream-item" action=(action "loadMore")}}
+
{{#each model as |post|}}
- {{group-post post=post}}
+
{{else}}
{{i18n emptyText}}
{{/each}}
- {{conditional-loading-spinner condition=loading}}
-{{/load-more}}
+
+
diff --git a/app/assets/javascripts/discourse/app/templates/group-activity-topics.hbs b/app/assets/javascripts/discourse/app/templates/group-activity-topics.hbs
index 596ddb19415..882a7d18334 100644
--- a/app/assets/javascripts/discourse/app/templates/group-activity-topics.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group-activity-topics.hbs
@@ -1,5 +1,4 @@
-{{#load-more class="paginated-topics-list" selector=".paginated-topics-list .topic-list tr" action=(action "loadMore")}}
- {{basic-topic-list topicList=model
- showPosters=true}}
- {{conditional-loading-spinner condition=model.loadingMore}}
-{{/load-more}}
+
+
+
+
diff --git a/app/assets/javascripts/discourse/app/templates/group-index.hbs b/app/assets/javascripts/discourse/app/templates/group-index.hbs
index 71c929e1379..a90c72e7511 100644
--- a/app/assets/javascripts/discourse/app/templates/group-index.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group-index.hbs
@@ -1,65 +1,46 @@
{{#if model.can_see_members}}
- {{text-field
- value=filterInput
- placeholderKey=filterPlaceholder
- autocomplete="off"
- class="group-username-filter no-blur"
- }}
+
{{/if}}
{{#if canManageGroup}}
- {{d-button
- icon="plus"
- action=(route-action "showAddMembersModal")
- label="groups.manage.add_members"
- class="btn-default group-members-add"
- }}
+
{{#if currentUser.can_invite_to_forum}}
- {{d-button
- icon="plus"
- action=(route-action "showInviteModal")
- label="groups.manage.invite_members"
- class="btn-default group-members-add"
- }}
+
{{/if}}
{{/if}}
{{#if hasMembers}}
- {{#load-more selector=".group-members tr" action=(action "loadMore")}}
+
- {{/load-more}}
+
- {{conditional-loading-spinner condition=loading}}
+
{{else}}
diff --git a/app/assets/javascripts/discourse/app/templates/group-requests.hbs b/app/assets/javascripts/discourse/app/templates/group-requests.hbs
index b2f8d03ddfb..709808f2d92 100644
--- a/app/assets/javascripts/discourse/app/templates/group-requests.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group-requests.hbs
@@ -1,19 +1,15 @@
- {{text-field
- value=filterInput
- placeholderKey=filterPlaceholder
- class="group-username-filter no-blur"
- }}
+
{{#if hasRequesters}}
- {{#load-more selector=".group-members tr" action=(action "loadMore")}}
+
- {{table-header-toggle order=order asc=asc field="username_lower" labelKey="username" automatic=true}}
- {{table-header-toggle order=order asc=asc field="requested_at" labelKey="groups.member_requested" automatic=true}}
+
+
{{i18n "groups.requests.reason"}}
@@ -23,7 +19,7 @@
{{#each model.requesters as |m|}}
- {{user-info user=m skipName=skipName}}
+
{{bound-date m.requested_at}}
@@ -34,12 +30,12 @@
{{i18n "groups.requests.undone"}}
{{else if m.request_accepted}}
{{i18n "groups.requests.accepted"}}
- {{d-button action=(action "undoAcceptRequest") actionParam=m label="undo"}}
+
{{else if m.request_denied}}
{{i18n "groups.requests.denied"}}
{{else}}
- {{d-button action=(action "acceptRequest") actionParam=m label="groups.requests.accept" class="btn-primary"}}
- {{d-button action=(action "denyRequest") actionParam=m label="groups.requests.deny" class="btn-danger"}}
+
+
{{/if}}
@@ -47,9 +43,9 @@
{{/each}}
- {{/load-more}}
+
- {{conditional-loading-spinner condition=loading}}
+
{{else}}
{{i18n "groups.empty.requests"}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/group.hbs b/app/assets/javascripts/discourse/app/templates/group.hbs
index 37acced902f..4fd57e67e37 100644
--- a/app/assets/javascripts/discourse/app/templates/group.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group.hbs
@@ -1,4 +1,4 @@
-{{plugin-outlet name="before-group-container" tagName="span" connectorTagName="div" args=(hash group=model)}}
+
{{#if showTooltip}}
@@ -11,12 +11,7 @@
{{#if (or model.flair_icon model.flair_url model.flair_bg_color)}}
- {{avatar-flair
- flairName=model.name
- flairUrl=(or model.flair_icon model.flair_url)
- flairBgColor=model.flair_bg_color
- flairColor=model.flair_color
- }}
+
{{/if}}
@@ -27,42 +22,22 @@
- {{group-membership-button
- tagName=""
- model=model
- showLogin=(route-action "showLogin")
- }}
+
{{#if currentUser.admin}}
{{#if model.automatic}}
- {{d-button
- action=(action "toggleDeleteTooltip")
- class="btn-default"
- icon="question-circle"
- label="admin.groups.delete"
- }}
+
{{else}}
- {{d-button
- action=(action "destroyGroup")
- disabled=destroying
- icon="trash-alt"
- class="btn-danger"
- label="admin.groups.delete"
- }}
+
{{/if}}
{{/if}}
{{#if displayGroupMessageButton}}
- {{d-button
- action=(action "messageGroup")
- class="btn-primary group-message-button"
- icon="envelope"
- label="groups.message"
- }}
+
{{/if}}
- {{plugin-outlet name="group-details-after" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
{{#if model.bio_cooked}}
@@ -77,7 +52,7 @@
- {{group-navigation group=model currentPath=currentPath tabs=tabs}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/group/activity.hbs b/app/assets/javascripts/discourse/app/templates/group/activity.hbs
index c5229c99a78..f6201260381 100644
--- a/app/assets/javascripts/discourse/app/templates/group/activity.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group/activity.hbs
@@ -1,14 +1,14 @@
- {{#mobile-nav class="activity-nav" desktopClass="action-list activity-list nav-stacked"}}
+
{{#if model.can_see_members}}
- {{group-activity-filter filter="posts" categoryId=category_id}}
- {{group-activity-filter filter="topics" categoryId=category_id}}
+
+
{{/if}}
{{#if siteSettings.enable_mentions}}
- {{group-activity-filter filter="mentions" categoryId=category_id}}
+
{{/if}}
- {{plugin-outlet name="group-activity-bottom" connectorTagName="li"}}
- {{/mobile-nav}}
+
+
{{outlet}}
diff --git a/app/assets/javascripts/discourse/app/templates/group/manage.hbs b/app/assets/javascripts/discourse/app/templates/group/manage.hbs
index 478eb75a4fc..b952bcba209 100644
--- a/app/assets/javascripts/discourse/app/templates/group/manage.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group/manage.hbs
@@ -1,13 +1,13 @@
- {{#mobile-nav class="activity-nav" desktopClass="action-list activity-list nav-stacked"}}
+
{{#each tabs as |tab|}}
- {{#link-to tab.route model.name}}
+
{{i18n tab.title}}
- {{/link-to}}
+
{{/each}}
- {{/mobile-nav}}
+
{{outlet}}
diff --git a/app/assets/javascripts/discourse/app/templates/group/manage/categories.hbs b/app/assets/javascripts/discourse/app/templates/group/manage/categories.hbs
index 23de93eb10c..b0020b951b8 100644
--- a/app/assets/javascripts/discourse/app/templates/group/manage/categories.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group/manage/categories.hbs
@@ -7,11 +7,7 @@
{{d-icon "d-watching"}} {{i18n "groups.notifications.watching.title"}}
- {{category-selector
- categories=model.watchingCategories
- blockedCategories=selectedCategories
- onChange=(action (mut model.watchingCategories))
- }}
+
{{i18n "groups.manage.categories.watched_categories_instructions"}}
@@ -21,11 +17,7 @@
{{d-icon "d-tracking"}} {{i18n "groups.notifications.tracking.title"}}
- {{category-selector
- categories=model.trackingCategories
- blockedCategories=selectedCategories
- onChange=(action (mut model.trackingCategories))
- }}
+
{{i18n "groups.manage.categories.tracked_categories_instructions"}}
@@ -35,11 +27,7 @@
{{d-icon "d-watching-first"}} {{i18n "groups.notifications.watching_first_post.title"}}
- {{category-selector
- categories=model.watchingFirstPostCategories
- blockedCategories=selectedCategories
- onChange=(action (mut model.watchingFirstPostCategories))
- }}
+
{{i18n "groups.manage.categories.watching_first_post_categories_instructions"}}
@@ -49,11 +37,7 @@
{{d-icon "d-regular"}} {{i18n "groups.notifications.regular.title"}}
- {{category-selector
- categories=model.regularCategories
- blockedCategories=selectedCategories
- onChange=(action (mut model.regularCategories))
- }}
+
{{i18n "groups.manage.categories.regular_categories_instructions"}}
@@ -63,16 +47,12 @@
{{d-icon "d-muted"}} {{i18n "groups.notifications.muted.title"}}
- {{category-selector
- categories=model.mutedCategories
- blockedCategories=selectedCategories
- onChange=(action (mut model.mutedCategories))
- }}
+
{{i18n "groups.manage.categories.muted_categories_instructions"}}
- {{group-manage-save-button model=model}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/group/manage/email.hbs b/app/assets/javascripts/discourse/app/templates/group/manage/email.hbs
index 394dd2df081..cc68e68dfe7 100644
--- a/app/assets/javascripts/discourse/app/templates/group/manage/email.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group/manage/email.hbs
@@ -1 +1 @@
-{{group-manage-email-settings group=model}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/group/manage/interaction.hbs b/app/assets/javascripts/discourse/app/templates/group/manage/interaction.hbs
index 8879b9000c2..14a48dcc0d0 100644
--- a/app/assets/javascripts/discourse/app/templates/group/manage/interaction.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group/manage/interaction.hbs
@@ -1,4 +1,4 @@
diff --git a/app/assets/javascripts/discourse/app/templates/group/manage/logs.hbs b/app/assets/javascripts/discourse/app/templates/group/manage/logs.hbs
index a1243286340..5026681e0d2 100644
--- a/app/assets/javascripts/discourse/app/templates/group/manage/logs.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group/manage/logs.hbs
@@ -1,12 +1,12 @@
{{#if model.logs}}
- {{group-manage-logs-filter clearFilter=(action "clearFilter") value=filters.action type="action"}}
- {{group-manage-logs-filter clearFilter=(action "clearFilter") value=filters.acting_user type="acting_user"}}
- {{group-manage-logs-filter clearFilter=(action "clearFilter") value=filters.target_user type="target_user"}}
- {{group-manage-logs-filter clearFilter=(action "clearFilter") value=filters.subject type="subject"}}
+
+
+
+
- {{#load-more selector=".group-manage-logs .group-manage-logs-row" action=(action "loadMore")}}
+
{{i18n "groups.manage.logs.action"}}
@@ -18,16 +18,14 @@
- {{#each model.logs as |log|}}
- {{group-manage-logs-row
- log=log
- filters=filters}}
+ {{#each model.logs as |logItem|}}
+
{{/each}}
- {{/load-more}}
+
- {{conditional-loading-spinner condition=loading}}
+
{{else}}
{{i18n "groups.empty.logs"}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/group/manage/membership.hbs b/app/assets/javascripts/discourse/app/templates/group/manage/membership.hbs
index bb0a12982fe..3e674156e9c 100644
--- a/app/assets/javascripts/discourse/app/templates/group/manage/membership.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group/manage/membership.hbs
@@ -1,4 +1,4 @@
diff --git a/app/assets/javascripts/discourse/app/templates/group/manage/profile.hbs b/app/assets/javascripts/discourse/app/templates/group/manage/profile.hbs
index 4c4ab73ba1d..d89c3f37aef 100644
--- a/app/assets/javascripts/discourse/app/templates/group/manage/profile.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group/manage/profile.hbs
@@ -1,4 +1,4 @@
diff --git a/app/assets/javascripts/discourse/app/templates/group/manage/tags.hbs b/app/assets/javascripts/discourse/app/templates/group/manage/tags.hbs
index 74a2ba061d0..a0e25b4d63d 100644
--- a/app/assets/javascripts/discourse/app/templates/group/manage/tags.hbs
+++ b/app/assets/javascripts/discourse/app/templates/group/manage/tags.hbs
@@ -1,6 +1,6 @@
{{/if}}
- {{conditional-loading-spinner condition=invitesLoading}}
+
{{else}}
{{#if canBulkInvite}}
@@ -148,10 +148,10 @@
{{/if}}
- {{/load-more}}
+
{{else}}
{{model.error}}
{{/if}}
-{{/d-section}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/user-invited.hbs b/app/assets/javascripts/discourse/app/templates/user-invited.hbs
index f038f9418d7..783c130bd6a 100644
--- a/app/assets/javascripts/discourse/app/templates/user-invited.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user-invited.hbs
@@ -1,11 +1,11 @@
{{#if can_see_invite_details}}
- {{#d-section class="user-secondary-navigation" pageClass="user-invites"}}
- {{#mobile-nav class="invites-nav" desktopClass="nav-stacked action-list"}}
- {{nav-item route="userInvited.show" routeParam="pending" i18nLabel=pendingLabel}}
- {{nav-item route="userInvited.show" routeParam="expired" i18nLabel=expiredLabel}}
- {{nav-item route="userInvited.show" routeParam="redeemed" i18nLabel=redeemedLabel}}
- {{/mobile-nav}}
- {{/d-section}}
+
+
+
+
+
+
+
{{/if}}
{{outlet}}
diff --git a/app/assets/javascripts/discourse/app/templates/user-private-messages-tags.hbs b/app/assets/javascripts/discourse/app/templates/user-private-messages-tags.hbs
index 68c054b801b..3d8233bf035 100644
--- a/app/assets/javascripts/discourse/app/templates/user-private-messages-tags.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user-private-messages-tags.hbs
@@ -21,5 +21,5 @@
{{#if model}}
- {{tag-list tags=model sortProperties=sortProperties titleKey="tagging.all_tags" isPrivateMessage=true tagsForUser=tagsForUser}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/user-topics-list.hbs b/app/assets/javascripts/discourse/app/templates/user-topics-list.hbs
index 21f989da460..38320de86ef 100644
--- a/app/assets/javascripts/discourse/app/templates/user-topics-list.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user-topics-list.hbs
@@ -4,45 +4,21 @@
@body={{model.emptyState.body}}
/>
{{else}}
- {{#load-more class="paginated-topics-list" selector=".paginated-topics-list .topic-list .topic-list-item" action=(action "loadMore")}}
- {{topic-dismiss-buttons
- position="top"
- selectedTopics=selected
- model=model
- showResetNew=showResetNew
- showDismissRead=showDismissRead
- resetNew=(action "resetNew")}}
+
+
{{#if (gt incomingCount 0)}}
{{/if}}
- {{basic-topic-list topicList=model
- hideCategory=hideCategory
- showPosters=showPosters
- bulkSelectEnabled=bulkSelectEnabled
- bulkSelectAction=(action "refresh")
- selected=selected
- tagsForUser=tagsForUser
- onScroll=saveScrollPosition
- canBulkSelect=canBulkSelect
- scrollOnLoad=true
- toggleBulkSelect=(action "toggleBulkSelect")
- updateAutoAddTopicsToBulkSelect=(action "updateAutoAddTopicsToBulkSelect")
- }}
+
- {{topic-dismiss-buttons
- position="bottom"
- selectedTopics=selected
- model=model
- showResetNew=showResetNew
- showDismissRead=showDismissRead
- resetNew=(action "resetNew")}}
+
- {{conditional-loading-spinner condition=model.loadingMore}}
- {{/load-more}}
+
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/user.hbs b/app/assets/javascripts/discourse/app/templates/user.hbs
index a95ce0cede6..88577a3c47c 100644
--- a/app/assets/javascripts/discourse/app/templates/user.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user.hbs
@@ -1,6 +1,6 @@
-{{plugin-outlet name="above-user-profile" connectorTagName="div" args=(hash model=model)}}
+
- {{#d-section class="user-main"}}
+
{{#unless collapsedInfo}}
{{#if showStaffCounters}}
@@ -10,24 +10,24 @@
{{/if}}
{{#if model.number_of_flagged_posts}}
- {{#link-to "review" (query-params username=model.username status="all" type="ReviewableFlaggedPost")}}
+
{{model.number_of_flagged_posts}} {{i18n "user.staff_counters.flagged_posts"}}
- {{/link-to}}
+
{{/if}}
{{#if model.number_of_rejected_posts}}
- {{#link-to "review" (query-params username=model.username status="rejected" type="ReviewableQueuedPost")}}
+
{{model.number_of_rejected_posts}} {{i18n "user.staff_counters.rejected_posts"}}
- {{/link-to}}
+
{{/if}}
{{#if model.number_of_deleted_posts}}
- {{#link-to "user.deletedPosts" model}}
+
{{model.number_of_deleted_posts}} {{i18n "user.staff_counters.deleted_posts"}}
- {{/link-to}}
+
{{/if}}
{{#if model.number_of_suspensions}}
@@ -39,9 +39,9 @@
{{/if}}
{{#if model.warnings_received_count}}
- {{#link-to "userPrivateMessages.warnings" model}}
+
{{model.warnings_received_count}} {{i18n "user.staff_counters.warnings_received"}}
- {{/link-to}}
+
{{/if}}
@@ -50,45 +50,28 @@
{{/unless}}
- {{plugin-outlet name="before-user-profile-avatar" args=(hash model=model)}}
- {{user-profile-avatar user=model tagName=""}}
+
+
{{#if model.can_send_private_message_to_user}}
- {{d-button class="btn-primary compose-pm"
- action=(route-action "composePrivateMessage" model)
- icon="envelope"
- label="user.private_message"}}
+
{{/if}}
{{#if canMuteOrIgnoreUser}}
- {{user-notifications-dropdown
- user=model
- value=userNotificationLevel
- updateNotificationLevel=(action "updateNotificationLevel")
- }}
+
{{/if}}
{{#if currentUser.staff}}
{{d-icon "wrench"}}{{i18n "admin.user.show_admin_profile"}}
{{/if}}
- {{plugin-outlet name="user-profile-controls"
- connectorTagName="li"
- args=(hash model=model)}}
+
{{#if canExpandProfile}}
- {{d-button
- ariaExpanded=collapsedInfoState.isExpanded
- ariaLabel=collapsedInfoState.ariaLabel
- ariaControls="collapsed-info-panel"
- class="btn-default"
- label=(concat "user." collapsedInfoState.label)
- icon=collapsedInfoState.icon
- action=(action collapsedInfoState.action)
- }}
+
{{/if}}
@@ -104,13 +87,13 @@
{{#if model.title}}
{{model.title}}
{{/if}}
- {{plugin-outlet name="user-post-names" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
{{#if showFeaturedTopic}}
{{i18n "user.featured_topic"}}
- {{#link-to "topic" model.featured_topic.slug model.featured_topic.id}}{{html-safe (replace-emoji model.featured_topic.fancy_title)}}{{/link-to}}
+ {{html-safe (replace-emoji model.featured_topic.fancy_title)}}
{{/if}}
@@ -127,7 +110,7 @@
{{/if}}
{{/if}}
- {{plugin-outlet name="user-location-and-website" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
@@ -148,9 +131,9 @@
{{/if}}
{{#if isNotSuspendedOrIsStaff}}
- {{#html-with-links}}
+
{{html-safe model.bio_cooked}}
- {{/html-with-links}}
+
{{/if}}
@@ -171,16 +154,15 @@
{{/if}}
{{/each}}
- {{plugin-outlet name="user-profile-public-fields" tagName="span" connectorTagName="div"
- args=(hash publicUserFields=publicUserFields
- model=model)}}
+
{{/if}}
- {{plugin-outlet name="user-profile-primary" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
- {{plugin-outlet name="user-profile-above-collapsed-info" args=(hash model=model collapsedInfo=collapsedInfo)}}
+
{{#unless collapsedInfo}}
@@ -197,7 +179,7 @@
{{i18n 'views'}} {{model.profile_view_count}}
{{/if}}
{{#if model.invited_by}}
-
{{i18n 'user.invited_by'}} {{#link-to 'user' model.invited_by}}{{model.invited_by.username}}{{/link-to}}
+
{{i18n 'user.invited_by'}} {{model.invited_by.username}}
{{/if}}
{{#if model.trust_level}}
{{i18n 'user.trust_level'}} {{model.trustLevel.name}}
@@ -208,7 +190,7 @@
{{#if model.email}}
{{model.email}}
{{else}}
- {{d-button action=(route-action "checkEmail") actionParam=model icon="far-envelope" label="admin.users.check_email.text" class="btn-primary"}}
+
{{/if}}
@@ -217,55 +199,55 @@
{{i18n 'groups.title' count=model.displayGroups.length}}
{{#each model.displayGroups as |group|}}
- {{#link-to 'group' group.name class="group-link"}}{{group.name}}{{/link-to}}
+ {{group.name}}
{{/each}}
- {{#link-to "groups" (query-params username=model.username)}}
+
...
- {{/link-to}}
+
{{/if}}
{{#if canDeleteUser}}
- {{d-button action=(action "adminDelete") icon="exclamation-triangle" label="user.admin_delete" class="btn-danger"}}
+
{{/if}}
- {{plugin-outlet name="user-profile-secondary" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
{{/unless}}
- {{#mobile-nav class='main-nav' desktopClass="nav nav-pills user-nav"}}
+
{{#unless model.profile_hidden}}
- {{#link-to 'user.summary'}}{{i18n 'user.summary.title'}}{{/link-to}}
- {{#link-to 'userActivity'}}{{i18n 'user.activity_stream'}}{{/link-to}}
+ {{i18n 'user.summary.title'}}
+ {{i18n 'user.activity_stream'}}
{{/unless}}
{{#if showNotificationsTab}}
- {{#link-to 'userNotifications'}}
+
{{d-icon "comment" class="glyph"}}{{i18n 'user.notifications'}}
- {{/link-to}}
+
{{/if}}
{{#if showPrivateMessages}}
- {{#link-to 'userPrivateMessages'}}{{d-icon "far-envelope"}}{{i18n 'user.private_messages'}}{{/link-to}}
+ {{d-icon "far-envelope"}}{{i18n 'user.private_messages'}}
{{/if}}
{{#if canInviteToForum}}
- {{#link-to 'userInvited'}}{{d-icon "user-plus"}}{{i18n 'user.invited.title'}}{{/link-to}}
+ {{d-icon "user-plus"}}{{i18n 'user.invited.title'}}
{{/if}}
{{#if showBadges}}
- {{#link-to 'user.badges'}}{{d-icon "certificate"}}{{i18n 'badges.title'}}{{/link-to}}
+ {{d-icon "certificate"}}{{i18n 'badges.title'}}
{{/if}}
- {{plugin-outlet name="user-main-nav" tagName="span" connectorTagName="div" tagName='' connectorTagName='li' args=(hash model=model)}}
+
{{#if model.can_edit}}
- {{#link-to 'preferences'}}{{d-icon "cog"}}{{i18n 'user.preferences'}}{{/link-to}}
+ {{d-icon "cog"}}{{i18n 'user.preferences'}}
{{/if}}
- {{/mobile-nav}}
+
{{outlet}}
- {{/d-section}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/user/activity.hbs b/app/assets/javascripts/discourse/app/templates/user/activity.hbs
index 26ddb03eef4..1ab5ded3e8f 100644
--- a/app/assets/javascripts/discourse/app/templates/user/activity.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/activity.hbs
@@ -1,45 +1,41 @@
-{{#d-section pageClass="user-activity" class="user-secondary-navigation" scrollTop=false}}
+
- {{#mobile-nav class="activity-nav" desktopClass="action-list activity-list nav-stacked"}}
- {{#d-navigation-item route="userActivity.index"}}{{i18n "user.filters.all"}}{{/d-navigation-item}}
- {{#d-navigation-item route="userActivity.topics"}}{{i18n "user_action_groups.4"}}{{/d-navigation-item}}
- {{#d-navigation-item route="userActivity.replies"}}{{i18n "user_action_groups.5"}}{{/d-navigation-item}}
+
+ {{i18n "user.filters.all"}}
+ {{i18n "user_action_groups.4"}}
+ {{i18n "user_action_groups.5"}}
{{#if user.showRead}}
- {{#d-navigation-item route="userActivity.read" title=(i18n "user.read_help")}}
+
{{i18n "user.read"}}
- {{/d-navigation-item}}
+
{{/if}}
{{#if user.showDrafts}}
- {{#d-navigation-item route="userActivity.drafts"}}
+
{{draftLabel}}
- {{/d-navigation-item}}
+
{{/if}}
{{#if (gt model.pending_posts_count 0)}}
- {{#d-navigation-item route="userActivity.pending"}}
+
{{pendingLabel}}
- {{/d-navigation-item}}
+
{{/if}}
- {{#d-navigation-item route="userActivity.likesGiven"}}{{i18n "user_action_groups.1"}}{{/d-navigation-item}}
+ {{i18n "user_action_groups.1"}}
{{#if user.showBookmarks}}
- {{#d-navigation-item route="userActivity.bookmarks"}}{{i18n "user_action_groups.3"}}{{/d-navigation-item}}
+ {{i18n "user_action_groups.3"}}
{{/if}}
- {{plugin-outlet
- name="user-activity-bottom" tagName="span"
- connectorTagName="li"
- args=(hash model=model)
- }}
- {{/mobile-nav}}
+
+
-{{/d-section}}
+
{{#if canDownloadPosts}}
- {{d-button action=(action "exportUserArchive") class="btn-default" label="user.download_archive.button_text" icon="download"}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/user/badges.hbs b/app/assets/javascripts/discourse/app/templates/user/badges.hbs
index 2a865c1c3c2..b6bffb1403b 100644
--- a/app/assets/javascripts/discourse/app/templates/user/badges.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/badges.hbs
@@ -1,21 +1,12 @@
-{{#d-section pageClass="user-badges" class="user-content"}}
+
{{i18n "badges.favorite_count" count=this.favoriteBadges.length max=siteSettings.max_favorite_badges}}
{{#each sortedBadges as |ub|}}
- {{badge-card
- badge=ub.badge
- count=ub.count
- canFavorite=ub.can_favorite
- isFavorite=ub.is_favorite
- username=username
- canFavoriteMoreBadges=canFavoriteMoreBadges
- onFavoriteClick=(action "favorite" ub)
- filterUser="true"
- }}
+
{{/each}}
- {{plugin-outlet name="after-user-profile-badges" args=(hash user=user.model)}}
+
-{{/d-section}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/user/bookmarks.hbs b/app/assets/javascripts/discourse/app/templates/user/bookmarks.hbs
index d9d8583c66f..43699404483 100644
--- a/app/assets/javascripts/discourse/app/templates/user/bookmarks.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/bookmarks.hbs
@@ -1,4 +1,4 @@
-{{#conditional-loading-spinner condition=loading}}
+
{{#if permissionDenied}}
{{i18n "bookmarks.list_permission_denied"}}
{{else if userDoesNotHaveBookmarks}}
@@ -8,29 +8,13 @@
/>
{{else}}
- {{input type="text"
- value=searchTerm
- placeholder=(i18n "bookmarks.search_placeholder")
- enter=(action "search")
- id="bookmark-search"
- autocomplete="off"
- }}
- {{d-button
- class="btn-primary"
- action=(action "search")
- type="button"
- icon="search"
- }}
+
+
{{#if nothingFound}}
{{i18n "user.no_bookmarks_search"}}
{{else}}
- {{bookmark-list
- loadMore=(action "loadMore")
- reload=(action "reload")
- loadingMore=loadingMore
- content=model.bookmarks
- }}
+
{{/if}}
{{/if}}
-{{/conditional-loading-spinner}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/user/messages.hbs b/app/assets/javascripts/discourse/app/templates/user/messages.hbs
index db701785f80..f8c1cbb2f7f 100644
--- a/app/assets/javascripts/discourse/app/templates/user/messages.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/messages.hbs
@@ -1,67 +1,67 @@
-{{#d-section class="user-secondary-navigation" pageClass="user-messages"}}
- {{#mobile-nav class="messages-nav" desktopClass="nav-stacked action-list"}}
+
+
- {{#link-to "userPrivateMessages.index" model}}
+
{{i18n "user.messages.inbox"}}
- {{/link-to}}
+
{{#if isPersonal}}
- {{#link-to "userPrivateMessages.sent" model}}
+
{{i18n "user.messages.sent"}}
- {{/link-to}}
+
{{#if viewingSelf}}
- {{#link-to "userPrivateMessages.new" model class="new"}}
+
{{newLinkText}}
- {{/link-to}}
+
- {{#link-to "userPrivateMessages.unread" model class="unread"}}
+
{{unreadLinkText}}
- {{/link-to}}
+
{{/if}}
- {{#link-to "userPrivateMessages.archive" model}}
+
{{i18n "user.messages.archive"}}
- {{/link-to}}
+
{{/if}}
{{#each model.groups as |group|}}
{{#if group.has_messages}}
- {{#link-to "userPrivateMessages.group" group.name}}
+
{{d-icon "users"}}
{{capitalize-string group.name}}
- {{/link-to}}
+
{{#if (and isGroup (eq groupFilter group.name))}}
{{#if viewingSelf}}
- {{#link-to "userPrivateMessages.groupNew" group.name class="new"}}
+
{{newLinkText}}
- {{/link-to}}
+
- {{#link-to "userPrivateMessages.groupUnread" group.name class="unread"}}
+
{{unreadLinkText}}
- {{/link-to}}
+
{{/if}}
- {{#link-to "userPrivateMessages.groupArchive" group.name}}
+
{{i18n "user.messages.archive"}}
- {{/link-to}}
+
{{/if}}
{{/if}}
@@ -69,35 +69,32 @@
{{#if pmTaggingEnabled}}
- {{#link-to "userPrivateMessages.tags" model}}
+
{{i18n "user.messages.tags"}}
- {{/link-to}}
+
{{#if tagId}}
- {{#link-to "userPrivateMessages.tagsShow" tagId}}
+
{{tagId}}
- {{/link-to}}
+
{{/if}}
{{/if}}
- {{plugin-outlet name="user-messages-nav" tagName="span" connectorTagName="li" args=(hash model=model)}}
- {{/mobile-nav}}
-{{/d-section}}
+
+
+
{{#unless site.mobileView}}
{{#if group}}
- {{group-notifications-button
- value=group.group_user.notification_level
- onChange=(action "changeGroupNotificationLevel")
- }}
+
{{/if}}
{{#if showNewPM}}
- {{d-button class="btn-primary new-private-message" action=(route-action "composePrivateMessage") icon="envelope" label="user.new_private_message"}}
+
{{/if}}
{{/unless}}
@@ -105,11 +102,7 @@
{{#if (and site.mobileView showNewPM)}}
- {{d-button
- class="btn-primary new-private-message"
- action=(route-action "composePrivateMessage")
- icon="envelope"
- label="user.new_private_message"}}
+
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/user/notifications-index.hbs b/app/assets/javascripts/discourse/app/templates/user/notifications-index.hbs
index d1a35c252f0..fbc1be3e8f1 100644
--- a/app/assets/javascripts/discourse/app/templates/user/notifications-index.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/notifications-index.hbs
@@ -13,13 +13,13 @@
/>
{{else}}
- {{notifications-filter value=filter onChange=(action (mut filter))}}
+
{{#if nothingFound}}
{{i18n "notifications.empty"}}
{{else}}
- {{user-notifications-large notifications=model}}
- {{conditional-loading-spinner condition=loading}}
+
+
{{/if}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/user/notifications.hbs b/app/assets/javascripts/discourse/app/templates/user/notifications.hbs
index b4a4b1a639c..f626b3522ff 100644
--- a/app/assets/javascripts/discourse/app/templates/user/notifications.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/notifications.hbs
@@ -1,56 +1,46 @@
-{{#d-section pageClass="user-notifications" class="user-secondary-navigation"}}
- {{#mobile-nav class="notifications-nav" desktopClass="notification-list action-list nav-stacked"}}
+
+
- {{#link-to "userNotifications.index"}}
+
{{i18n "user.filters.all"}}
- {{/link-to}}
+
- {{#link-to "userNotifications.responses"}}
+
{{i18n "user_action_groups.6"}}
- {{/link-to}}
+
- {{#link-to "userNotifications.likesReceived"}}
+
{{i18n "user_action_groups.2"}}
- {{/link-to}}
+
{{#if siteSettings.enable_mentions}}
- {{#link-to "userNotifications.mentions"}}
+
{{i18n "user_action_groups.7"}}
- {{/link-to}}
+
{{/if}}
- {{#link-to "userNotifications.edits"}}
+
{{i18n "user_action_groups.11"}}
- {{/link-to}}
+
- {{plugin-outlet
- name="user-notifications-bottom" tagName="span"
- connectorTagName="li"
- args=(hash model=model)}}
- {{/mobile-nav}}
+
+
-{{/d-section}}
+
{{#if model}}
- {{d-button
- title="user.dismiss_notifications_tooltip"
- class="btn btn-default dismiss-notifications"
- action=(action "resetNew")
- label="user.dismiss_notifications"
- icon="check"
- disabled=allNotificationsRead
- }}
+
{{/if}}
- {{#load-more class="notification-history user-stream" selector=".user-stream .notification" action=(action "loadMore")}}
+
{{outlet}}
- {{conditional-loading-spinner condition=model.loadingMore}}
- {{/load-more}}
+
+
diff --git a/app/assets/javascripts/discourse/app/templates/user/posts.hbs b/app/assets/javascripts/discourse/app/templates/user/posts.hbs
index b1743bf0771..384e96d0057 100644
--- a/app/assets/javascripts/discourse/app/templates/user/posts.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/posts.hbs
@@ -1 +1 @@
-{{user-stream stream=model}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/user/stream.hbs b/app/assets/javascripts/discourse/app/templates/user/stream.hbs
index 32c237787d3..7b5b7247734 100644
--- a/app/assets/javascripts/discourse/app/templates/user/stream.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/stream.hbs
@@ -8,4 +8,4 @@
/>
{{/if}}
{{/if}}
-{{user-stream stream=model.stream}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/user/summary.hbs b/app/assets/javascripts/discourse/app/templates/user/summary.hbs
index c88a13d817a..70bcac97fb6 100644
--- a/app/assets/javascripts/discourse/app/templates/user/summary.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/summary.hbs
@@ -1,81 +1,73 @@
-{{#d-section pageClass="user-summary" tagName=""}}
+
- {{plugin-outlet name="above-user-summary-stats" args=(hash model=model user=user)}}
+
{{#if model.can_see_summary_stats}}
{{i18n "user.summary.stats"}}
- {{user-stat value=model.days_visited label="user.summary.days_visited"}}
+
- {{user-stat value=timeRead label="user.summary.time_read" rawTitle=(i18n "user.summary.time_read_title" duration=timeReadMedium) type="string"}}
+
{{#if showRecentTimeRead}}
- {{user-stat value=recentTimeRead label="user.summary.recent_time_read" rawTitle=(i18n "user.summary.recent_time_read_title" duration=recentTimeReadMedium) type="string"}}
+
{{/if}}
- {{user-stat value=model.topics_entered label="user.summary.topics_entered"}}
+
- {{user-stat value=model.posts_read_count label="user.summary.posts_read"}}
+
- {{#link-to "userActivity.likesGiven"}}
- {{user-stat value=model.likes_given icon="heart" label="user.summary.likes_given"}}
- {{/link-to}}
+
+
+
- {{user-stat value=model.likes_received icon="heart" label="user.summary.likes_received"}}
+
{{#if model.bookmark_count}}
- {{#link-to "userActivity.bookmarks"}}
- {{user-stat value=model.bookmark_count label="user.summary.bookmark_count"}}
- {{/link-to}}
+
+
+
{{/if}}
- {{#link-to "userActivity.topics"}}
- {{user-stat value=model.topic_count label="user.summary.topic_count"}}
- {{/link-to}}
+
+
+
- {{#link-to "userActivity.replies"}}
- {{user-stat value=model.post_count label="user.summary.post_count"}}
- {{/link-to}}
+
+
+
- {{plugin-outlet name="user-summary-stat" connectorTagName="li" args=(hash model=model user=user)}}
+
{{/if}}
- {{#user-summary-section title="top_replies" class="replies-section pull-left"}}
- {{#user-summary-topics-list type="replies" items=model.replies user=user as |reply|}}
- {{user-summary-topic
- createdAt=reply.createdAt
- topic=reply.topic
- likes=reply.like_count
- url=reply.url}}
- {{/user-summary-topics-list}}
- {{/user-summary-section}}
+
+
+
+
+
- {{#user-summary-section title="top_topics" class="topics-section pull-right"}}
- {{#user-summary-topics-list type="topics" items=model.topics user=user as |topic|}}
- {{user-summary-topic
- createdAt=topic.created_at
- topic=topic
- likes=topic.like_count
- url=topic.url}}
- {{/user-summary-topics-list}}
- {{/user-summary-section}}
+
+
+
+
+
- {{#user-summary-section title="top_links" class="links-section pull-left"}}
+
{{#if model.links.length}}
- {{#user-summary-section title="most_replied_to_users" class="summary-user-list replied-section pull-right"}}
- {{#user-summary-users-list none="no_replies" users=model.most_replied_to_users as |user|}}
- {{user-summary-user user=user icon="reply" countClass="replies"}}
- {{/user-summary-users-list}}
- {{/user-summary-section}}
+
+
+
+
+
- {{#user-summary-section title="most_liked_by" class="summary-user-list liked-by-section pull-left"}}
- {{#user-summary-users-list none="no_likes" users=model.most_liked_by_users as |user|}}
- {{user-summary-user user=user icon="heart" countClass="likes"}}
- {{/user-summary-users-list}}
- {{/user-summary-section}}
+
+
+
+
+
- {{#user-summary-section title="most_liked_users" class="summary-user-list liked-section pull-right"}}
- {{#user-summary-users-list none="no_likes" users=model.most_liked_users as |user|}}
- {{user-summary-user user=user icon="heart" countClass="likes"}}
- {{/user-summary-users-list}}
- {{/user-summary-section}}
+
+
+
+
+
{{#if model.top_categories.length}}
- {{#user-summary-section title="top_categories" class="summary-category-list pull-left"}}
+
@@ -136,16 +128,16 @@
{{category-link category allowUncategorized="true" hideParent=false}}
- {{user-summary-category-search user=user category=category count=category.topic_count}}
+
- {{user-summary-category-search user=user category=category count=category.post_count}}
+
{{/each}}
- {{/user-summary-section}}
+
{{/if}}
@@ -156,20 +148,20 @@
{{#if model.badges}}
{{#each model.badges as |badge|}}
- {{badge-card badge=badge count=badge.count username=user.username_lower}}
+
{{/each}}
- {{plugin-outlet name="after-user-summary-badges" args=(hash model=model user=user)}}
+
{{else}}
{{i18n "user.summary.no_badges"}}
{{/if}}
{{#if moreBadges}}
- {{#link-to "user.badges" user class="more"}}
+
{{i18n "user.summary.more_badges"}}
- {{/link-to}}
+
{{/if}}
{{/if}}
-{{/d-section}}
+
diff --git a/app/assets/javascripts/discourse/app/templates/users.hbs b/app/assets/javascripts/discourse/app/templates/users.hbs
index aa0aeaf0ef1..ccff2998c46 100644
--- a/app/assets/javascripts/discourse/app/templates/users.hbs
+++ b/app/assets/javascripts/discourse/app/templates/users.hbs
@@ -1,11 +1,11 @@
-{{#d-section pageClass="users"}}
- {{#load-more selector=".directory tbody tr" action=(action "loadMore")}}
+
+
- {{plugin-outlet name="users-top" tagName="span" connectorTagName="div" args=(hash model=model)}}
+
- {{period-chooser period=period onChange=(action (mut period)) fullDay=false}}
+
{{#if lastUpdatedAt}}
{{i18n "directory.last_updated"}}
@@ -19,45 +19,30 @@
{{i18n "directory.total_rows" count=model.totalRows}}
{{/if}}
- {{input
- value=(readonly nameInput)
- input=(action "onUsernameFilterChanged" value="target.value")
- placeholderKey="directory.filter_name"
- class="filter-name no-blur"
- }}
+
{{#if showGroupFilter}}
- {{combo-box
- class="directory-group-selector"
- value=group
- content=groupOptions
- onChange=(action groupChanged)
- options=(hash
+
{{/if}}
{{#if currentUser.staff}}
- {{d-button
- icon="wrench"
- action=(action "showEditColumnsModal")
- class="btn-default open-edit-columns-btn"
- }}
+
{{/if}}
- {{plugin-outlet name="users-directory-controls" args=(hash model=model)}}
+
- {{#conditional-loading-spinner condition=isLoading}}
+
{{#if model.length}}
- {{directory-table items=model columns=columns showTimeRead=showTimeRead order=order asc=asc}}
- {{conditional-loading-spinner condition=model.loadingMore}}
+
+
{{else}}
{{i18n "directory.no_results"}}
{{/if}}
- {{/conditional-loading-spinner}}
+
- {{/load-more}}
-{{/d-section}}
+
+
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/combo-box/combo-box-header.hbs b/app/assets/javascripts/select-kit/addon/templates/components/combo-box/combo-box-header.hbs
index 4517a8a0d58..e67854ae271 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/combo-box/combo-box-header.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/combo-box/combo-box-header.hbs
@@ -8,12 +8,7 @@
}}
{{#if shouldDisplayClearableButton}}
- {{d-button
- class="btn-clear"
- icon="times"
- action=selectKit.onClearSelection
- ariaLabel="clear_input"
- }}
+
{{/if}}
{{d-icon caretIcon class="caret-icon"}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/flair-row.hbs b/app/assets/javascripts/select-kit/addon/templates/components/flair-row.hbs
index f4bdb2aa30b..4a638c6d6fd 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/flair-row.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/flair-row.hbs
@@ -1,10 +1,5 @@
{{#if item.url}}
- {{avatar-flair
- flairName=item.name
- flairUrl=item.url
- flairBgColor=item.bgColor
- flairColor=item.color
- }}
+
{{/if}}
{{label}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/mini-tag-chooser/selected-collection.hbs b/app/assets/javascripts/select-kit/addon/templates/components/mini-tag-chooser/selected-collection.hbs
index 8b280a41512..274fd89929f 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/mini-tag-chooser/selected-collection.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/mini-tag-chooser/selected-collection.hbs
@@ -1,16 +1,9 @@
{{#if tags}}
{{#each tags as |tag|}}
- {{#d-button
- translatedTitle=tag.value
- icon="times"
- action=(action selectKit.deselect)
- actionParam=tag.value
- class=tag.classNames
- tabindex=0
- }}
+
{{discourse-tag tag.value noHref=true}}
- {{/d-button}}
+
{{/each}}
{{/if}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/multi-select.hbs b/app/assets/javascripts/select-kit/addon/templates/components/multi-select.hbs
index c5ad03fa1e4..388d91b6b97 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/multi-select.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/multi-select.hbs
@@ -7,7 +7,7 @@
id=(concat selectKit.uniqueID "-header")
}}
- {{#select-kit/select-kit-body selectKit=selectKit id=(concat selectKit.uniqueID "-body")}}
+
{{component selectKit.options.filterComponent
selectKit=selectKit
id=(concat selectKit.uniqueID "-filter")
@@ -51,5 +51,5 @@
{{/if}}
{{/if}}
{{/if}}
- {{/select-kit/select-kit-body}}
+
{{/unless}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/multi-select/multi-select-header.hbs b/app/assets/javascripts/select-kit/addon/templates/components/multi-select/multi-select-header.hbs
index b45cfd1c7a0..b728e6bf3cd 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/multi-select/multi-select-header.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/multi-select/multi-select-header.hbs
@@ -3,7 +3,7 @@
{{d-icon icon}}
{{/each}}
- {{multi-select/format-selected-content content=selectedContent selectKit=selectKit}}
+
{{d-icon caretIcon class="caret-icon"}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/pinned-button.hbs b/app/assets/javascripts/select-kit/addon/templates/components/pinned-button.hbs
index 91bfe147ff6..46079b12093 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/pinned-button.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/pinned-button.hbs
@@ -1,4 +1,4 @@
- {{pinned-options value=pinned topic=topic}}
+
{{html-safe reasonText}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/select-kit/select-kit-filter.hbs b/app/assets/javascripts/select-kit/addon/templates/components/select-kit/select-kit-filter.hbs
index d213fed5a8f..6b0da3675d4 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/select-kit/select-kit-filter.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/select-kit/select-kit-filter.hbs
@@ -1,21 +1,6 @@
{{#unless isHidden}}
{{!-- filter-input-search prevents 1password from attempting autocomplete --}}
- {{input
- tabindex=0
- class="filter-input"
- placeholder=placeholder
- autocomplete="off"
- autocorrect="off"
- autocapitalize="off"
- name="filter-input-search"
- spellcheck=false
- value=(readonly selectKit.filter)
- input=(action "onInput")
- paste=(action "onPaste")
- keyDown=(action "onKeydown")
- keyUp=(action "onKeyup")
- type="search"
- }}
+
{{#if selectKit.options.filterIcon}}
{{d-icon selectKit.options.filterIcon class="filter-icon"}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/selected-choice-category.hbs b/app/assets/javascripts/select-kit/addon/templates/components/selected-choice-category.hbs
index 3014c035585..834e57e557a 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/selected-choice-category.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/selected-choice-category.hbs
@@ -1,3 +1,3 @@
-{{#selected-choice item=item selectKit=selectKit extraClass=extraClass}}
+
{{badge}}
-{{/selected-choice}}
+
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/selected-name.hbs b/app/assets/javascripts/select-kit/addon/templates/components/selected-name.hbs
index ef6c82086bf..d17e7fc76e4 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/selected-name.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/selected-name.hbs
@@ -9,13 +9,7 @@
{{#if shouldDisplayClearableButton}}
- {{d-button
- class="btn-clear"
- icon="times"
- action=selectKit.deselect
- actionParam=item
- ariaLabel="clear_input"
- }}
+
{{/if}}
{{else}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/single-select.hbs b/app/assets/javascripts/select-kit/addon/templates/components/single-select.hbs
index d10c76954f1..d296124b4ab 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/single-select.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/single-select.hbs
@@ -7,7 +7,7 @@
id=(concat selectKit.uniqueID "-header")
}}
- {{#select-kit/select-kit-body selectKit=selectKit id=(concat selectKit.uniqueID "-body")}}
+
{{component selectKit.options.filterComponent
selectKit=selectKit
id=(concat selectKit.uniqueID "-filter")
@@ -40,5 +40,5 @@
{{/if}}
{{/if}}
{{/if}}
- {{/select-kit/select-kit-body}}
+
{{/unless}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/topic-notifications-button.hbs b/app/assets/javascripts/select-kit/addon/templates/components/topic-notifications-button.hbs
index 0d1e594fc18..8c683d1ca66 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/topic-notifications-button.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/topic-notifications-button.hbs
@@ -1,28 +1,18 @@
{{#if appendReason}}
- {{topic-notifications-options
- value=notificationLevel
- topic=topic
- onChange=(action "changeTopicNotificationLevel")
- options=(hash
+
{{html-safe notificationReasonText}}
{{else}}
- {{topic-notifications-options
- value=notificationLevel
- topic=topic
- onChange=(action "changeTopicNotificationLevel")
- options=(hash
+
{{/if}}
diff --git a/app/assets/javascripts/select-kit/addon/templates/components/topic-row.hbs b/app/assets/javascripts/select-kit/addon/templates/components/topic-row.hbs
index 3e143e0cbdb..0cea321a49f 100644
--- a/app/assets/javascripts/select-kit/addon/templates/components/topic-row.hbs
+++ b/app/assets/javascripts/select-kit/addon/templates/components/topic-row.hbs
@@ -1,4 +1,4 @@
-{{topic-status topic=item disableActions=true}}
+
{{replace-emoji item.fancy_title}}
{{bound-category-link item.category
diff --git a/app/assets/javascripts/wizard/addon/templates/components/invite-list.hbs b/app/assets/javascripts/wizard/addon/templates/components/invite-list.hbs
index 5c829fb9dc2..ab0f13c5c6a 100644
--- a/app/assets/javascripts/wizard/addon/templates/components/invite-list.hbs
+++ b/app/assets/javascripts/wizard/addon/templates/components/invite-list.hbs
@@ -2,22 +2,17 @@
{{#if users}}
{{#each users as |user|}}
- {{invite-list-user user=user roles=roles removeUser=(action "removeUser")}}
+
{{/each}}
{{/if}}
- {{homepage-preview
- wizard=wizard
- step=step
- }}
+
diff --git a/app/assets/javascripts/wizard/addon/templates/components/wizard-field-checkbox.hbs b/app/assets/javascripts/wizard/addon/templates/components/wizard-field-checkbox.hbs
index dddf1b81e49..e2dc7c95db9 100644
--- a/app/assets/javascripts/wizard/addon/templates/components/wizard-field-checkbox.hbs
+++ b/app/assets/javascripts/wizard/addon/templates/components/wizard-field-checkbox.hbs
@@ -1,8 +1,4 @@
- {{input
- type="checkbox"
- class="wizard-checkbox"
- checked=field.value
- }}
+
{{field.placeholder}}
diff --git a/app/assets/javascripts/wizard/addon/templates/components/wizard-field-checkboxes.hbs b/app/assets/javascripts/wizard/addon/templates/components/wizard-field-checkboxes.hbs
index fa8427ac192..bff62b8e21f 100644
--- a/app/assets/javascripts/wizard/addon/templates/components/wizard-field-checkboxes.hbs
+++ b/app/assets/javascripts/wizard/addon/templates/components/wizard-field-checkboxes.hbs
@@ -1,10 +1,7 @@
{{#each field.choices as |c|}}