Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
3befe6ec
Commit
3befe6ec
authored
Apr 07, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix show/hide discussion link
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
fefa10c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
app/views/projects/notes/_discussion.html.haml
app/views/projects/notes/_discussion.html.haml
+5
-16
No files found.
app/views/projects/notes/_discussion.html.haml
View file @
3befe6ec
-
note
=
discussion_notes
.
first
.discussion.js-
details-container.js-toggler-container.open
{
class:
note
.
discussion_id
}
.discussion.js-
toggle-container
{
class:
note
.
discussion_id
}
.discussion-header
.discussion-actions
=
link_to
"javascript:;"
,
class:
"js-details-target turn-on js-toggler-target"
do
%i
.icon-eye-close
Hide discussion
=
link_to
"javascript:;"
,
class:
"js-details-target turn-off js-toggler-target"
do
%i
.icon-eye-open
Show discussion
=
link_to
"#"
,
class:
"js-toggle-button"
do
%i
.icon-chevron-up
Show/hide discussion
=
image_tag
avatar_icon
(
note
.
author_email
),
class:
"avatar s32"
%div
=
link_to_member
(
@project
,
note
.
author
,
avatar:
false
)
...
...
@@ -33,7 +30,7 @@
=
link_to_member
(
@project
,
last_note
.
author
,
avatar:
false
)
%span
.discussion-last-update
#{
time_ago_with_tooltip
(
last_note
.
updated_at
,
'bottom'
,
'discussion_updated_ago'
)
}
.discussion-body
.discussion-body
.js-toggle-content
-
if
note
.
for_diff_line?
-
if
note
.
active?
=
render
"projects/notes/discussion_diff"
,
discussion_notes:
discussion_notes
,
note:
note
...
...
@@ -47,11 +44,3 @@
.notes
{
rel:
discussion_notes
.
first
.
discussion_id
}
=
render
discussion_notes
=
render
"projects/notes/discussion_reply_button"
,
note:
discussion_notes
.
first
-# will be shown when the other one is hidden
.discussion-hidden.content.hide
.note
%em
Hidden discussion.
=
link_to
"javascript:;"
,
class:
"js-details-target js-toggler-target"
do
%i
.icon-eye-open
Show
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment