summaryrefslogtreecommitdiff
path: root/app/views/shared/_event_filter.html.haml
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-10-21 12:14:14 +0100
committerPhil Hughes <me@iamphill.com>2016-11-01 08:35:23 +0000
commitb5decb21813e23d7a6828f6aa70bac909b6ce09f (patch)
tree9702b39fd6cd2ca35e9ec5a2412847cf277b6f11 /app/views/shared/_event_filter.html.haml
parentb328c7885532ccff70e1f9f7dc970a8dde0c52d6 (diff)
downloadgitlab-ce-b5decb21813e23d7a6828f6aa70bac909b6ce09f.tar.gz
Hide project activity tabs when features are disabled
Diffstat (limited to 'app/views/shared/_event_filter.html.haml')
-rw-r--r--app/views/shared/_event_filter.html.haml9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/shared/_event_filter.html.haml b/app/views/shared/_event_filter.html.haml
index 3480800369a..c367ae336db 100644
--- a/app/views/shared/_event_filter.html.haml
+++ b/app/views/shared/_event_filter.html.haml
@@ -1,6 +1,9 @@
%ul.nav-links.event-filter.scrolling-tabs
= event_filter_link EventFilter.all, 'All'
- = event_filter_link EventFilter.push, 'Push events'
- = event_filter_link EventFilter.merged, 'Merge events'
- = event_filter_link EventFilter.comments, 'Comments'
+ - if event_filter_visible(:repository)
+ = event_filter_link EventFilter.push, 'Push events'
+ - if event_filter_visible(:merge_requests)
+ = event_filter_link EventFilter.merged, 'Merge events'
+ - if event_filter_visible(:issues)
+ = event_filter_link EventFilter.comments, 'Comments'
= event_filter_link EventFilter.team, 'Team'