diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-02-18 17:15:53 +0000 |
|---|---|---|
| committer | Aurélien Warnon <awa@odoo.com> | 2019-02-21 06:57:04 +0000 |
| commit | 59f439a3f92add5933f3d8f10c51f514f736febf (patch) | |
| tree | db95fb20f87f2a0aab31325250af170e704ea169 | |
| parent | 03a085dff0232aa8d76a9280ac19d4615c684b33 (diff) | |
[IMP] website_slides: do not display channel information and featured slide if search
Commit linked to task ID 1941250 and PR #31279.
| -rw-r--r-- | addons/website_slides/views/website_slides_templates_course.xml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/addons/website_slides/views/website_slides_templates_course.xml b/addons/website_slides/views/website_slides_templates_course.xml index 437f4c32b92..65d9515c3b1 100644 --- a/addons/website_slides/views/website_slides_templates_course.xml +++ b/addons/website_slides/views/website_slides_templates_course.xml @@ -308,7 +308,7 @@ </template> <template id="course_content_documentation" name="Content of a training channel"> - <div class="col-md-8 col-xs-12 mt16 o_wslides_channel_content_promoted"> + <div t-if="not search" class="col-md-8 col-xs-12 mt16 o_wslides_channel_content_promoted"> <div class="row align-items-center"> <div class="col"> <h3> Featured lesson</h3> @@ -336,7 +336,14 @@ </div> </div> </div> - <div class="col-12"> + <div t-if="search and not category_data" class="col-12"> + <div class="row mt16 justify-content-end"> + <div class="col-12"> + <p class="text-center">No content was found using your search <span class="font-weight-bold" t-esc="search"/>.</p> + </div> + </div> + </div> + <div t-if="category_data" class="col-12"> <div class="tab-content mt16" id="slideChannelContent"> <div class="tab-pane active" role="tabpanel" aria-labelledby="profile-tab" id="slideChannelContentAbout"> <t t-foreach="category_data" t-as="category"> |
