diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-07 13:08:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 13:08:27 +0200 |
commit | 10459241a89b1ebf57986ee3bb81361475d19212 (patch) | |
tree | 1404ccf4bffcf332bf46ddcb58650afc9d3eea40 /app/views/oauth | |
parent | 786e6f94b986dbf98eae9d79bc75e147fcefc8ec (diff) | |
parent | 0adee18d73daef653379d7635c8bc972c563bcd4 (diff) |
Merge pull request #1145 from tootsuite/feature-customized-default-locale
Allow setting of default language through config
Diffstat (limited to 'app/views/oauth')
-rw-r--r-- | app/views/oauth/authorized_applications/index.html.haml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/views/oauth/authorized_applications/index.html.haml b/app/views/oauth/authorized_applications/index.html.haml new file mode 100644 index 000000000..d4719881c --- /dev/null +++ b/app/views/oauth/authorized_applications/index.html.haml @@ -0,0 +1,23 @@ +- content_for :page_title do + = t('doorkeeper.authorized_applications.index.title') + +%table.table + %thead + %tr + %th= t('doorkeeper.authorized_applications.index.application') + %th= t('doorkeeper.authorized_applications.index.scopes') + %th= t('doorkeeper.authorized_applications.index.created_at') + %th + %tbody + - @applications.each do |application| + %tr + %td + - if application.website.blank? + = application.name + - else + = link_to application.name, application.website + %th= application.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.join('<br />').html_safe + %td= l application.created_at + %td + - unless application.superapp? + = table_link_to 'times', t('doorkeeper.authorized_applications.buttons.revoke'), oauth_authorized_application_path(application), method: :delete, data: { confirm: t('doorkeeper.authorized_applications.confirmations.revoke') } |