diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-24 12:41:42 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-24 16:36:23 +0000 |
commit | 3eedb2aede34165d7a34fa0dc77ed6c919f7dcb9 (patch) | |
tree | a5cb6e83b24b710a95711a8c3896a370c3bd4b23 /app/views/dashboard/projects | |
parent | 4a8e516c1fcdc2d5cb2b1cd2fcded382413d95f6 (diff) | |
download | gitlab-ce-3eedb2aede34165d7a34fa0dc77ed6c919f7dcb9.tar.gz |
Refactored the user callout class
Instead of the JS being in charge of the HTML, the HAML now handles it.
The HAML can then check the cookie & show it needed. It also allows the
HAML access to the paths so we don't have to pass that through.
Closes #29955
Diffstat (limited to 'app/views/dashboard/projects')
-rw-r--r-- | app/views/dashboard/projects/index.html.haml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/dashboard/projects/index.html.haml b/app/views/dashboard/projects/index.html.haml index eef794dbd51..596499230f9 100644 --- a/app/views/dashboard/projects/index.html.haml +++ b/app/views/dashboard/projects/index.html.haml @@ -4,7 +4,9 @@ - page_title "Projects" - header_title "Projects", dashboard_projects_path -.user-callout{ 'callout-svg' => custom_icon('icon_customization') } +- unless show_user_callout? + = render 'shared/user_callout' + - if @projects.any? || params[:name] = render 'dashboard/projects_head' |