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
Tatuya Kamada
gitlab-ce
Commits
96e8c6b7
Commit
96e8c6b7
authored
11 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dashboard lost if comment on commit
parent
1405d28c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
app/helpers/events_helper.rb
app/helpers/events_helper.rb
+8
-0
app/views/events/event/_note.html.haml
app/views/events/event/_note.html.haml
+1
-1
No files found.
app/helpers/events_helper.rb
View file @
96e8c6b7
...
@@ -83,4 +83,12 @@ module EventsHelper
...
@@ -83,4 +83,12 @@ module EventsHelper
render
"events/event_push"
,
event:
event
render
"events/event_push"
,
event:
event
end
end
end
end
def
event_note_target_path
(
event
)
if
event
.
note?
&&
event
.
note_commit?
project_commit_path
(
event
.
project
,
event
.
note_target
)
else
url_for
([
event
.
project
,
event
.
note_target
])
end
end
end
end
This diff is collapsed.
Click to expand it.
app/views/events/event/_note.html.haml
View file @
96e8c6b7
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
%strong
%strong
#{
event
.
note_target_type
}
##{truncate event.note_target_id}
#{
event
.
note_target_type
}
##{truncate event.note_target_id}
-
else
-
else
=
link_to
[
event
.
project
,
event
.
note_target
]
do
=
link_to
event_note_target_path
(
event
)
do
%strong
%strong
#{
event
.
note_target_type
}
##{truncate event.note_target_id}
#{
event
.
note_target_type
}
##{truncate event.note_target_id}
...
...
This diff is collapsed.
Click to expand it.
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