Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2016-09-14 14:55:07 +0300
committerBryce Johnson <bryce@gitlab.com>2016-09-14 20:08:29 +0300
commit8ecaa256f80342a6424f5e4e0c46bcc729f876e6 (patch)
treec51dbaab3bb0d5d6d7f4804430f2703a1e50dffc /app/views/discussions/_jump_to_next.html.haml
parentbf6f9f34e9052eca8bce238ae91e7d7172b216eb (diff)
Style merge request diff dropdowns & disable comments.
Diffstat (limited to 'app/views/discussions/_jump_to_next.html.haml')
-rw-r--r--app/views/discussions/_jump_to_next.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/discussions/_jump_to_next.html.haml b/app/views/discussions/_jump_to_next.html.haml
index 69bd416c4de..1e41b54be38 100644
--- a/app/views/discussions/_jump_to_next.html.haml
+++ b/app/views/discussions/_jump_to_next.html.haml
@@ -1,3 +1,5 @@
+-if @merge_request_diff
+ - comments_disabled = @merge_request_diff.latest? && !!@start_sha
- discussion = local_assigns.fetch(:discussion, nil)
- if current_user
%jump-to-discussion{ "inline-template" => true, ":discussion-id" => "'#{discussion.try(:id)}'" }
@@ -5,5 +7,6 @@
%button.btn.btn-default.discussion-next-btn.has-tooltip{ "@click" => "jumpToNextUnresolvedDiscussion",
title: "Jump to next unresolved discussion",
"aria-label" => "Jump to next unresolved discussion",
- data: { container: "body" } }
+ data: { container: "body" },
+ disabled: comments_disabled }
= custom_icon("next_discussion")