diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-02-23 15:23:33 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-02-23 15:47:23 -0600 |
commit | 2f681138dc2338b50af0b4d2bfbd24032e97f2e3 (patch) | |
tree | 193846079dc7a920539e2eb8391a54a12f13484a /app/views | |
parent | 621bfdaa9f9abe977310fb2692a4194b5a87347c (diff) | |
download | gitlab-ce-2f681138dc2338b50af0b4d2bfbd24032e97f2e3.tar.gz |
Modified the user_callout behaviour
Now it appends a template instead of relying in a partial
to show it.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/dashboard/projects/index.html.haml | 2 | ||||
-rw-r--r-- | app/views/shared/_user_callout.html.haml | 14 | ||||
-rw-r--r-- | app/views/users/show.html.haml | 4 |
3 files changed, 3 insertions, 17 deletions
diff --git a/app/views/dashboard/projects/index.html.haml b/app/views/dashboard/projects/index.html.haml index 8276cce693c..b82b933c3ad 100644 --- a/app/views/dashboard/projects/index.html.haml +++ b/app/views/dashboard/projects/index.html.haml @@ -5,7 +5,7 @@ - page_title "Projects" - header_title "Projects", dashboard_projects_path -= render partial: 'shared/user_callout' +.user-callout{ 'callout-svg' => custom_icon('icon_customization') } - if @projects.any? || params[:filter_projects] = render 'dashboard/projects_head' diff --git a/app/views/shared/_user_callout.html.haml b/app/views/shared/_user_callout.html.haml deleted file mode 100644 index 3f310251568..00000000000 --- a/app/views/shared/_user_callout.html.haml +++ /dev/null @@ -1,14 +0,0 @@ -.user-callout - .bordered-box.landing.content-block - %button.btn.btn-default.close.close-user-callout{ type: "button" } - = icon("times", class: "dismiss-icon") - .row - .col-sm-3.col-xs-12.svg-container - = custom_icon('icon_customization') - .col-sm-8.col-xs-12.inner-content - %h4 - Customize your experience - %p - Change syntax themes, default project pages, and more in preferences. - - = link_to "Check it out", profile_preferences_path, class: 'btn user-callout-btn' diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 6203c668ff5..c130f3d9e17 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -96,9 +96,9 @@ %li.js-snippets-tab = link_to user_snippets_path, data: {target: 'div#snippets', action: 'snippets', toggle: 'tab'} do Snippets - + %div{ class: container_class } - = render partial: 'shared/user_callout' + .user-callout{ 'callout-svg' => custom_icon('icon_customization') } .tab-content #activity.tab-pane .row-content-block.calender-block.white.second-block.hidden-xs |