summaryrefslogtreecommitdiff
path: root/app/views/shared/tokens/_scopes_list.html.haml
blob: f99e905e95c7b261ca7adbcb4b7a93cf6b016cca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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])})"