diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-09-05 13:14:49 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-09-15 12:27:32 -0500 |
commit | c788c66a85ba4682f5e27a12b5fa73489af23b5f (patch) | |
tree | 4ce769eeaa74868c19522db2ec9aee08d5cb8347 /app/views/projects/edit.html.haml | |
parent | a8b0d501017ed8ab8656e8cabe5c29ed7e3cbe89 (diff) | |
download | gitlab-ce-c788c66a85ba4682f5e27a12b5fa73489af23b5f.tar.gz |
Improved helper methods, better flow for `project.lfs_enabled?`, and UI fixes.
Diffstat (limited to 'app/views/projects/edit.html.haml')
-rw-r--r-- | app/views/projects/edit.html.haml | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml index f6d751a343e..a04d53e02bf 100644 --- a/app/views/projects/edit.html.haml +++ b/app/views/projects/edit.html.haml @@ -84,15 +84,14 @@ = project_feature_access_select(:snippets_access_level) - if Gitlab.config.lfs.enabled && current_user.admin? - .form-group - .checkbox - = f.label :lfs_enabled do - = f.check_box :lfs_enabled, checked: @project.lfs_enabled? - %strong LFS - %br - %span.descr - Git Large File Storage - = link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs') + .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' - if Gitlab.config.registry.enabled .form-group |