summaryrefslogtreecommitdiff
path: root/app/views/dashboard/projects/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/dashboard/projects/index.html.haml')
-rw-r--r--app/views/dashboard/projects/index.html.haml4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/dashboard/projects/index.html.haml b/app/views/dashboard/projects/index.html.haml
index ec6cb1a9624..c546252455a 100644
--- a/app/views/dashboard/projects/index.html.haml
+++ b/app/views/dashboard/projects/index.html.haml
@@ -13,10 +13,8 @@
- if show_callout?('user_callout_dismissed')
= render 'shared/user_callout'
- - if @projects.any? || params[:name]
+ - if has_projects_or_name?(@projects, params)
= render 'dashboard/projects_head'
-
- - if @projects.any? || params[:name]
= render 'projects'
- else
= render "zero_authorized_projects"