diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-10-08 15:47:24 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-10-08 15:47:24 +0300 |
commit | ab68fd2206165117b94ce9619d8bfab3d805f206 (patch) | |
tree | 4a33fa7f25a5c9e5478cb12aca93d9c8850cdd5c /app/views/projects/edit.html.haml | |
parent | b485fdb5c1eb126d43b66a3c7fad45cd7961496d (diff) | |
download | gitlab-ce-ab68fd2206165117b94ce9619d8bfab3d805f206.tar.gz |
Restyle colorful panel boxes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/edit.html.haml')
-rw-r--r-- | app/views/projects/edit.html.haml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml index 160db904341..f48f4bb2953 100644 --- a/app/views/projects/edit.html.haml +++ b/app/views/projects/edit.html.haml @@ -88,14 +88,11 @@ .danger-settings - if can? current_user, :archive_project, @project - .panel.panel-default.panel.panel-warning - .panel-heading - - if @project.archived? + - if @project.archived? + .panel.panel-success + .panel-heading Unarchive project - - else - Archive project - .panel-body - - if @project.archived? + .panel-body %p Unarchiving the project will mark its repository as active. %br @@ -105,7 +102,11 @@ = link_to 'Unarchive', unarchive_project_path(@project), data: { confirm: "Are you sure that you want to unarchive this project?\nWhen this project is unarchived it is active and can be committed to again." }, method: :post, class: "btn btn-success" - - else + - else + .panel.panel-warning + .panel-heading + Archive project + .panel-body %p Archiving the project will mark its repository as read-only. %br |