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:
Dmitriy Zaporozhets 2016-08-25 11:16:03 +03:00
parent d64c15c5c3
commit 70fe671c29
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -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}