2019-10-11 06:06:27 +00:00
|
|
|
- show_group_events = local_assigns.fetch(:show_group_events, false)
|
|
|
|
|
2018-07-11 10:00:01 +00:00
|
|
|
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller.flex-fill
|
2020-06-25 12:09:00 +00:00
|
|
|
.fade-left= sprite_icon('chevron-lg-left', size: 12)
|
|
|
|
.fade-right= sprite_icon('chevron-lg-right', size: 12)
|
2018-04-20 03:34:20 +00:00
|
|
|
%ul.nav-links.event-filter.scrolling-tabs.nav.nav-tabs
|
2018-09-06 10:07:33 +00:00
|
|
|
= event_filter_link EventFilter::ALL, _('All'), s_('EventFilterBy|Filter by all')
|
2018-01-25 21:51:33 +00:00
|
|
|
- if event_filter_visible(:repository)
|
2018-09-06 10:07:33 +00:00
|
|
|
= event_filter_link EventFilter::PUSH, _('Push events'), s_('EventFilterBy|Filter by push events')
|
2018-01-25 21:51:33 +00:00
|
|
|
- if event_filter_visible(:merge_requests)
|
2018-09-06 10:07:33 +00:00
|
|
|
= event_filter_link EventFilter::MERGED, _('Merge events'), s_('EventFilterBy|Filter by merge events')
|
2018-01-25 21:51:33 +00:00
|
|
|
- if event_filter_visible(:issues)
|
2018-09-06 10:07:33 +00:00
|
|
|
= event_filter_link EventFilter::ISSUE, _('Issue events'), s_('EventFilterBy|Filter by issue events')
|
2019-10-11 06:06:27 +00:00
|
|
|
- if show_group_events
|
|
|
|
= render_if_exists 'events/epics_filter'
|
2018-01-25 21:51:33 +00:00
|
|
|
- if comments_visible?
|
2018-09-06 10:07:33 +00:00
|
|
|
= event_filter_link EventFilter::COMMENTS, _('Comments'), s_('EventFilterBy|Filter by comments')
|
2020-07-14 15:09:05 +00:00
|
|
|
- if @project.nil? || @project.has_wiki?
|
2020-03-25 12:08:19 +00:00
|
|
|
= event_filter_link EventFilter::WIKI, _('Wiki'), s_('EventFilterBy|Filter by wiki')
|
2020-06-19 18:08:39 +00:00
|
|
|
- if event_filter_visible(:designs)
|
|
|
|
= event_filter_link EventFilter::DESIGNS, _('Designs'), s_('EventFilterBy|Filter by designs')
|
2018-09-06 10:07:33 +00:00
|
|
|
= event_filter_link EventFilter::TEAM, _('Team'), s_('EventFilterBy|Filter by team')
|