gitlab-org--gitlab-foss/app/views/events/_event_scope.html.haml
Jan Provaznik f494587973 Add event presenter
This presenter will be used in an upcoming MR which adds
rendering of epic events on group activity page.
2019-09-10 10:11:38 +00:00

6 lines
193 B
Text

%span.event-scope
= event_preposition(event)
- if event.project
= link_to_project(event.project)
- elsif event.group
= link_to event.resource_parent_name, group_path(event.group)