Commit 640d51f4 authored by Riyad Preukschas's avatar Riyad Preukschas

Fix GFM in events

Fixes #2563
parent 592d626d
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
%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 - if event.target
= link_to [event.project, event.target] do %strong= link_to_gfm truncate(event.target_title), [event.project, event.target]
%strong= truncate event.target_title
- else - else
%strong= truncate event.target_title %strong= gfm truncate(event.target_title)
at at
- if event.project - if event.project
= link_to_project event.project = link_to_project event.project
......
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
.event-body .event-body
%span.event-note %span.event-note
%i.icon-comment-alt %i.icon-comment-alt
= truncate event.target.note, length: 70 = gfm truncate(event.target.note, length: 70)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment