Commit f1dfc27c5dad642d2d2c446f1a3fd865464b6fa6

Authored by Dmitriy Zaporozhets
1 parent f4d9059b

Replace project with namespace for events

app/views/events/_event_last_push.html.haml
... ... @@ -6,7 +6,7 @@
6 6 = link_to project_commits_path(event.project, event.ref_name) do
7 7 %strong= truncate(event.ref_name, length: 28)
8 8 at
9   - %strong= link_to event.project.name, event.project
  9 + %strong= link_to_project event.project
10 10 %span
11 11 = time_ago_in_words(event.created_at)
12 12 ago.
... ...
app/views/events/event/_push.html.haml
... ... @@ -7,7 +7,7 @@
7 7 = link_to project_commits_path(event.project, event.ref_name) do
8 8 %strong= event.ref_name
9 9 at
10   - %strong= link_to event.project.name, event.project
  10 + %strong= link_to_project event.project
11 11  
12 12 - if event.push_with_commits?
13 13 - project = event.project
... ...