diff --git a/app/assets/javascripts/admin/addon/components/admin-config-areas/api-keys-list.hbs b/app/assets/javascripts/admin/addon/components/admin-config-areas/api-keys-list.hbs deleted file mode 100644 index 3ac4ac8d9ba..00000000000 --- a/app/assets/javascripts/admin/addon/components/admin-config-areas/api-keys-list.hbs +++ /dev/null @@ -1,25 +0,0 @@ -
{{i18n "admin.api.key"}} | -{{i18n "admin.api.description"}} | -{{i18n "admin.api.user"}} | -{{i18n "admin.api.created"}} | -{{i18n "admin.api.last_used"}} | - - - {{#each @apiKeys as |apiKey|}} -
---|
{{i18n "admin.api.scopes.description"}}
-- | - | {{i18n "admin.api.scopes.allowed_urls"}} | -{{i18n - "admin.api.scopes.optional_allowed_parameters" - }} | -
{{scopeName}} | -- | - | - |
- |
-
- {{collectionData.name}}
- |
-
- |
-
- |
-
{{i18n "admin.api.scopes.resource"}} | -{{i18n "admin.api.scopes.action"}} | -{{i18n "admin.api.scopes.allowed_urls"}} | -{{i18n "admin.api.scopes.allowed_parameters"}} | -
{{scope.resource}} | -
- {{scope.action}}
- |
-
- |
-
- {{#each scope.parameters as |p|}}
-
- {{p}}:
- {{#if (get scope.allowed_parameters p)}}
- {{get scope.allowed_parameters p}}
- {{else}}
- {{i18n "admin.api.scopes.any_parameter"}}
- {{/if}}
-
- {{/each}}
- |
-
{{i18n "admin.api.key"}} | +{{i18n "admin.api.description"}} | +{{i18n "admin.api.user"}} | +{{i18n "admin.api.created"}} | +{{i18n "admin.api.last_used"}} | +{{i18n "admin.site_settings.table_column_heading.status"}} | ++ + + {{#each this.model as |k|}} + |
---|---|---|---|---|---|---|
+ {{k.truncatedKey}} + | +
+ {{i18n
+ "admin.api.description"
+ }}
+ {{k.shortDescription}}
+ |
+
+ {{i18n
+ "admin.api.user"
+ }}
+ {{#if k.user}}
+ |
+
+ {{i18n
+ "admin.api.created"
+ }}
+ {{format-date k.created_at}}
+ |
+
+ {{i18n
+ "admin.api.last_used"
+ }}
+ {{#if k.last_used_at}}
+ {{format-date k.last_used_at}}
+ {{else}}
+ {{i18n "admin.api.never_used"}}
+ {{/if}}
+ |
+
+ {{i18n
+ "admin.site_settings.table_column_heading.status"
+ }}
+ {{#if k.revoked_at}}
+
+
+ {{/if}}
+
+
+
+ {{i18n "admin.api.revoked"}}
+
+ |
+
+ |
+
{{i18n "admin.api.none"}}
+{{/if}} \ No newline at end of file diff --git a/app/assets/javascripts/admin/addon/templates/api-keys-new.hbs b/app/assets/javascripts/admin/addon/templates/api-keys-new.hbs index d910ce0ca18..f5176a87d01 100644 --- a/app/assets/javascripts/admin/addon/templates/api-keys-new.hbs +++ b/app/assets/javascripts/admin/addon/templates/api-keys-new.hbs @@ -1 +1,132 @@ -{{i18n "admin.api.scopes.descriptions.global.read"}}
+ {{else if (eq this.scopeMode "global")}} +{{i18n "admin.api.scopes.global_description"}}
+ {{/if}} +{{i18n "admin.api.scopes.description"}}
++ | + | {{i18n "admin.api.scopes.allowed_urls"}} | +{{i18n "admin.api.scopes.optional_allowed_parameters"}} | +
{{resource}} | ++ | + | + |
+ |
+ {{act.name}}
+ |
+
+ |
+ + {{#each act.params as |p|}} + + {{/each}} + | +
{{i18n "admin.api.scopes.resource"}} | +{{i18n "admin.api.scopes.action"}} | +{{i18n "admin.api.scopes.allowed_urls"}} | +{{i18n "admin.api.scopes.allowed_parameters"}} | +
{{scope.resource}} | +
+ {{scope.action}}
+ |
+
+ |
+
+ {{#each scope.parameters as |p|}}
+
+ {{p}}:
+ {{#if (get scope.allowed_parameters p)}}
+ {{get scope.allowed_parameters p}}
+ {{else}}
+ {{i18n "admin.api.scopes.any_parameter"}}
+ {{/if}}
+
+ {{/each}}
+ |
+