_not_all_comments_displayed.html.haml 848 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- if @commit || @start_version || (@merge_request_diff && !@merge_request_diff.latest?)
  .mr-version-controls
    .content-block.comments-disabled-notif
      = icon('info-circle')
      Not all comments are displayed because you're
      = succeed '.' do
        - if @commit
          viewing only the changes in commit

          = link_to @commit.short_id, diffs_namespace_project_merge_request_path(@project.namespace, @project, @merge_request, commit_id: @commit.id), class: "commit-sha"
        - elsif @start_version
          comparing two versions of the diff
        - else
          viewing an old version of the diff

16
      .text-right
17 18 19
        = link_to diffs_namespace_project_merge_request_path(@project.namespace, @project, @merge_request), class: 'btn btn-sm' do
          Show latest version
          = "of the diff" if @commit