Commit 0aed79b5 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'improve-archived-projects' into 'master'

Proper message for archived projects at MR#show page

Fixes #940
parents 12778fbe 5fbf15cb
- unless @allowed_to_merge - unless @allowed_to_merge
.bs-callout - if @project.archived?
%strong You don't have permission to merge this MR .bs-callout.bs-callout-warning
%strong Archived projects cannot be committed to!
- else
.bs-callout
%strong You don't have permission to merge this MR
- if @show_merge_controls - if @show_merge_controls
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
.col-md-3.project-side.hidden-sm .col-md-3.project-side.hidden-sm
.clearfix .clearfix
- if @project.archived? - if @project.archived?
.alert .alert.alert-warning
%h5 %h4
%i.icon-warning-sign %i.icon-warning-sign
Archived project! Archived project!
%p Repository is read-only %p Repository is read-only
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment