Commit 5fbf15cb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add proper explanation to MR in archived projects

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent a87f0376
- unless @allowed_to_merge
.bs-callout
%strong You don't have permission to merge this MR
- if @project.archived?
.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
......
......@@ -9,8 +9,8 @@
.col-md-3.project-side.hidden-sm
.clearfix
- if @project.archived?
.alert
%h5
.alert.alert-warning
%h4
%i.icon-warning-sign
Archived project!
%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