summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2015-01-12 15:22:21 +0100
committerJeremy Kersten <jke@odoo.com>2015-01-12 15:27:32 +0100
commit30a6be00ddc36dec9e33e8c910366db9712cb357 (patch)
treef2c1f1bae9d48aa99befe8900bf4d9a413ddbdc7
parent0de1d896482e24dbe69a0e00a7e753d72b5c082a (diff)
[IMP] website_forum: add direct link to the answer. #4364
-rw-r--r--addons/website_forum/views/website_forum.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml
index abb50482881..d4b1f03bae1 100644
--- a/addons/website_forum/views/website_forum.xml
+++ b/addons/website_forum/views/website_forum.xml
@@ -651,7 +651,10 @@
t-field-options='{"widget": "contact", "country_image": true, "fields": ["name", "country_id"]}'
style="display: inline-block;"/>
<div t-field="answer.create_uid" t-field-options='{"widget": "contact", "badges": true, "fields": ["karma"]}'/>
- <span class="text-muted">Answered on <span t-field="answer.create_date" t-field-options='{"format":"short"}'/></span>
+ <span class="text-muted">
+ <a t-attf-href="/forum/#{slug(question.forum_id)}/question/#{slug(question)}#answer_#{answer.id}">Answered on</a>
+ <span t-field="answer.create_date" t-field-options='{"format":"short"}'/>
+ </span>
</div>
<div class="visible-xs text-center">
<t t-call="website_forum.vote">