Reduce strong html tag usage for dashboard events
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
a5f7f5d8b4
commit
8e117f0e37
1 changed files with 2 additions and 6 deletions
|
@ -102,17 +102,13 @@ module EventsHelper
|
||||||
end
|
end
|
||||||
elsif event.note_project_snippet?
|
elsif event.note_project_snippet?
|
||||||
link_to(project_snippet_path(event.project, event.note_target)) do
|
link_to(project_snippet_path(event.project, event.note_target)) do
|
||||||
content_tag :strong do
|
|
||||||
"#{event.note_target_type} ##{truncate event.note_target_id}"
|
"#{event.note_target_type} ##{truncate event.note_target_id}"
|
||||||
end
|
end
|
||||||
end
|
|
||||||
else
|
else
|
||||||
link_to event_note_target_path(event) do
|
link_to event_note_target_path(event) do
|
||||||
content_tag :strong do
|
|
||||||
"#{event.note_target_type} ##{truncate event.note_target_iid}"
|
"#{event.note_target_type} ##{truncate event.note_target_iid}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
elsif event.wall_note?
|
elsif event.wall_note?
|
||||||
link_to 'wall', project_wall_path(event.project)
|
link_to 'wall', project_wall_path(event.project)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue