debian-mirror-gitlab/app/views/shared/tokens/_scopes_list.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
276 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- token = local_assigns.fetch(:token)
- return unless token.scopes.present?
%tr
%td
2019-09-30 21:07:59 +05:30
= _('Scopes')
2017-08-17 22:00:37 +05:30
%td
2020-06-23 00:09:42 +05:30
%ul.scopes-list.gl-mb-0
2017-08-17 22:00:37 +05:30
- token.scopes.each do |scope|
%li
2020-01-01 13:55:28 +05:30
%span.bold= scope
2017-08-17 22:00:37 +05:30
= "(#{t(scope, scope: [:doorkeeper, :scopes])})"