diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-04-17 13:02:34 +0200 |
---|---|---|
committer | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-05-06 16:42:43 +0100 |
commit | b736a9f000d1e1f6c2c94ea74a700abf5a44139e (patch) | |
tree | f24f71c49402bb77cd4a03dcd0a0566cb63d6f58 /app/views/dashboard/_projects_head.html.haml | |
parent | 5f22907418397861d9b07cbaeea05ef7264d5605 (diff) | |
download | gitlab-ce-b736a9f000d1e1f6c2c94ea74a700abf5a44139e.tar.gz |
Minor review fixes
Externalize strings
Simplify locals passed through views
Ensure we can still filter when logged out
Cleanup conditional rendering for explore filters
Diffstat (limited to 'app/views/dashboard/_projects_head.html.haml')
-rw-r--r-- | app/views/dashboard/_projects_head.html.haml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/dashboard/_projects_head.html.haml b/app/views/dashboard/_projects_head.html.haml index e62ec3afd0b..128a766374e 100644 --- a/app/views/dashboard/_projects_head.html.haml +++ b/app/views/dashboard/_projects_head.html.haml @@ -1,6 +1,4 @@ -- is_explore = local_assigns.fetch(:is_explore, false) -- is_explore_trending = local_assigns.fetch(:is_explore_trending, false) -- without_tabs = local_assigns.fetch(:without_tabs, false) +- project_tab_filter = local_assigns.fetch(:project_tab_filter, "") - feature_project_list_filter_bar = Feature.enabled?(:project_list_filter_bar) = content_for :flash_message do = render 'shared/project_limit' @@ -33,4 +31,4 @@ = render 'shared/projects/dropdown' - if feature_project_list_filter_bar .project-filters - = render 'shared/projects/search_bar', is_explore: is_explore, is_explore_trending: is_explore_trending, without_tabs: without_tabs + = render 'shared/projects/search_bar', project_tab_filter: project_tab_filter |