summaryrefslogtreecommitdiff
path: root/app/views/dashboard/_projects_head.html.haml
diff options
context:
space:
mode:
authorEzekiel Kigbo <ekigbo@gitlab.com>2019-04-17 13:02:34 +0200
committerEzekiel Kigbo <ekigbo@gitlab.com>2019-05-06 16:42:43 +0100
commitb736a9f000d1e1f6c2c94ea74a700abf5a44139e (patch)
treef24f71c49402bb77cd4a03dcd0a0566cb63d6f58 /app/views/dashboard/_projects_head.html.haml
parent5f22907418397861d9b07cbaeea05ef7264d5605 (diff)
downloadgitlab-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.haml6
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