Make it more obvious when the user isn't currently viewing the latest mr version
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
d64c15c5c3
commit
70fe671c29
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@
|
||||||
#{number_with_delimiter(merge_request_diff.commits.count)} #{'commit'.pluralize(merge_request_diff.commits.count)},
|
#{number_with_delimiter(merge_request_diff.commits.count)} #{'commit'.pluralize(merge_request_diff.commits.count)},
|
||||||
= time_ago_with_tooltip(merge_request_diff.created_at)
|
= time_ago_with_tooltip(merge_request_diff.created_at)
|
||||||
|
|
||||||
|
- unless @merge_request_diff.latest?
|
||||||
|
%span.prepend-left-default
|
||||||
|
= icon('info-circle')
|
||||||
|
This version is not the latest one. Comments are disabled
|
||||||
.pull-right
|
.pull-right
|
||||||
%span.monospace
|
%span.monospace
|
||||||
#{@merge_request_diff.base_commit.short_id}..#{@merge_request_diff.head_commit.short_id}
|
#{@merge_request_diff.base_commit.short_id}..#{@merge_request_diff.head_commit.short_id}
|
||||||
|
|
Loading…
Reference in a new issue