[IMP] website_slides: add call to actions in user profile

Before this task, when the user arrived on his profile,
some empty sections didn't had any call to actions

task-2080615

closes odoo/odoo#38029

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
mcm-odoo
2019-10-18 13:04:08 +00:00
parent aebc8911f0
commit b29d0385ad
3 changed files with 14 additions and 8 deletions
@@ -376,12 +376,12 @@
</t>
</t>
</div>
<div class="mb-3" t-if="not user.badge_ids">
<p class="text-muted">No badge yet</p>
<div class="mb-3 d-inline-block" t-if="not user.badge_ids">
<p class="text-muted">No badges yet!</p>
</div>
<div class="text-right">
<a t-if="not user.badge_ids and badge_category" t-attf-href="/profile/ranks_badges?badge_category=#{badge_category}"><i class="fa fa-arrow-right"/> Check available badges</a>
<a t-else="" href="/profile/ranks_badges" class="btn btn-link btn-sm"><i class="fa fa-arrow-right mr-1"/>Check all available badges</a>
<div class="text-right d-inline-block pull-right">
<a t-if="not user.badge_ids and badge_category" t-attf-href="/profile/ranks_badges?badge_category=#{badge_category}" class="btn btn-link btn-sm"><i class="fa fa-arrow-right"/> All Badges</a>
<a t-else="" href="/profile/ranks_badges" class="btn btn-link btn-sm"><i class="fa fa-arrow-right mr-1"/>All Badges</a>
</div>
</template>
@@ -17,14 +17,17 @@
<t t-if="courses_completed" t-call="website_slides.display_course">
<t t-set="courses" t-value="courses_completed"></t>
</t>
<p t-else="" class="text-muted">No completed course yet</p>
<div t-else="" class="text-muted d-inline-block">No completed courses yet!</div>
<div class="text-right d-inline-block pull-right">
<a href="/slides/all" class="btn btn-link btn-sm"><i class="fa fa-arrow-right mr-1"/>All Courses</a>
</div>
</div>
<div class="mb32">
<h5 class="border-bottom pb-1">Followed Courses</h5>
<t t-if="courses_ongoing" t-call="website_slides.display_course">
<t t-set="courses" t-value="courses_ongoing"></t>
</t>
<p t-else="" class="text-muted">No followed course yet</p>
<p t-else="" class="text-muted">No followed courses yet!</p>
</div>
</t>
</xpath>
@@ -42,8 +42,11 @@
</div>
</t>
<t t-else="">
<p class="text-muted">No certifications yet!</p>
<div class="text-muted d-inline-block">No certifications yet!</div>
</t>
<div class="text-right d-inline-block pull-right">
<a href="/slides/all?slide_type=certification" class="btn btn-link btn-sm"><i class="fa fa-arrow-right mr-1"/>All Certifications</a>
</div>
</template>
<template id="top3_user_card" inherit_id="website_profile.top3_user_card">