summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src/xml
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2018-12-06 19:23:44 +0000
committerJeremy Kersten <jke@odoo.com>2018-12-06 20:49:42 +0000
commit1c5ffe17374b63916341908cb11446d13f65f8c9 (patch)
treef6116471a6ec3c6f387f5566f38df5dcc1113240 /addons/website_forum/static/src/xml
parent08807fcba959f3d8b70513824f614a2985f001fc (diff)
[REF] website_forum: mass moderation, modern UI bs4 and clean type
Now forum only allow to post message of type 'question'. New 'modern' UI with Bootstrap 4 New moderation modal for bulk spam Co-authored-by: qha <qha@odoo.com> Co-authored-by: qsm <qsm@odoo.com> Co-authored-by: jke <jke@odoo.com> Thanks to @qha-odoo for UI Thanks to @qsm-odoo for reviewSsss closes odoo/odoo#29235
Diffstat (limited to 'addons/website_forum/static/src/xml')
-rw-r--r--addons/website_forum/static/src/xml/website_forum_share_templates.xml58
1 files changed, 37 insertions, 21 deletions
diff --git a/addons/website_forum/static/src/xml/website_forum_share_templates.xml b/addons/website_forum/static/src/xml/website_forum_share_templates.xml
index 8cd8a27117e..205b05d9011 100644
--- a/addons/website_forum/static/src/xml/website_forum_share_templates.xml
+++ b/addons/website_forum/static/src/xml/website_forum_share_templates.xml
@@ -1,30 +1,46 @@
<templates id="template" xml:space="preserve">
<t t-name="website.social_modal">
<div role="dialog" class="modal fade" id="oe_social_share_modal">
- <div class="modal-dialog modal-content">
- <header class="modal-header alert alert-info mb0" role="status">
- <h4 class="modal-title">Thanks for posting!</h4>
- <button type="button" class="close" data-dismiss="modal">
- <span role="img" aria-label="Close">x</span>
- </button>
- </header>
- <main class="modal-body">
- <t t-if="target_type == 'question'" t-call="website_forum.social_message_question"/>
- <t t-if="target_type == 'answer'" t-call="website_forum.social_message_answer"/>
- <t t-if="target_type == 'default'" t-call="website_forum.social_message_default"/>
- <div class="share-icons text-center">
- <t t-foreach="medias" t-as="media">
- <a style="cursor: pointer" t-attf-class="fa-stack fa-lg share #{media}" t-attf-aria-label="Share on #{media}" t-attf-title="Share on #{media}">
- <span class="fa fa-square fa-stack-2x"></span>
- <span t-attf-class="oe_social_#{media} fa fa-#{media} fa-stack-1x fa-inverse"></span>
- </a>
- </t>
- </div>
- </main>
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+ <header class="modal-header alert alert-info mb0" role="status">
+ <h4 class="modal-title">Thanks for posting!</h4>
+ <button type="button" class="close" data-dismiss="modal">
+ <span role="img" aria-label="Close">x</span>
+ </button>
+ </header>
+ <main class="modal-body">
+ <t t-if="target_type == 'question'" t-call="website_forum.social_message_question"/>
+ <t t-if="target_type == 'answer'" t-call="website_forum.social_message_answer"/>
+ <t t-if="target_type == 'default'" t-call="website_forum.social_message_default"/>
+ <div class="share-icons text-center text-primary">
+ <t t-foreach="medias" t-as="media">
+ <a style="cursor: pointer" t-attf-class="fa-stack fa-lg share #{media}" t-attf-aria-label="Share on #{media}" t-attf-title="Share on #{media}">
+ <span class="fa fa-square fa-stack-2x"></span>
+ <span t-attf-class="oe_social_#{media} fa fa-#{media} fa-stack-1x fa-inverse"></span>
+ </a>
+ </t>
+ </div>
+ </main>
+ </div>
</div>
</div>
</t>
-
+ <t t-name="website_forum.spam_search_name">
+ <t t-foreach="posts" t-as="post">
+ <div class="card mb-1 o_spam_character">
+ <div class="card-body py-2">
+ <div class="custom-control custom-checkbox">
+ <input type="checkbox" class="custom-control-input" t-attf-id="post_#{post.id}" t-att-value='post.id' checked='checked'/>
+ <label class="custom-control-label" t-attf-for="post_#{post.id}">
+ <b><t t-esc="post.name" /></b>
+ <p class='text-muted'><t t-esc="post.content" /></p>
+ </label>
+ </div>
+ </div>
+ </div>
+ </t>
+ </t>
<t t-name="website_forum.social_message_question">
<p>On average, <b>45% of questions shared</b> on social networks get an answer within
5 hours. Questions shared on two social networks have <b>65% more chance to get an