From bd2dae4f6dcf64983dc86b9ef807e1d2f5fb2976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 15 Feb 2019 10:20:24 +0000 Subject: [PATCH] [IMP] website_profile, website_slides: add user ranking and karma on elearning main pages Purpose of this commit is to improve karma and gamification inclusion in elearning [1]. * remove a border, replaced by a standard hr, in rank template. It allows to reuse it easier as we don't necessarily want that border in other templates using it; Commit linked to task ID 1941250 and PR #31133. [1] task ID 1922159 (landed at 5fa651cb013ac67d7ba592498c4cf2770dec2483) --- .../static/src/scss/website_profile.scss | 1 - .../website_profile/views/website_profile.xml | 1 + .../static/src/scss/website_slides.scss | 4 ++++ .../views/website_slides_templates.xml | 16 ++++++---------- .../website_slides_templates_homepage.xml | 18 +++++++++++++----- 5 files changed, 24 insertions(+), 16 deletions(-) diff --git a/addons/website_profile/static/src/scss/website_profile.scss b/addons/website_profile/static/src/scss/website_profile.scss index c636bd40d92..b45b58a587c 100644 --- a/addons/website_profile/static/src/scss/website_profile.scss +++ b/addons/website_profile/static/src/scss/website_profile.scss @@ -127,7 +127,6 @@ $bronze: #eea91e; height: 128px; } } - border-bottom: 1px solid lightgray; .o_wprofile_next_rank_progress { background-color: lightgray; .o_wprofile_next_rank_progress_bar { diff --git a/addons/website_profile/views/website_profile.xml b/addons/website_profile/views/website_profile.xml index 471cbe6a3f8..2a4752c2830 100644 --- a/addons/website_profile/views/website_profile.xml +++ b/addons/website_profile/views/website_profile.xml @@ -181,6 +181,7 @@ +
diff --git a/addons/website_slides/static/src/scss/website_slides.scss b/addons/website_slides/static/src/scss/website_slides.scss index feb6acd6ffb..75dd02662e4 100644 --- a/addons/website_slides/static/src/scss/website_slides.scss +++ b/addons/website_slides/static/src/scss/website_slides.scss @@ -149,6 +149,10 @@ div .o_wslides_home_main { background: linear-gradient(150deg, #875A7B 20%, #62495B 80%) !important; opacity: 0.95; + a { + color: #FFFFFF; + } + nav { .breadcrumb-item::before { font-weight: bold; diff --git a/addons/website_slides/views/website_slides_templates.xml b/addons/website_slides/views/website_slides_templates.xml index abb22345538..e06e75d0b66 100644 --- a/addons/website_slides/views/website_slides_templates.xml +++ b/addons/website_slides/views/website_slides_templates.xml @@ -52,15 +52,11 @@ -
- - +
+ + + +
@@ -73,7 +69,7 @@
- +