Edgewall Software

Changes between Version 4 and Version 5 of 0.12/TracNotification


Ignore:
Timestamp:
Jul 12, 2011, 12:01:40 PM (13 years ago)
Author:
osimons
Comment:

Now using new-style Genshi text templates.

Legend:

Unmodified
Added
Removed
Modified
  • 0.12/TracNotification

    v4 v5  
    101101$ticket_body_hdr
    102102$ticket_props
    103 #choose ticket.new
    104   #when True
     103{% choose ticket.new %}\
     104{%   when True %}\
    105105$ticket.description
    106   #end
    107   #otherwise
    108     #if changes_body
    109 Changes (by $change.author):
     106{%   end %}\
     107{%   otherwise %}\
     108{%     if changes_body %}\
     109${_('Changes (by %(author)s):', author=change.author)}
    110110
    111111$changes_body
    112     #end
    113     #if changes_descr
    114       #if not changes_body and not change.comment and change.author
    115 Description changed by $change.author:
    116       #end
     112{%     end %}\
     113{%     if changes_descr %}\
     114{%       if not changes_body and not change.comment and change.author %}\
     115${_('Description changed by %(author)s:', author=change.author)}
     116{%       end %}\
    117117$changes_descr
    118118--
    119     #end
    120     #if change.comment
    121 
    122 Comment${not changes_body and '(by %s)' % change.author or ''}:
     119{%     end %}\
     120{%     if change.comment %}\
     121
     122${changes_body and _('Comment:') or _('Comment (by %(author)s):', author=change.author)}
    123123
    124124$change.comment
    125     #end
    126   #end
    127 #end
     125{%     end %}\
     126{%   end %}\
     127{% end %}\
    128128
    129129--
    130 Ticket URL: <$ticket.link>
     130${_('Ticket URL: <%(link)s>', link=ticket.link)}
    131131$project.name <${project.url or abs_href()}>
    132132$project.descr