link user avatar in activity page to user profile
This commit is contained in:
parent
be85fde663
commit
0c0f634050
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,12 @@
|
||||||
#{time_ago_with_tooltip(event.created_at)}
|
#{time_ago_with_tooltip(event.created_at)}
|
||||||
|
|
||||||
= cache [event, current_application_settings, "v2.2"] do
|
= cache [event, current_application_settings, "v2.2"] do
|
||||||
= image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''
|
- if event.author
|
||||||
|
= link_to user_path(event.author.username) do
|
||||||
|
= image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''
|
||||||
|
- else
|
||||||
|
= image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''
|
||||||
|
|
||||||
- if event.created_project?
|
- if event.created_project?
|
||||||
= render "events/event/created_project", event: event
|
= render "events/event/created_project", event: event
|
||||||
- elsif event.push?
|
- elsif event.push?
|
||||||
|
|
Loading…
Reference in a new issue