990ae6b8e5
- The list of scopes that's displayed while creating a personal access token is identical to the list that's displayed while creating an OAuth application. Extract these into a partial. - The list of scopes that's displayed while in the show page for an OAuth token in the profile settings and admin settings are identical. Extract these into a partial.
5 lines
259 B
Text
5 lines
259 B
Text
- @scopes.each do |scope|
|
|
%fieldset
|
|
= check_box_tag "#{prefix}[scopes][]", scope, token.scopes.include?(scope), id: "#{prefix}_scopes_#{scope}"
|
|
= label_tag "#{prefix}_scopes_#{scope}", scope
|
|
%span= "(#{t(scope, scope: [:doorkeeper, :scopes])})"
|