diff options
| author | David Beguin <dbe@odoo.com> | 2019-02-26 09:49:22 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2019-03-15 14:59:12 +0000 |
| commit | d7cc1520f43e2a8c4825c0bd5b6e7448fc20c9bf (patch) | |
| tree | 0c4f46e7ea6ee3145e61a6626e01c29cc6fd140a /addons/website_profile/static | |
| parent | fb40c6bf6018f7f208201e1d4a4d413fd2ce3080 (diff) | |
[IMP] website_profile, gamification, : add search bar in all users page
This commit adds the search bar in 'All users' page in order to filter on name or company name.
To be able to keep the position, a non stored computed field has been added on res_users
to get the position depending on the user's karma.
The podium (top 3 users) is now displayed only if there is no search applied and if the page = 1
because it has no sens anymore in other cases.
Special thanks to @jem-odoo who helped me finding smart solution for position computing.
Task ID : 1943788
PR #31321
Diffstat (limited to 'addons/website_profile/static')
| -rw-r--r-- | addons/website_profile/static/src/scss/website_profile.scss | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/addons/website_profile/static/src/scss/website_profile.scss b/addons/website_profile/static/src/scss/website_profile.scss index 224b46b1c84..a20b1ea2eef 100644 --- a/addons/website_profile/static/src/scss/website_profile.scss +++ b/addons/website_profile/static/src/scss/website_profile.scss @@ -118,11 +118,54 @@ $owprofile-tabs-height: 37px; } // All Users Page +.o_wprofile_all_users_nav { + margin: auto; + background: linear-gradient(90deg, #875A7B 20%, #62495B 80%) !important; + a { + color: #FFFFFF; + } + nav { + .breadcrumb-item::before { + font-weight: bold; + color: #FFFFFF; + opacity: 0.8; + } + .breadcrumb-item { + a { + font-weight: bold; + color: #FFFFFF; + opacity: 0.8; + transition: opacity linear .3s; + } + &.active { + a { + opacity: 1.0; + } + } + } + ol { + background-color: transparent; + } + } +} + .o_wprofile_all_users_header { @include media-breakpoint-up(sm) { min-height: 200px; margin-bottom: -60px; } + margin: auto; + background: linear-gradient(90deg, #875A7B 20%, #62495B 80%) !important; + > div:first-child { + margin: auto; + width: 100%; + max-width: 1140px; + padding: 32px 32px 0px 32px; + color: white; + top: 48px; + padding-top: 0px; + height: 250px; + } } .o_wprofile_top3_card_footer div { |
