summaryrefslogtreecommitdiff
path: root/app/views/shared/tokens/_scopes_list.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/tokens/_scopes_list.html.haml')
-rw-r--r--app/views/shared/tokens/_scopes_list.html.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/shared/tokens/_scopes_list.html.haml b/app/views/shared/tokens/_scopes_list.html.haml
new file mode 100644
index 00000000000..f99e905e95c
--- /dev/null
+++ b/app/views/shared/tokens/_scopes_list.html.haml
@@ -0,0 +1,13 @@
+- token = local_assigns.fetch(:token)
+
+- return unless token.scopes.present?
+
+%tr
+ %td
+ Scopes
+ %td
+ %ul.scopes-list.append-bottom-0
+ - token.scopes.each do |scope|
+ %li
+ %span.scope-name= scope
+ = "(#{t(scope, scope: [:doorkeeper, :scopes])})"