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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
19560a4b
Commit
19560a4b
authored
Oct 12, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix displaying events for deleted things
parent
baf94bd7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
app/helpers/events_helper.rb
app/helpers/events_helper.rb
+1
-1
app/views/events/event/_common.html.haml
app/views/events/event/_common.html.haml
+8
-2
No files found.
app/helpers/events_helper.rb
View file @
19560a4b
module
EventsHelper
module
EventsHelper
def
link_to_author
(
event
)
def
link_to_author
(
event
)
project
=
event
.
project
project
=
event
.
project
tm
=
project
.
team_member_by_id
(
event
.
author_id
)
tm
=
project
.
team_member_by_id
(
event
.
author_id
)
if
project
if
tm
if
tm
link_to
event
.
author_name
,
project_team_member_path
(
project
,
tm
)
link_to
event
.
author_name
,
project_team_member_path
(
project
,
tm
)
...
...
app/views/events/event/_common.html.haml
View file @
19560a4b
.event-title
.event-title
%span
.author_name
=
link_to_author
event
%span
.author_name
=
link_to_author
event
%span
.event_label
{
class:
event
.
action_name
}=
event_action_name
(
event
)
%span
.event_label
{
class:
event
.
action_name
}=
event_action_name
(
event
)
-
if
event
.
target
=
link_to
[
event
.
project
,
event
.
target
]
do
=
link_to
[
event
.
project
,
event
.
target
]
do
%strong
=
truncate
event
.
target_title
%strong
=
truncate
event
.
target_title
-
else
%strong
=
truncate
event
.
target_title
at
at
-
if
event
.
project
=
link_to_project
event
.
project
=
link_to_project
event
.
project
-
else
=
event
.
project_name
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