Ticket #1459: 1459.diff
| File 1459.diff, 1.3 KB (added by eblot, 5 years ago) |
|---|
-
trac/ticket/templates/ticket.html
195 195 <py:when test="field_name == 'attachment'"> 196 196 <a href="${href.attachment('ticket', ticket.id, field.new)}"><em>${field.new}</em></a> added 197 197 </py:when> 198 <py:when test="field_name == 'cc'"> 199 <py:with vars='newcc=map(lambda s: s.strip(), field.new.split(",")); 200 oldcc=map(lambda s: s.strip(), field.old.split(",")); 201 added=", ".join([x for x in newcc if x and x not in oldcc]); 202 removed=", ".join([x for x in oldcc if x and x not in newcc])'> 203 <py:if test='added'>added: <em>${added}</em></py:if><py:if test='added and removed'>;</py:if> 204 <py:if test='removed'>removed: <em>${removed}</em></py:if> 205 </py:with> 206 </py:when> 198 207 <py:when test="field.old and field.new"> 199 208 changed 200 209 <py:choose>
