diff options
author | Dennis Tang <750946-dennis@users.noreply.gitlab.com> | 2019-08-02 09:43:31 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-08-02 09:43:31 +0300 |
commit | 2330ad3c3b453a3605094403396b354ddaafca19 (patch) | |
tree | fcb4a8c5fae72e3d11bebf6fe0aa1b27cb6d504f /app/views/explore | |
parent | cb497dd4bcb3b67dcef70d62a9a1b8fbc6d95c09 (diff) |
Resolve Incorrect empty state message on "Explore projects"
Diffstat (limited to 'app/views/explore')
-rw-r--r-- | app/views/explore/projects/_projects.html.haml | 3 | ||||
-rw-r--r-- | app/views/explore/projects/trending.html.haml | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/explore/projects/_projects.html.haml b/app/views/explore/projects/_projects.html.haml index 67f2f897137..35b32662b8a 100644 --- a/app/views/explore/projects/_projects.html.haml +++ b/app/views/explore/projects/_projects.html.haml @@ -1 +1,2 @@ -= render 'shared/projects/list', projects: projects, user: current_user +- is_explore_page = defined?(explore_page) && explore_page += render 'shared/projects/list', projects: projects, user: current_user, explore_page: is_explore_page diff --git a/app/views/explore/projects/trending.html.haml b/app/views/explore/projects/trending.html.haml index ed508fa2506..153c90e534e 100644 --- a/app/views/explore/projects/trending.html.haml +++ b/app/views/explore/projects/trending.html.haml @@ -10,4 +10,4 @@ = render 'explore/head' = render 'explore/projects/nav' unless Feature.enabled?(:project_list_filter_bar) && current_user -= render 'projects', projects: @projects += render 'projects', projects: @projects, explore_page: true |