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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
0ec2ee71
Commit
0ec2ee71
authored
May 12, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `Event#note_project_snippet?` to `project_snippet_note?`
parent
b2fc0a51
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/helpers/events_helper.rb
app/helpers/events_helper.rb
+2
-2
app/models/event.rb
app/models/event.rb
+1
-1
No files found.
app/helpers/events_helper.rb
View file @
0ec2ee71
...
@@ -93,7 +93,7 @@ module EventsHelper
...
@@ -93,7 +93,7 @@ module EventsHelper
namespace_project_commit_path
(
event
.
project
.
namespace
,
event
.
project
,
namespace_project_commit_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
note_commit_id
,
event
.
note_commit_id
,
anchor:
dom_id
(
event
.
target
))
anchor:
dom_id
(
event
.
target
))
elsif
event
.
note_project_snippet
?
elsif
event
.
project_snippet_note
?
namespace_project_snippet_path
(
event
.
project
.
namespace
,
namespace_project_snippet_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
note_target
)
event
.
project
,
event
.
note_target
)
else
else
...
@@ -156,7 +156,7 @@ module EventsHelper
...
@@ -156,7 +156,7 @@ module EventsHelper
)
do
)
do
"
#{
event
.
note_target_type
}
#{
event
.
note_short_commit_id
}
"
"
#{
event
.
note_target_type
}
#{
event
.
note_short_commit_id
}
"
end
end
elsif
event
.
note_project_snippet
?
elsif
event
.
project_snippet_note
?
link_to
(
namespace_project_snippet_path
(
event
.
project
.
namespace
,
link_to
(
namespace_project_snippet_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
project
,
event
.
note_target
),
title:
event
.
project
.
name
)
do
event
.
note_target
),
title:
event
.
project
.
name
)
do
...
...
app/models/event.rb
View file @
0ec2ee71
...
@@ -286,7 +286,7 @@ class Event < ActiveRecord::Base
...
@@ -286,7 +286,7 @@ class Event < ActiveRecord::Base
note?
&&
target
&&
target
.
for_issue?
note?
&&
target
&&
target
.
for_issue?
end
end
def
note_project_snippet
?
def
project_snippet_note
?
target
.
for_snippet?
target
.
for_snippet?
end
end
...
...
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