~openerp-dev/openobject-addons/saas-4-forum-fixes2-mat

« back to all changes in this revision

Viewing changes to website_forum/views/website_forum.xml

  • Committer: Martin Trigaux
  • Date: 2014-05-20 12:50:51 UTC
  • Revision ID: mat@openerp.com-20140520125051-2uys3pdotik7a8y9
[IMP] as the closing reason is not required, do not display it if none is present

Show diffs side-by-side

added added

removed removed

Lines of Context:
436
436
                </h1>
437
437
                <div class="alert alert-info text-center" t-if="question.state == 'close'">
438
438
                    <p class="mt16">
439
 
                        <b>The question has been closed for reason: <i t-esc="question.closed_reason_id.name"/></b>
 
439
                        <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>
440
440
                    </p>
441
441
                    <t t-if="question.closed_uid">
442
442
                        <b>by <a t-attf-href="/forum/#{ slug(forum) }/user/#{ question.closed_uid.id }"