summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-25 16:54:36 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-25 16:54:36 +0300
commit203bc7bb7e352391bc1405c800ae4907d7f3fe02 (patch)
tree9beb17a9a436a3c19825a686f4c09e976114fd83
parent9d33c72616aad6a0fd6a6592ba417d770e1923b4 (diff)
downloadgitlab-ce-203bc7bb7e352391bc1405c800ae4907d7f3fe02.tar.gz
Hide some filters if current_user is nil
-rw-r--r--app/views/shared/_project_filter.html.haml21
1 files changed, 11 insertions, 10 deletions
diff --git a/app/views/shared/_project_filter.html.haml b/app/views/shared/_project_filter.html.haml
index 5e0f503c819..f3d032ef986 100644
--- a/app/views/shared/_project_filter.html.haml
+++ b/app/views/shared/_project_filter.html.haml
@@ -1,15 +1,16 @@
= form_tag project_entities_path, method: 'get' do
%fieldset
- %ul.nav.nav-pills.nav-stacked
- %li{class: ("active" if params[:scope].blank?)}
- = link_to project_filter_path(scope: nil) do
- Everyone's
- %li{class: ("active" if params[:scope] == 'assigned-to-me')}
- = link_to project_filter_path(scope: 'assigned-to-me') do
- Assigned to me
- %li{class: ("active" if params[:scope] == 'created-by-me')}
- = link_to project_filter_path(scope: 'created-by-me') do
- Created by me
+ - if current_user
+ %ul.nav.nav-pills.nav-stacked
+ %li{class: ("active" if params[:scope].blank?)}
+ = link_to project_filter_path(scope: nil) do
+ Everyone's
+ %li{class: ("active" if params[:scope] == 'assigned-to-me')}
+ = link_to project_filter_path(scope: 'assigned-to-me') do
+ Assigned to me
+ %li{class: ("active" if params[:scope] == 'created-by-me')}
+ = link_to project_filter_path(scope: 'created-by-me') do
+ Created by me
%ul.nav.nav-pills.nav-stacked
%li{class: ("active" if params[:state].blank?)}