diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/website_slides_forum/views/website_slides_templates.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/website_slides_forum/views/website_slides_templates.xml')
| -rw-r--r-- | addons/website_slides_forum/views/website_slides_templates.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/addons/website_slides_forum/views/website_slides_templates.xml b/addons/website_slides_forum/views/website_slides_templates.xml new file mode 100644 index 00000000..09971c6f --- /dev/null +++ b/addons/website_slides_forum/views/website_slides_templates.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" ?> +<odoo><data> + <template id='course_main' inherit_id="website_slides.course_main"> + <!-- Channel (training) main template: add link to forum --> + <xpath expr="//li[hasclass('o_wslides_course_header_nav_review_training')]" position="after"> + <li class="nav-item" t-if="channel.forum_id"> + <a t-att-href="'/forum/%s' % (slug(channel.forum_id))" + t-att-class="'nav-link'" target="new">Forum</a> + </li> + </xpath> + <!-- Channel (documentation) main template: add link to forum --> + <xpath expr="//li[hasclass('o_wslides_course_header_nav_review_documentation')]" position="after"> + <li class="nav-item" t-if="channel.forum_id"> + <a t-att-href="'/forum/%s' % (slug(channel.forum_id))" + t-att-class="'nav-link'" target="new">Forum</a> + </li> + </xpath> + </template> + + <template id="slide_fullscreen" inherit_id="website_slides.slide_fullscreen"> + <xpath expr="//a[hasclass('o_wslides_fs_review')]" position="after"> + <a t-if="slide.channel_id.forum_id" id="fullscreen_forum_button" class="d-flex align-items-center px-3" t-attf-href="/forum/#{slug(slide.channel_id.forum_id)}" target="new"> + <i class="fa fa-comments"/><span class="ml-1 d-none d-md-inline-block">New Post</span> + </a> + </xpath> + </template> + +</data></odoo> |
