BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6f720ce2
Commit
6f720ce2
authored
Feb 14, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '26287-link-branch-in-calendar-activity' into 'master'
Add Links to Branches in Calendar Activity Closes #26287 See merge request !9224
parents
aa4e9f86
fa810e4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
calendar_activities.html.haml
app/views/users/calendar_activities.html.haml
+9
-5
26287-link-branch-in-calendar-activity.yml
...ogs/unreleased/26287-link-branch-in-calendar-activity.yml
+4
-0
No files found.
app/views/users/calendar_activities.html.haml
View file @
6f720ce2
...
...
@@ -10,13 +10,17 @@
%i
.fa.fa-clock-o
=
event
.
created_at
.
to_s
(
:time
)
-
if
event
.
push?
#{
event
.
action_name
}
#{
event
.
ref_type
}
#{
event
.
ref_name
}
#{
event
.
action_name
}
#{
event
.
ref_type
}
%strong
-
commits_path
=
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
)
=
link_to_if
event
.
project
.
repository
.
branch_exists?
(
event
.
ref_name
),
event
.
ref_name
,
commits_path
-
else
=
event_action_name
(
event
)
-
if
event
.
note?
%strong
=
link_to
event
.
note_target
.
to_reference
,
event_note_target_path
(
event
)
-
elsif
event
.
target
%strong
=
link_to
event
.
target
.
to_reference
,
[
event
.
project
.
namespace
.
becomes
(
Namespace
),
event
.
project
,
event
.
target
]
%strong
-
if
event
.
note?
=
link_to
event
.
note_target
.
to_reference
,
event_note_target_path
(
event
)
-
elsif
event
.
target
=
link_to
event
.
target
.
to_reference
,
[
event
.
project
.
namespace
.
becomes
(
Namespace
),
event
.
project
,
event
.
target
]
at
%strong
...
...
changelogs/unreleased/26287-link-branch-in-calendar-activity.yml
0 → 100644
View file @
6f720ce2
---
title
:
Add Links to Branches in Calendar Activity
merge_request
:
9224
author
:
Jan Christophersen
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