diff options
author | Mike Greiling <mgreiling@gitlab.com> | 2017-06-07 11:11:44 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-07 11:11:44 +0300 |
commit | 4b1d956e1308f6c0a9dc03a2693f52eb1d782fd7 (patch) | |
tree | f37077f9e1486c07532c79bfbe382966648ef096 /app/views/projects/protected_tags | |
parent | 5f6926f63249b3bcc6b94d27e038213aa55c9f06 (diff) |
Resolve "Simplified Repository Settings page"
Diffstat (limited to 'app/views/projects/protected_tags')
-rw-r--r-- | app/views/projects/protected_tags/_index.html.haml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/app/views/projects/protected_tags/_index.html.haml b/app/views/projects/protected_tags/_index.html.haml index 663cbd7cd64..976e1d7e93f 100644 --- a/app/views/projects/protected_tags/_index.html.haml +++ b/app/views/projects/protected_tags/_index.html.haml @@ -1,18 +1,25 @@ +- expanded = Rails.env.test? - content_for :page_specific_javascripts do = page_specific_javascript_bundle_tag('protected_tags') -.row.prepend-top-default.append-bottom-default - .col-lg-3 - %h4.prepend-top-0 +%section.settings + .settings-header + %h4 Protected Tags - %p.prepend-top-20 + %button.btn.js-settings-toggle + = expanded ? 'Close' : 'Expand' + %p + Limit access to creating and updating tags. + .settings-content.no-animate{ class: ('expanded' if expanded) } + %p By default, protected tags are designed to: %ul %li Prevent tag creation by everybody except Masters %li Prevent <strong>anyone</strong> from updating the tag %li Prevent <strong>anyone</strong> from deleting the tag - %p.append-bottom-0 Read more about #{link_to "protected tags", help_page_path("user/project/protected_tags"), class: "underlined-link"}. - .col-lg-9 + + %p Read more about #{link_to "protected tags", help_page_path("user/project/protected_tags"), class: "underlined-link"}. + - if can? current_user, :admin_project, @project = render 'projects/protected_tags/create_protected_tag' |