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:
authorPhil Hughes <me@iamphill.com>2016-07-29 17:03:58 +0300
committerPhil Hughes <me@iamphill.com>2016-07-29 17:03:58 +0300
commit9878356dbcf7100786c29a5effd0d9cd0f30434f (patch)
tree2614b0775a483598a13e309733d7d50bfbcefa14 /app/views/discussions/_jump_to_next.html.haml
parent6f94f62f721d4300e538acbc75b0c7e422a6fdbd (diff)
Added JS spec tests for CommentsStore
Updated other tests
Diffstat (limited to 'app/views/discussions/_jump_to_next.html.haml')
-rw-r--r--app/views/discussions/_jump_to_next.html.haml17
1 files changed, 9 insertions, 8 deletions
diff --git a/app/views/discussions/_jump_to_next.html.haml b/app/views/discussions/_jump_to_next.html.haml
index 571e43b7594..3b796627872 100644
--- a/app/views/discussions/_jump_to_next.html.haml
+++ b/app/views/discussions/_jump_to_next.html.haml
@@ -1,9 +1,10 @@
- discussion = local_assigns.fetch(:discussion, nil)
-%jump-to-discussion{ "inline-template" => true, ":discussion-id" => "'#{discussion.try(:id)}'" }
- .btn-group{ role: "group",
- "v-show" => "!allResolved" }
- %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" } }
- = custom_icon("next_discussion")
+- if current_user
+ %jump-to-discussion{ "inline-template" => true, ":discussion-id" => "'#{discussion.try(:id)}'" }
+ .btn-group{ role: "group",
+ "v-show" => "!allResolved" }
+ %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" } }
+ = custom_icon("next_discussion")