debian-mirror-gitlab/app/views/shared/tokens/_scopes_list.html.haml
2017-08-17 22:00:37 +05:30

13 lines
283 B
Text

- 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])})"