summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-24 12:41:42 +0000
committerPhil Hughes <me@iamphill.com>2017-03-24 16:36:23 +0000
commit3eedb2aede34165d7a34fa0dc77ed6c919f7dcb9 (patch)
treea5cb6e83b24b710a95711a8c3896a370c3bd4b23 /app/views/shared
parent4a8e516c1fcdc2d5cb2b1cd2fcded382413d95f6 (diff)
downloadgitlab-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/shared')
-rw-r--r--app/views/shared/_user_callout.html.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/shared/_user_callout.html.haml b/app/views/shared/_user_callout.html.haml
new file mode 100644
index 00000000000..8f1293adcb1
--- /dev/null
+++ b/app/views/shared/_user_callout.html.haml
@@ -0,0 +1,14 @@
+.user-callout
+ .bordered-box.landing.content-block
+ %button.btn.btn-default.close.js-close-callout{ type: 'button',
+ 'aria-label' => 'Dismiss customize experience box' }
+ = icon('times', class: 'dismiss-icon', 'aria-hidden' => 'true')
+ .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 btn-default js-close-callout'