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:
authorDouwe Maan <douwe@selenight.nl>2016-07-29 04:14:00 +0300
committerDouwe Maan <douwe@selenight.nl>2016-07-29 04:28:56 +0300
commit6d9715d8777265737c076abe06362d2a8e9e498d (patch)
treead55282043bd84bfbe8b4419568289b895e82d22 /app/views/discussions/_diff_discussion.html.haml
parentce1843b7dea3b63cfced7800612098a766c68e13 (diff)
Show existing discussion when adding new comment on line with a hidden resolved discussion
Diffstat (limited to 'app/views/discussions/_diff_discussion.html.haml')
-rw-r--r--app/views/discussions/_diff_discussion.html.haml15
1 files changed, 4 insertions, 11 deletions
diff --git a/app/views/discussions/_diff_discussion.html.haml b/app/views/discussions/_diff_discussion.html.haml
index 5f49d44b062..c280b5b53b7 100644
--- a/app/views/discussions/_diff_discussion.html.haml
+++ b/app/views/discussions/_diff_discussion.html.haml
@@ -1,13 +1,6 @@
-%tr.notes_holder
+- expanded = local_assigns.fetch(:expanded, discussion.expanded?)
+%tr.notes_holder{class: ('hide' unless expanded)}
%td.notes_line{ colspan: 2 }
%td.notes_content
- %ul.notes{ data: { discussion_id: discussion.id } }
- = render partial: "projects/notes/note", collection: discussion.notes, as: :note
-
- .discussion-reply-holder
- .discussion-with-resolve-btn{ role: "group" }
- .btn-group{ role: "group" }
- = link_to_reply_discussion(discussion)
- .btn-group{ role: "group" }
- = render "discussions/resolve_all", discussion: discussion
- = render "discussions/jump_to_next", discussion: discussion
+ .content
+ = render "discussions/notes", discussion: discussion