Author: gjm
Date: Tue Jan 8 18:17:47 2013
New Revision: 1430428
URL: http://svn.apache.org/viewvc?rev=1430428&view=rev
Log:
make sure that DIV#vc-description is available when there is no ticket
description - fixes #344 (thanks olemis)
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html?rev=1430428&r1=1430427&r2=1430428&view=diff
==============================================================================
---
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html
(original)
+++
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html
Tue Jan 8 18:17:47 2013
@@ -106,10 +106,12 @@ Arguments:
title="Reply, quoting this description" />
</form>
</div>
- <div py:if="ticket.description" class="searchable" xml:space="preserve"
+ <div class="searchable" xml:space="preserve"
data-edit="${'inplace' if can_edit or can_create else None}"
id="vc-description">
- ${wiki_to_html(context, ticket.description,
escape_newlines=preserve_newlines)}
+ <py:if test="ticket.description">
+ ${wiki_to_html(context, ticket.description,
escape_newlines=preserve_newlines)}
+ </py:if>
</div>
<br py:if="not ticket.description" style="clear: both" />
</div>