diff --git a/app/assets/javascripts/admin/controllers/admin-plugins.js.es6 b/app/assets/javascripts/admin/controllers/admin-plugins.js.es6 index ae7f95915d9..5e91ad297da 100644 --- a/app/assets/javascripts/admin/controllers/admin-plugins.js.es6 +++ b/app/assets/javascripts/admin/controllers/admin-plugins.js.es6 @@ -7,5 +7,14 @@ export default Ember.Controller.extend({ } }) .compact(); - }.property() + }.property(), + actions: { + clearFilter() { + this.setProperties({ filter: "", onlyOverridden: false }); + }, + + toggleMenu() { + $(".admin-detail").toggleClass("mobile-closed mobile-open"); + } + } }); diff --git a/app/assets/javascripts/admin/templates/admin.hbs b/app/assets/javascripts/admin/templates/admin.hbs index cf4d231d4ed..495a51cf460 100644 --- a/app/assets/javascripts/admin/templates/admin.hbs +++ b/app/assets/javascripts/admin/templates/admin.hbs @@ -1,8 +1,10 @@ {{#admin-wrapper class="container"}}
{{i18n 'admin.api.key'}} | {{i18n 'admin.api.user'}} | - - {{#each model as |k|}} - |
---|---|---|
{{k.key}} | -- {{#if k.user}} - {{#link-to 'adminUser' k.user}} - {{avatar k.user imageSize="small"}} - {{/link-to}} - {{else}} - {{i18n 'admin.api.all_users'}} - {{/if}} - | -- {{d-button action="regenerateKey" actionParam=k icon="undo" label='admin.api.regenerate'}} - {{d-button action="revokeKey" actionParam=k icon="times" label='admin.api.revoke'}} - | -
{{k.key}} | ++ {{#if k.user}} + {{#link-to 'adminUser' k.user}} + {{avatar k.user imageSize="small"}} + {{/link-to}} + {{else}} + {{i18n 'admin.api.all_users'}} + {{/if}} + | ++ {{d-button action="regenerateKey" actionParam=k icon="undo" label='admin.api.regenerate'}} + {{d-button action="revokeKey" actionParam=k icon="times" label='admin.api.revoke'}} + | +
{{i18n 'admin.api.none'}}
{{/if}} {{#unless hasMasterKey}} - + {{/unless}} diff --git a/app/assets/javascripts/admin/templates/backups-index.hbs b/app/assets/javascripts/admin/templates/backups-index.hbs index a8220a4e1ac..3b20c7935e6 100644 --- a/app/assets/javascripts/admin/templates/backups-index.hbs +++ b/app/assets/javascripts/admin/templates/backups-index.hbs @@ -1,9 +1,4 @@ -{{i18n 'admin.backups.columns.filename'}} | -{{i18n 'admin.backups.columns.size'}} | -
-
+
{{resumable-upload target="/admin/backups/upload" success="uploadSuccess" error="uploadError" uploadText=uploadLabel title="admin.backups.upload.title"}}
{{#if site.isReadOnly}}
{{d-button icon="eye" action="toggleReadOnlyMode" disabled=status.isOperationRunning title="admin.backups.read_only.disable.title" label="admin.backups.read_only.disable.label"}}
@@ -11,14 +6,19 @@
{{d-button icon="eye" action="toggleReadOnlyMode" disabled=status.isOperationRunning title="admin.backups.read_only.enable.title" label="admin.backups.read_only.enable.label"}}
{{/if}}
- |
-
---|
{{i18n 'admin.backups.columns.filename'}} | +{{i18n 'admin.backups.columns.size'}} | ++ + {{#each model as |backup|}} | ||||
---|---|---|---|---|---|---|
{{backup.filename}} | -{{human-size backup.size}} | -
-
+ {{backup.filename}} |
+ {{human-size backup.size}} |
+
+ |
{{d-button class="download"
action="download"
actionParam=backup
@@ -42,4 +42,5 @@
| |
{{i18n "admin.embedding.host"}} | {{i18n "admin.embedding.class_name"}} | {{i18n "admin.embedding.path_whitelist"}} | {{i18n "admin.embedding.category"}} | - + + {{#each embedding.embeddable_hosts as |host|}} {{embeddable-host host=host deleteHost="deleteHost"}} {{/each}} + |
---|
{{i18n "admin.embedding.get_started"}}
diff --git a/app/assets/javascripts/admin/templates/flags-topics-index.hbs b/app/assets/javascripts/admin/templates/flags-topics-index.hbs index 5ece61b6b72..9a37bc78fcd 100644 --- a/app/assets/javascripts/admin/templates/flags-topics-index.hbs +++ b/app/assets/javascripts/admin/templates/flags-topics-index.hbs @@ -1,7 +1,7 @@ {{plugin-outlet name="flagged-topics-before" noTags=true args=(hash flaggedTopics=flaggedTopics)}} {{#if flaggedTopics}} -{{i18n "admin.flags.flagged_topics.topic"}} | @@ -10,7 +10,7 @@{{i18n "admin.flags.flagged_topics.last_flagged"}} | - + {{#each flaggedTopics as |ft|}} | |||||
---|---|---|---|---|---|---|---|
{{replace-emoji ft.topic.fancy_title}} | -+ |
{{#each ft.flag_counts as |fc|}}
{{post-action-title fc.post_action_type_id fc.name_key}}
@@ -29,10 +29,10 @@
{{flagged-topic-users users=ft.users tagName=""}}
|
-
+ |
{{format-age ft.last_flag_at}}
|
-
+ |
{{#link-to
"adminFlags.topics.show"
ft.id
@@ -44,6 +44,7 @@
|
|
{{i18n 'admin.logs.screened_emails.description'}} - +
{{i18n 'admin.logs.screened_ips.description'}}
-{{i18n 'admin.logs.ip_address'}} | +{{i18n 'admin.logs.action'}} | +{{i18n 'admin.logs.match_count'}} | +{{i18n 'admin.logs.created_at'}} | +{{i18n 'admin.logs.last_match_at'}} | ++ + {{#each model as |item|}} - |
---|---|---|---|---|---|
{{#if item.editing}}
{{text-field value=item.ip_address autofocus="autofocus"}}
{{else}}
@@ -38,23 +38,24 @@
{{/if}}
{{/if}}
-
-
+ |
+
{{#if item.isBlocked}}
{{d-icon "ban"}}
{{else}}
{{d-icon "check"}}
{{/if}}
{{item.actionName}}
-
- {{item.match_count}}
-
+ |
+ {{i18n 'admin.logs.match_count'}} {{item.match_count}} |
+ {{i18n 'admin.logs.created_at'}} {{age-with-tooltip item.created_at}} |
+
+
{{#if item.last_match_at}}
- {{age-with-tooltip item.last_match_at}}
+ {{i18n 'admin.logs.last_match_at'}} {{age-with-tooltip item.last_match_at}}
{{/if}}
-
- {{age-with-tooltip item.created_at}}
-
+ |
+ {{#unless item.editing}} {{d-button action="destroy" actionParam=item icon="trash-o" class="btn-danger"}} {{d-button action="edit" actionParam=item icon="pencil"}} @@ -67,11 +68,11 @@ {{d-button action="save" actionParam=item label="admin.logs.save"}} {{i18n 'cancel'}} {{/unless}} - - - + | +
{{i18n 'admin.logs.staff_actions.staff_user'}} | +{{i18n 'admin.logs.action'}} | +{{i18n 'admin.logs.staff_actions.subject'}} | +{{i18n 'admin.logs.staff_actions.when'}} | +{{i18n 'admin.logs.staff_actions.details'}} | +{{i18n 'admin.logs.staff_actions.context'}} | + + + + {{#each model as |item|}} -
---|---|---|---|---|---|
+
{{#link-to 'adminUser' item.acting_user}}{{avatar item.acting_user imageSize="tiny"}}{{/link-to}}
- {{item.acting_user.username}}
-
-
-
+ |
+ + {{item.actionName}} + | +
+
+
{{#if item.target_user}}
{{#link-to 'adminUser' item.target_user}}{{avatar item.target_user imageSize="tiny"}}{{/link-to}}
- {{item.target_user.username}}
+ {{item.target_user.username}}
{{/if}}
{{#if item.subject}}
- {{item.subject}}
+ {{item.subject}}
{{/if}}
-
- {{age-with-tooltip item.created_at}}
-
+
+ |
+ {{age-with-tooltip item.created_at}} | +
{{{item.formattedDetails}}}
{{#if item.useCustomModalForDetails}}
- {{i18n 'admin.logs.staff_actions.show'}}
+ {{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}}
{{/if}}
{{#if item.useModalForDetails}}
- {{i18n 'admin.logs.staff_actions.show'}}
+ {{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}}
{{/if}}
-
- {{item.context}}
-
-
+ |
+ {{item.context}} | +
{{i18n 'admin.permalink.url'}} | +{{i18n 'admin.permalink.topic_title'}} | +{{i18n 'admin.permalink.post_title'}} | +{{i18n 'admin.permalink.category_title'}} | +{{i18n 'admin.permalink.external_url'}} | ++ {{#each model as |pl|}} - |
---|---|---|---|---|---|
{{pl.url}} | +
{{#if pl.topic_id}}
{{pl.topic_title}}
{{/if}}
-
-
+ |
+
{{#if pl.post_id}}
#{{pl.post_number}} {{pl.post_topic_title}}
{{/if}}
-
-
+ |
+
{{#if pl.category_id}}
{{pl.category_name}}
{{/if}}
-
-
+ |
+
{{#if pl.external_url}}
{{pl.external_url}}
{{/if}}
-
-
+ |
+ {{d-button action="destroy" actionParam=pl icon="trash-o" class="btn-danger"}} - - - + | +
@@ -32,15 +25,17 @@ {{/if}} - | + | {{#if plugin.url}} {{plugin.name}} {{else}} {{plugin.name}} {{/if}} | -{{plugin.version}} | + {{i18n "admin.plugins.version"}}
+{{plugin.version}} |
+ {{i18n "admin.plugins.enabled"}}
{{#if plugin.enabled_setting}}
{{#if plugin.enabled}}
{{i18n "admin.plugins.is_enabled"}}
@@ -51,7 +46,7 @@
{{i18n "admin.plugins.is_enabled"}}
{{/if}}
|
- + |
{{#if currentUser.admin}}
{{#if plugin.enabled_setting}}
{{d-button action="showSettings" actionParam=plugin icon="gear" label="admin.plugins.change_settings_short"}}
diff --git a/app/assets/javascripts/admin/templates/plugins.hbs b/app/assets/javascripts/admin/templates/plugins.hbs
index ac1ca1a83ce..d37e8bcaa5c 100644
--- a/app/assets/javascripts/admin/templates/plugins.hbs
+++ b/app/assets/javascripts/admin/templates/plugins.hbs
@@ -1,3 +1,18 @@
+
+
+
+
+ {{d-button action="toggleMenu" class="menu-toggle" icon="bars"}}
+
+ {{#if currentUser.admin}}
+ {{d-button label="admin.plugins.change_settings"
+ icon="gear"
+ class='settings-button'
+ action="showSettings"}}
+ {{/if}}
+
+
+
+
{{outlet}}
+
+
diff --git a/app/assets/javascripts/admin/templates/search-logs-index.hbs b/app/assets/javascripts/admin/templates/search-logs-index.hbs
index 257155b4b5a..450086964d1 100644
--- a/app/assets/javascripts/admin/templates/search-logs-index.hbs
+++ b/app/assets/javascripts/admin/templates/search-logs-index.hbs
@@ -1,31 +1,31 @@
-+
{{period-chooser period=period}}
{{combo-box content=searchTypeOptions value=searchType class='search-logs-filter'}}
-
-
{{#conditional-loading-spinner condition=loading}}
{{#if model.length}}
- +
-
-
-
+ {{i18n 'admin.logs.search_logs.term'}}
- {{i18n 'admin.logs.search_logs.searches'}}
- {{i18n 'admin.logs.search_logs.click_through'}}
- {{i18n 'admin.logs.search_logs.unique'}}
-
+
+
+ {{d-button action="toggleMenu" class="menu-toggle" icon="bars"}}
+ {{text-field value=filter placeholderKey="type_to_filter" class="no-blur"}}
+ {{d-button action="clearFilter" label="admin.site_settings.clear_filter"}}
+
- {{d-button action="toggleMenu" class="menu-toggle" icon="bars"}}
- {{text-field value=filter placeholderKey="type_to_filter" class="no-blur"}}
- {{d-button action="clearFilter" label="admin.site_settings.clear_filter"}}
-
diff --git a/app/assets/javascripts/admin/templates/users-list-show.hbs b/app/assets/javascripts/admin/templates/users-list-show.hbs
index 7401077ee63..b54d8214da7 100644
--- a/app/assets/javascripts/admin/templates/users-list-show.hbs
+++ b/app/assets/javascripts/admin/templates/users-list-show.hbs
@@ -7,24 +7,22 @@
{{title}}+ {{#unless showEmails}} + + {{/unless}}
{{text-field value=listFilter placeholder=searchHint}}
- {{#unless showEmails}}
-
{{#conditional-loading-spinner condition=refreshing}}
{{#if model}}
-
-
-
- {{/unless}}
+
|
---|