Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_scopes_form.html.haml « tokens « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a5d3e1c8de04b887f2bd6b25441547a8f519bfbc (plain)
1
2
3
4
5
6
7
8
9
- scopes = local_assigns.fetch(:scopes)
- prefix = local_assigns.fetch(:prefix)
- token = local_assigns.fetch(:token)

- scopes.each do |scope|
  %fieldset.form-group.form-check
    = check_box_tag "#{prefix}[scopes][]", scope, token.scopes.include?(scope), id: "#{prefix}_scopes_#{scope}", class: "form-check-input qa-#{scope}-radio"
    = label_tag ("#{prefix}_scopes_#{scope}"), scope, class: 'label-bold form-check-label'
    .text-secondary= t scope, scope: [:doorkeeper, :scope_desc]