summaryrefslogtreecommitdiff
path: root/app/views/projects/merge_requests/diffs/_not_all_comments_displayed.html.haml
blob: 8d7138747fb36d531addf531887f4624f822049c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- if @commit || @start_version || (@merge_request_diff && !@merge_request_diff.latest?)
  .mr-version-controls
    .content-block.comments-disabled-notif.clearfix
      = icon('info-circle')
      = succeed '.' do
        - if @commit
          Only comments from the following commit are shown below
        - else
          Not all comments are displayed because you're
          - if @start_version
            comparing two versions of the diff
          - else
            viewing an old version of the diff
      .float-right
        = link_to diffs_project_merge_request_path(@merge_request.project, @merge_request), class: 'btn btn-sm' do
          Show latest version
          = "of the diff" if @commit