[MERGE] forward port branch 10.0 up to 89a99407ce
This commit is contained in:
@@ -788,6 +788,11 @@ msgstr ""
|
||||
msgid "Close"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_forum
|
||||
#: model:ir.ui.view,arch_db:website_forum.close_post
|
||||
msgid "Close Post"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_forum
|
||||
#: model:ir.model.fields,field_description:website_forum.field_forum_forum_karma_close_all
|
||||
msgid "Close all posts"
|
||||
@@ -798,6 +803,11 @@ msgstr ""
|
||||
msgid "Close own posts"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_forum
|
||||
#: model:ir.ui.view,arch_db:website_forum.close_post
|
||||
msgid "Close post"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_forum
|
||||
#: model:ir.model.fields,field_description:website_forum.field_forum_post_closed_uid
|
||||
msgid "Closed by"
|
||||
@@ -1205,6 +1215,7 @@ msgid "First upvote"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_forum
|
||||
#: model:ir.ui.view,arch_db:website_forum.post_answers
|
||||
#: model:ir.ui.view,arch_db:website_forum.post_description_full
|
||||
msgid "Flag"
|
||||
msgstr ""
|
||||
@@ -1218,6 +1229,7 @@ msgstr ""
|
||||
#. module: website_forum
|
||||
#: selection:forum.post,state:0
|
||||
#: model:ir.ui.view,arch_db:website_forum.moderation_queue
|
||||
#: model:ir.ui.view,arch_db:website_forum.post_answers
|
||||
#: model:ir.ui.view,arch_db:website_forum.post_description_full
|
||||
msgid "Flagged"
|
||||
msgstr ""
|
||||
@@ -1581,6 +1593,11 @@ msgstr ""
|
||||
msgid "Links"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_forum
|
||||
#: model:ir.ui.view,arch_db:website_forum.close_post
|
||||
msgid "Mark as offensive"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_forum
|
||||
#: model:ir.model.fields,field_description:website_forum.field_forum_forum_karma_moderate
|
||||
msgid "Moderate posts"
|
||||
@@ -1747,6 +1764,11 @@ msgstr ""
|
||||
msgid "Offensive"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_forum
|
||||
#: model:ir.ui.view,arch_db:website_forum.close_post
|
||||
msgid "Offensive Post"
|
||||
msgstr ""
|
||||
|
||||
#. module: website_forum
|
||||
#: model:ir.ui.view,arch_db:website_forum.post_answers
|
||||
msgid "On"
|
||||
|
||||
@@ -631,7 +631,10 @@
|
||||
<!-- Moderation: close a post -->
|
||||
<template id="close_post">
|
||||
<t t-call="website_forum.header">
|
||||
<h1 class="mt0"><t t-esc="offensive and 'Offensive' or 'Close'"/> Post</h1>
|
||||
<h1 class="mt0">
|
||||
<t t-if="offensive">Offensive Post</t>
|
||||
<t t-if="not offensive">Close Post</t>
|
||||
</h1>
|
||||
<p class="text-muted" t-if="not offensive">
|
||||
If you close this post, it will be hidden for most users. Only
|
||||
users having a high karma can see closed posts to moderate
|
||||
@@ -668,7 +671,10 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-3 col-md-8">
|
||||
<button type="submit" class="btn btn-primary"><t t-esc="offensive and 'Mark as offensive' or 'Close post'"/></button>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<t t-if="offensive">Mark as offensive</t>
|
||||
<t t-if="not offensive">Close post</t>
|
||||
</button>
|
||||
<span class="text-muted">or</span>
|
||||
<a class="btn btn-link" t-attf-href="/forum/#{ slug(forum) }/question/#{ slug(question) }">back to post</a>
|
||||
</div>
|
||||
@@ -1005,9 +1011,9 @@
|
||||
<a t-attf-style="cursor: pointer;#{not answer.can_flag and 'color:#999;' or ''}"
|
||||
t-attf-class="flag fa fa-flag #{not answer.can_flag and 'karma_required' or ''}"
|
||||
t-attf-data-karma="#{not answer.can_flag and answer.forum_id.karma_flag or 0}"
|
||||
t-attf-data-href="/forum/#{slug(forum)}/post/#{slug(answer)}/flag"
|
||||
>
|
||||
<t class="flag_flagged_label" t-esc="answer.state == 'flagged' and 'Flagged' or 'Flag'"/>
|
||||
t-attf-data-href="/forum/#{slug(forum)}/post/#{slug(answer)}/flag">
|
||||
<t t-if="answer.state == 'flagged'">Flagged</t>
|
||||
<t t-if="answer.state != 'flagged'">Flag</t>
|
||||
</a>
|
||||
</li>
|
||||
<li t-if="question.post_type == 'question'">
|
||||
|
||||
Reference in New Issue
Block a user