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
af29ed37
Commit
af29ed37
authored
Mar 11, 2016
by
Josh Frye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Escape!
parent
52c934a8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
app/helpers/events_helper.rb
app/helpers/events_helper.rb
+4
-4
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
app/views/events/_event_last_push.html.haml
app/views/events/_event_last_push.html.haml
+1
-1
app/views/events/event/_common.html.haml
app/views/events/event/_common.html.haml
+1
-1
app/views/events/event/_push.html.haml
app/views/events/event/_push.html.haml
+1
-1
No files found.
app/helpers/events_helper.rb
View file @
af29ed37
...
...
@@ -3,7 +3,7 @@ module EventsHelper
author
=
event
.
author
if
author
link_to
author
.
name
,
user_path
(
author
.
username
),
title:
author
.
name
link_to
author
.
name
,
user_path
(
author
.
username
),
title:
h
(
author
.
name
)
else
event
.
author_name
end
...
...
@@ -159,7 +159,7 @@ module EventsHelper
link_to
(
namespace_project_commit_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
note_commit_id
,
anchor:
dom_id
(
event
.
target
),
title:
event
.
target_title
),
anchor:
dom_id
(
event
.
target
),
title:
h
(
event
.
target_title
)
),
class:
"commit_short_id"
)
do
"
#{
event
.
note_target_type
}
#{
event
.
note_short_commit_id
}
"
...
...
@@ -167,11 +167,11 @@ module EventsHelper
elsif
event
.
note_project_snippet?
link_to
(
namespace_project_snippet_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
note_target
),
title:
event
.
project
.
name
)
do
event
.
note_target
),
title:
h
(
event
.
project
.
name
)
)
do
"
#{
event
.
note_target_type
}
#{
truncate
event
.
note_target
.
to_reference
}
"
end
else
link_to
event_note_target_path
(
event
),
title:
event
.
note_target
.
to_reference
do
link_to
event_note_target_path
(
event
),
title:
h
(
event
.
note_target
.
to_reference
)
do
"
#{
event
.
note_target_type
}
#{
truncate
event
.
note_target
.
to_reference
}
"
end
end
...
...
app/helpers/projects_helper.rb
View file @
af29ed37
...
...
@@ -8,7 +8,7 @@ module ProjectsHelper
end
def
link_to_project
(
project
)
link_to
[
project
.
namespace
.
becomes
(
Namespace
),
project
],
title:
project
.
name
do
link_to
[
project
.
namespace
.
becomes
(
Namespace
),
project
],
title:
h
(
project
.
name
)
do
title
=
content_tag
(
:span
,
project
.
name
,
class:
'project-name'
)
if
project
.
namespace
...
...
app/views/events/_event_last_push.html.haml
View file @
af29ed37
...
...
@@ -3,7 +3,7 @@
.event-last-push
.event-last-push-text
%span
You pushed to
=
link_to
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
),
title:
event
.
project
.
name
do
=
link_to
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
),
title:
h
(
event
.
project
.
name
)
do
%strong
=
event
.
ref_name
%span
at
%strong
=
link_to_project
event
.
project
...
...
app/views/events/event/_common.html.haml
View file @
af29ed37
...
...
@@ -4,7 +4,7 @@
=
event_action_name
(
event
)
-
if
event
.
target
%strong
=
link_to
event
.
target
.
to_reference
,
[
event
.
project
.
namespace
.
becomes
(
Namespace
),
event
.
project
,
event
.
target
]
,
title:
event
.
target
.
to_reference
%strong
=
link_to
event
.
target
.
to_reference
,
[
event
.
project
.
namespace
.
becomes
(
Namespace
),
event
.
project
,
event
.
target
]
=
event_preposition
(
event
)
...
...
app/views/events/event/_push.html.haml
View file @
af29ed37
...
...
@@ -5,7 +5,7 @@
%strong
=
event
.
ref_name
-
else
%strong
=
link_to
event
.
ref_name
,
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
),
title:
event
.
target_title
=
link_to
event
.
ref_name
,
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
),
title:
h
(
event
.
target_title
)
at
=
link_to_project
event
.
project
...
...
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