- merge_request_diffs = @merge_request.merge_request_diffs.select_without_diff

- if merge_request_diffs.size > 1
  .mr-version-switch
    Version:
    %span.dropdown.inline
      %a.btn-link.dropdown-toggle{ data: {toggle: :dropdown} }
        %strong.monospace<
          - if @merge_request_diff.latest?
            #{"latest"}
          - else
            #{@merge_request_diff.head_commit.short_id}
        %span.caret
      %ul.dropdown-menu.dropdown-menu-selectable
        - merge_request_diffs.each do |merge_request_diff|
          %li
            = link_to diffs_namespace_project_merge_request_path(@project.namespace, @project, @merge_request, diff_id: merge_request_diff.id), class: ('is-active' if merge_request_diff == @merge_request_diff) do
              %strong.monospace
                #{merge_request_diff.head_commit.short_id}
              %br
              %small
                #{number_with_delimiter(merge_request_diff.commits.count)} #{'commit'.pluralize(merge_request_diff.commits.count)},
                = time_ago_with_tooltip(merge_request_diff.created_at)

    .pull-right
      %span.monospace
        #{@merge_request_diff.base_commit.short_id}..#{@merge_request_diff.head_commit.short_id}

- merge_request_diffs = @merge_request.merge_request_diffs.select_without_diff

- if merge_request_diffs.size > 1
  .mr-version-switch
    Version:
    %span.dropdown.inline
      %a.btn-link.dropdown-toggle{ data: {toggle: :dropdown} }
        %strong.monospace<
          - if @merge_request_diff.latest?
            #{"latest"}
          - else
            #{@merge_request_diff.head_commit.short_id}
        %span.caret
      %ul.dropdown-menu.dropdown-menu-selectable
        - merge_request_diffs.each do |merge_request_diff|
          %li
            = link_to diffs_namespace_project_merge_request_path(@project.namespace, @project, @merge_request, diff_id: merge_request_diff.id), class: ('is-active' if merge_request_diff == @merge_request_diff) do
              %strong.monospace
                #{merge_request_diff.head_commit.short_id}
              %br
              %small
                #{number_with_delimiter(merge_request_diff.commits.count)} #{'commit'.pluralize(merge_request_diff.commits.count)},
                = 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
      %span.monospace
        #{@merge_request_diff.base_commit.short_id}..#{@merge_request_diff.head_commit.short_id}

Make it more obvious when the user isn't currently viewing the latest mr version
Make it more obvious when the user isn't currently viewing the latest mr version

Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
