Skip to content
Snippets Groups Projects
Commit 7e0c4af2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets Committed by Wes Gurney
Browse files

Hide some filters if current_user is nil

parent ec640cf6
No related branches found
No related tags found
1 merge request!4954Add support to configure webhook_timeout in gitlab.yaml
This commit is part of merge request !4954. Comments created here will be created in the context of that merge request.
= form_tag project_entities_path, method: 'get' do = form_tag project_entities_path, method: 'get' do
%fieldset %fieldset
%ul.nav.nav-pills.nav-stacked - if current_user
%li{class: ("active" if params[:scope].blank?)} %ul.nav.nav-pills.nav-stacked
= link_to project_filter_path(scope: nil) do %li{class: ("active" if params[:scope].blank?)}
Everyone's = link_to project_filter_path(scope: nil) do
%li{class: ("active" if params[:scope] == 'assigned-to-me')} Everyone's
= link_to project_filter_path(scope: 'assigned-to-me') do %li{class: ("active" if params[:scope] == 'assigned-to-me')}
Assigned to me = link_to project_filter_path(scope: 'assigned-to-me') do
%li{class: ("active" if params[:scope] == 'created-by-me')} Assigned to me
= link_to project_filter_path(scope: 'created-by-me') do %li{class: ("active" if params[:scope] == 'created-by-me')}
Created by me = link_to project_filter_path(scope: 'created-by-me') do
Created by me
   
%ul.nav.nav-pills.nav-stacked %ul.nav.nav-pills.nav-stacked
%li{class: ("active" if params[:state].blank?)} %li{class: ("active" if params[:state].blank?)}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment