1
在Trac的0.12,一個有能力change the contents of email notifications,我試圖簡化模板,只包括變化,比如Trac的電子郵件通知模板語言
{% choose ticket.new %}\
{% when True %}\
$ticket_body_hdr
$ticket_props
$ticket.description
{% end %}\
{% otherwise %}\
{% if changes_body %}\
${_('Changes (by %(author)s):', author=change.author)}
$changes_body
{% end %}\
{% if changes_descr %}\
{% if not changes_body and not change.comment and change.author %}\
${_('Description changed by %(author)s:', author=change.author)}
{% end %}\
$changes_descr
--
{% end %}\
{% if change.comment %}\
${changes_body and _('Comment:') or _('Comment (by %(author)s):', author=change.author)}
$change.comment
{% end %}\
{% end %}\
{% end %}\
--
${_('Ticket URL: <%(link)s>', link=ticket.link)}
但我在哪裏找到的語言參考該模板寫在?以及如何我可以放置一個評論,可以進行修訂控制擴展像$ Id $?
我想回答你的第二個問題,但是你希望通過$ Id $看到什麼?您能否更詳細一點,即請舉例說明內容? – hasienda
感謝您的回答,它導致瞭解決方案。我在一週前編輯了你的答案,但它等待批准 - 我不知道誰是誰。精簡的答案是使用這樣的註釋:{#$ Id $#} –