diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-11-23 13:04:20 -0600 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-11-23 13:04:20 -0600 |
commit | b7e29af0b51bf39ae3c761b349494719cd860ebe (patch) | |
tree | 3cd73f2c8d7fcf4b5172c676455322db5db27039 /app | |
parent | 7100b76923fc88667b1bd22b34f0a43323fe84b0 (diff) | |
download | gitlab-ce-b7e29af0b51bf39ae3c761b349494719cd860ebe.tar.gz |
Fix `LFS enabled` select box.
It was not displaying the proper value and had an out of place look to it.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/edit.html.haml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml index 0aa8801c2d8..3a5af2723c6 100644 --- a/app/views/projects/edit.html.haml +++ b/app/views/projects/edit.html.haml @@ -92,14 +92,15 @@ = project_feature_access_select(:wiki_access_level) - if Gitlab.config.lfs.enabled && current_user.admin? - .checkbox - = f.label :lfs_enabled do - = f.check_box :lfs_enabled - %strong LFS - %br - %span.descr + .row + .col-md-9 + = f.label :lfs_enabled, 'LFS', class: 'label-light' + %span.help-block Git Large File Storage = link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs') + .col-md-3 + = f.select :lfs_enabled, [%w(Enabled true), %w(Disabled false)], {}, selected: @project.lfs_enabled?, class: 'pull-right form-control', data: { field: 'lfs_enabled' } + - if Gitlab.config.registry.enabled .form-group.js-container-registry{ style: ("display: none;" if @project.project_feature.send(:repository_access_level) == 0) } |