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
83797265
Commit
83797265
authored
Oct 12, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1683 from riyad/fix-events-for-deleted-things-again
Fix displaying events for deleted things on the dashboard (again)
parents
4083d01a
19560a4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
events_helper.rb
app/helpers/events_helper.rb
+1
-1
_common.html.haml
app/views/events/event/_common.html.haml
+8
-2
No files found.
app/helpers/events_helper.rb
View file @
83797265
module
EventsHelper
def
link_to_author
(
event
)
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
link_to
event
.
author_name
,
project_team_member_path
(
project
,
tm
)
...
...
app/views/events/event/_common.html.haml
View file @
83797265
.event-title
%span
.author_name
=
link_to_author
event
%span
.event_label
{
class:
event
.
action_name
}=
event_action_name
(
event
)
=
link_to
[
event
.
project
,
event
.
target
]
do
-
if
event
.
target
=
link_to
[
event
.
project
,
event
.
target
]
do
%strong
=
truncate
event
.
target_title
-
else
%strong
=
truncate
event
.
target_title
at
=
link_to_project
event
.
project
-
if
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