Mercurial > kallithea
view kallithea/templates/email/pull_request.html @ 8652:d379e2c39bba
templates: rename email_templates to email
The '_templates' suffix is not really needed as we are already in a
'templates' dir.
This is more in line with the other templates, and the new 'ini' template
directory.
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Thu, 08 Oct 2020 14:52:00 +0200 |
parents | kallithea/templates/email_templates/pull_request.html@cd3f326d0ff1 |
children | a36a8804e7be |
line wrap: on
line source
<%inherit file="main.html"/>\ \ <%block name="header">\ <% title = _('Mention on Pull Request %s "%s" by %s') % (pr_nice_id, pr_title, pr_user_created) if is_mention else _('Added as Reviewer of Pull Request %s "%s" by %s') % (pr_nice_id, pr_title, pr_user_created) %>\ <%include file="header.html" args="title=title,link=pr_url"/>\ </%block>\ \ <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td> <div> ${_('Pull request')} <a style="${link_style}" href="${pr_url}">${pr_nice_id} "${pr_title}"</a> ${_('by')} <span style="${data_style}">${pr_owner.full_name_and_username}</span>. </div> <div> ${_('from')} <a style="${link_text_style}" href="${pr_source_repo}">${pr_source_repo}</a> ${_('branch')} <span style="${data_style}">${pr_source_branch}</span> <br/> ${_('to')} <a style="${link_text_style}" href="${pr_target_repo}">${pr_target_repo}</a> ${_('branch')} <span style="${data_style}">${pr_target_branch}</span> </div> </td> </tr> <tr><td height="10px" style="height:10px"></td></tr> <tr> <td> <div> ${_('Description')}: </div> </td> </tr> <tr><td height="10px" style="height:10px"></td></tr> <tr> <td> <table cellpadding="0" cellspacing="0" width="100%" border="0" bgcolor="${color_background_grey}" style="border:1px solid ${color_border};border-radius:4px"> <tr> <td height="10px" style="height:10px" colspan="3"></td> </tr> <tr> <td width="20px" style="width:20px"></td> <td> <div style="${comment_style}">${body}</div> </td> <td width="20px" style="width:20px"></td> </tr> <tr> <td height="10px" style="height:10px" colspan="3"></td> </tr> </table> </td> </tr> <tr><td height="15px" style="height:15px"></td></tr> <tr> <td> <div>${_('Changesets')}:</div> </td> </tr> <tr><td height="10px" style="height:10px"></td></tr> <tr> <td style="${sans_style}"> <ul style="color:${color_link};padding-left:15px;margin:0"> %for revision, desc in pr_revisions: <li style="mso-special-format:bullet"> <a style="${link_style}" href="${h.canonical_url('changeset_home', repo_name=org_repo_name, revision=revision)}"> ${h.shorter(desc, 80, firstline=True)} </a> </li> %endfor </ul> </td> </tr> <tr> <td> <% title = _('View Pull Request') %>\ <%include file="button.html" args="url=pr_url,title=title,padding_bottom=False"/>\ </td> </tr> </table>