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
b27bd2b1
Commit
b27bd2b1
authored
Dec 26, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add anchors to comments from event feed
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
9a247213
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/helpers/events_helper.rb
app/helpers/events_helper.rb
+2
-2
No files found.
app/helpers/events_helper.rb
View file @
b27bd2b1
...
...
@@ -90,14 +90,14 @@ module EventsHelper
if
event
.
note?
&&
event
.
note_commit?
project_commit_path
(
event
.
project
,
event
.
note_target
)
else
url_for
([
event
.
project
,
event
.
note_target
]
)
polymorphic_path
([
event
.
project
,
event
.
note_target
],
anchor:
dom_id
(
event
.
target
)
)
end
end
def
event_note_title_html
(
event
)
if
event
.
note_target
if
event
.
note_commit?
link_to
project_commit_path
(
event
.
project
,
event
.
note_commit_id
),
class:
"commit_short_id"
do
link_to
project_commit_path
(
event
.
project
,
event
.
note_commit_id
,
anchor:
dom_id
(
event
.
target
)
),
class:
"commit_short_id"
do
"
#{
event
.
note_target_type
}
#{
event
.
note_short_commit_id
}
"
end
elsif
event
.
note_project_snippet?
...
...
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