diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-21 16:03:14 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-21 16:03:14 -0500 |
commit | 41cee8c38e61d3f00e1c79b2d170d6fc5f8bea0e (patch) | |
tree | d9c4caec02d2ca431e9a835573bb70885e3aa3fe /app | |
parent | 3f574c4db958f2d1ea4d6475cb027dc005fbae87 (diff) | |
download | gitlab-ce-41cee8c38e61d3f00e1c79b2d170d6fc5f8bea0e.tar.gz |
Do not display filters if user if there's no current_user
Diffstat (limited to 'app')
-rw-r--r-- | app/views/shared/projects/_dropdown.html.haml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/shared/projects/_dropdown.html.haml b/app/views/shared/projects/_dropdown.html.haml index 681d182daee..1169bed0382 100644 --- a/app/views/shared/projects/_dropdown.html.haml +++ b/app/views/shared/projects/_dropdown.html.haml @@ -21,10 +21,11 @@ %li = link_to filter_projects_path(sort: @sort, archived: true), class: ("is-active" if params[:archived].present?) do Show archived projects - %li.divider - %li - = link_to filter_projects_path(sort: @sort, personal: nil), class: ("is-active" unless personal) do - Owned by anyone - %li - = link_to filter_projects_path(sort: @sort, personal: true), class: ("is-active" if personal) do - Owned by me + - if current_user + %li.divider + %li + = link_to filter_projects_path(sort: @sort, personal: nil), class: ("is-active" unless personal) do + Owned by anyone + %li + = link_to filter_projects_path(sort: @sort, personal: true), class: ("is-active" if personal) do + Owned by me |