debian-mirror-gitlab/app/views/events/_event.html.haml

22 lines
732 B
Text
Raw Normal View History

2019-12-04 20:38:33 +05:30
- event = event.present
2016-06-02 11:05:42 +05:30
- if event.visible_to_user?(current_user)
2018-12-13 13:39:08 +05:30
.event-item
2014-09-02 18:07:02 +05:30
.event-item-timestamp
2017-08-17 22:00:37 +05:30
#{time_ago_with_tooltip(event.created_at)}
2014-09-02 18:07:02 +05:30
2020-04-22 19:07:51 +05:30
- if event.wiki_page?
= render "events/event/wiki", event: event
2020-07-28 23:09:34 +05:30
- elsif event.design?
= render 'events/event/design', event: event
2020-04-22 19:07:51 +05:30
- elsif event.created_project_action?
2017-08-17 22:00:37 +05:30
= render "events/event/created_project", event: event
2019-09-04 21:01:54 +05:30
- elsif event.push_action?
2017-08-17 22:00:37 +05:30
= render "events/event/push", event: event
2019-09-04 21:01:54 +05:30
- elsif event.commented_action?
2017-08-17 22:00:37 +05:30
= render "events/event/note", event: event
- else
= render "events/event/common", event: event
2018-11-20 20:47:30 +05:30
- elsif @user&.include_private_contributions?
= render "events/event/private", event: event