Skip to content

Instantly share code, notes, and snippets.

@livedata
Created May 18, 2012 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save livedata/e817766c844b7161de8e to your computer and use it in GitHub Desktop.
Save livedata/e817766c844b7161de8e to your computer and use it in GitHub Desktop.
1,2c1,3
< $ticket_body_hdr
< $ticket_props
---
> <div style="margin:0;padding:0;font-family:Tahoma,Verdana,Helvetica,Arial,sans-serif,sans;">
> <a href="${project.url or abs_href()}" style="text-decoration:none;display:block;letter-spacing:1px;font-weight:bold;background-color:#f8f8f8;color:#06c;padding:4px;margin:0;border-bottom:1px solid #eee;">$project.name</a>
> <a href="$ticket.link" style="text-decoration:none;display:block;background-color:#fbfbfb;color:#555;padding:4px;margin:0;border-bottom:1px solid #ddd;font-size:110%;">$ticket_body_hdr</a>
4,26c5,32
< {% when True %}\
< $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 %}\
<
< ${_('Comment:') if changes_body else _('Comment (by %(author)s):', author=change.author)}
<
< $change.comment
< {% end %}\
< {% end %}\
---
> {% when True %}\
> <div style="padding:1.5em;">$ticket.description</div>
> {% end %}\
> {% otherwise %}\
> {% if changes_body %}\
> <fieldset style="margin:1em 0.25em;border-color:#069;border-left:none;border-right:none;">
> <legend style="color:#069;"><small><em>Changes</em> (by <strong>$change.author</strong>)</small></legend>
> $changes_body
> </fieldset>
> {% end %}\
> {% if changes_descr %}\
> <fieldset style="margin:1em 0.25em;border-color:#069;border-left:none;border-right:none;">
> {% if not changes_body and not change.comment and change.author %}\
> <legend style="color:#069;"><small><em>Description changed by</em> <strong>$change.author</strong></small></legend>
> {% end %}\
> {% otherwise %}\
> <legend style="color:#069;"><small><em>Description</em></small></legend>
> {% end %}\
> <div style="padding:1.5em;">$changes_descr</div>
> </fieldset>
> {% end %}\
> {% if change.comment %}\
> <fieldset style="margin:1em 0.25em;border-color:#069;border-left:none;border-right:none;">
> <legend style="color:#069;"><small><em>Comment</em> ${not changes_body and '(by <strong>%s</strong>)' % change.author or ''}</small></legend>
> <div style="padding:1.5em;">$change.comment</div>
> </fieldset>
> {% end %}\
> {% end %}\
29,32c35,37
< --
< ${_('Ticket URL: <%(link)s>', link=ticket.link)}
< $project.name <${project.url or abs_href()}>
< $project.descr
---
> <div style="font-size:80%;color:#999;border-top:1px dotted #999;">$ticket_props</div>
> <cite style="display:block;padding:4px;background-color:#f0f0f0;color:#999;font-size:95%;border-top:1px dotted #ccc;">$project.descr</cite>
> </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment