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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-11-24 11:52:03 +0300
committerTimothy Andrew <mail@timothyandrew.net>2016-12-16 13:59:31 +0300
commit990ae6b8e5f2797a6c168f9c16a725a159570058 (patch)
tree5dd191819416b4486669623077ff2d971375b6a9 /app/views/admin/applications
parent4d6da770de94f4bf140507cdf43461b67269ce28 (diff)
Move the scopes form/list view into a partial.
- 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.
Diffstat (limited to 'app/views/admin/applications')
-rw-r--r--app/views/admin/applications/show.html.haml11
1 files changed, 1 insertions, 10 deletions
diff --git a/app/views/admin/applications/show.html.haml b/app/views/admin/applications/show.html.haml
index 3418dc96496..6e7b7003ac5 100644
--- a/app/views/admin/applications/show.html.haml
+++ b/app/views/admin/applications/show.html.haml
@@ -23,16 +23,7 @@
%div
%span.monospace= uri
- - if @application.scopes.present?
- %tr
- %td
- Scopes
- %td
- %ul.scopes-list.append-bottom-0
- - @application.scopes.each do |scope|
- %li
- %span.scope-name= scope
- = "(#{t(scope, scope: [:doorkeeper, :scopes])})"
+ = render partial: "shared/tokens/scopes_list"
.form-actions
= link_to 'Edit', edit_admin_application_path(@application), class: 'btn btn-primary wide pull-left'