Skip to content
Permalink
Browse files

[IMP] website_slides: do not display channel information and featured…

… slide if search
  • Loading branch information...
tde-banana-odoo committed Feb 18, 2019
1 parent 0430b4b commit 40256be577d02e71818a2468f0a4089bcf310234
Showing with 10 additions and 3 deletions.
  1. +10 −3 addons/website_slides/views/website_slides_templates.xml
@@ -152,7 +152,7 @@
<div class="col-lg-12 o_wslides_container o_wslides_content_containerUNFUCKME">
<div class="row o_wslides_course_content_main">
<!-- Channel presentation, aka general information + CTAs -->
<div class="col-md-4 col-xs-12 o_wslides_course_content_aside">
<div t-if="not search" class="col-md-4 col-xs-12 o_wslides_course_content_aside">
<div class="bg-white">
<div class="row justify-content-center o_wslides_join_channel">
<a t-if="not channel.is_member and channel.visibility == 'public'" role="button"
@@ -256,7 +256,7 @@
</div>
</div>
<!-- Channel content, aka slides (lessons in documentation mode) -->
<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>
@@ -285,7 +285,14 @@
</div>
</div>
<!-- Channel content, aka slides (lessons in documentation mode) -->
<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">

0 comments on commit 40256be

Please sign in to comment.
You can’t perform that action at this time.