Changes between Version 94 and Version 95 of TracNotification
- Timestamp:
- Mar 28, 2017, 12:19:56 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracNotification
v94 v95 102 102 The e-mail subject can be customized with the `ticket_subject_template` option, which contains a [http://genshi.edgewall.org/wiki/Documentation/text-templates.html Genshi text template] snippet. The default value is: 103 103 {{{#!genshi 104 $ prefix #$ticket.id: $summary104 ${prefix} #${ticket.id}: ${summary} 105 105 }}} 106 106 The following variables are available in the template: … … 109 109 * `prefix`: The prefix defined in `smtp_subject_prefix`. 110 110 * `summary`: The ticket summary, with the old value if the summary was edited. 111 * `ticket`: The ticket model object (see [trac:source:/trunk/trac/ticket/model.py model.py]). Individual ticket fields can be addressed by appending the field name separated by a dot, eg `$ ticket.milestone`.111 * `ticket`: The ticket model object (see [trac:source:/trunk/trac/ticket/model.py model.py]). Individual ticket fields can be addressed by appending the field name separated by a dot, eg `${ticket.milestone}`. 112 112 113 113 === Customizing the e-mail content … … 116 116 117 117 {{{#!genshi 118 $ ticket_body_hdr119 $ ticket_props118 ${ticket_body_hdr} 119 ${ticket_props} 120 120 {% choose ticket.new %}\ 121 121 {% when True %}\ 122 $ ticket.description122 ${ticket.description} 123 123 {% end %}\ 124 124 {% otherwise %}\ … … 126 126 ${_('Changes (by %(author)s):', author=change.author)} 127 127 128 $ changes_body128 ${changes_body} 129 129 {% end %}\ 130 130 {% if changes_descr %}\ … … 132 132 ${_('Description changed by %(author)s:', author=change.author)} 133 133 {% end %}\ 134 $ changes_descr134 ${changes_descr} 135 135 -- 136 136 {% end %}\ … … 139 139 ${changes_body and _('Comment:') or _('Comment (by %(author)s):', author=change.author)} 140 140 141 $ change.comment141 ${change.comment} 142 142 {% end %}\ 143 143 {% end %}\ … … 146 146 -- 147 147 ${_('Ticket URL: <%(link)s>', link=ticket.link)} 148 $ project.name<${project.url or abs_href()}>149 $ project.descr148 ${project.name} <${project.url or abs_href()}> 149 ${project.descr} 150 150 }}} 151 151 … … 182 182 Replace the following second row in the template: 183 183 {{{ 184 $ ticket_props184 ${ticket_props} 185 185 }}} 186 186