Author: rjollos
Date: Tue Mar 5 08:12:27 2013
New Revision: 1452691
URL: http://svn.apache.org/r1452691
Log:
Fixes #362:
Show attachment names when the ''Comments'' only checkbox is selected.
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html?rev=1452691&r1=1452690&r2=1452691&view=diff
==============================================================================
---
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
(original)
+++
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
Tue Mar 5 08:12:27 2013
@@ -191,6 +191,8 @@
if (!$('#trac-comments-oldest').checked())
$('#trac-comments-oldest').click().change();
$("#changelog").replaceWith(items.filter("#changelog"));
+ if ($('#trac-comments-only-toggle').attr('checked'))
+ $('#trac-comments-only-toggle').click().attr('checked', true);
// Show warning
var new_changes = $("#changelog .trac-new");
$("#trac-edit-warning").toggle(new_changes.length != 0);
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html?rev=1452691&r1=1452690&r2=1452691&view=diff
==============================================================================
---
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html
(original)
+++
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html
Tue Mar 5 08:12:27 2013
@@ -105,8 +105,8 @@ Arguments:
</h4>
<ul py:if="change.fields" class="changes">
<li py:for="field_name, field in sorted(change.fields.iteritems(),
key=lambda item: item[1].label.lower())"
- class="${'trac-conflict' if preview and field_name in conflicts
else None}">
- <strong>${field.label}</strong>
+ class="trac-field-${field_name}${'trac-conflict' if preview and
field_name in conflicts else None}">
+ <strong class="trac-field-${field_name}">${field.label}</strong>
<py:choose>
<py:when test="field_name == 'attachment'"><i18n:msg params="name">
<a href="${href.attachment('ticket', ticket.id,
field.new)}"><em>${field.new