[IMP] as the closing reason is not required, do not display it if none is present

This commit is contained in:
Martin Trigaux
2014-05-20 14:50:51 +02:00
parent 70d3652c27
commit 4d9aa300a7
+1 -1
View File
@@ -436,7 +436,7 @@
</h1>
<div class="alert alert-info text-center" t-if="question.state == 'close'">
<p class="mt16">
<b>The question has been closed for reason: <i t-esc="question.closed_reason_id.name"/></b>
<b>The question has been closed<t t-if="question.closed_reason_id"> for reason: <i t-esc="question.closed_reason_id.name"/></t></b>
</p>
<t t-if="question.closed_uid">
<b>by <a t-attf-href="/forum/#{ slug(forum) }/user/#{ question.closed_uid.id }"