Commit 41cee8c3 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Do not display filters if user if there's no current_user

parent 3f574c4d
...@@ -21,10 +21,11 @@ ...@@ -21,10 +21,11 @@
%li %li
= link_to filter_projects_path(sort: @sort, archived: true), class: ("is-active" if params[:archived].present?) do = link_to filter_projects_path(sort: @sort, archived: true), class: ("is-active" if params[:archived].present?) do
Show archived projects Show archived projects
%li.divider - if current_user
%li %li.divider
= link_to filter_projects_path(sort: @sort, personal: nil), class: ("is-active" unless personal) do %li
Owned by anyone = link_to filter_projects_path(sort: @sort, personal: nil), class: ("is-active" unless personal) do
%li Owned by anyone
= link_to filter_projects_path(sort: @sort, personal: true), class: ("is-active" if personal) do %li
Owned by me = link_to filter_projects_path(sort: @sort, personal: true), class: ("is-active" if personal) do
Owned by me
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment