Browse files

fixed mail templates styles

  • Loading branch information...
1 parent 92c06ef commit 1c4dfb343cd86d9f61d00b7663046849c8aecc92 @cekk cekk committed Jul 22, 2013
View
2 CHANGES.rst
@@ -5,7 +5,7 @@ Changelog for Poi
2.2.5 (unreleased)
------------------
-- Nothing changed yet.
+- Fixed mail templates styles for new issue and new response [cekk]
2.2.4 (2013-07-02)
View
11 Products/Poi/browser/templates/poi_email_new_issue_html.pt
@@ -27,13 +27,16 @@
<h4 i18n:translate="">Issue Information</h4>
<dl class="docutils">
<dt i18n:translate="">Issue</dt>
- <dd>
+ <dd><p>
<tal:title content="options/issue_title" />
- (<a tal:attributes="href options/issue_url" tal:content="options/issue_url" />)
+ (<a tal:attributes="href options/issue_url" tal:content="options/issue_url" />)</p>
+ </dd>
+ <dt i18n:translate="">Issue Details:</dt>
+ <dd>
+ <p><tal:desc tal:content="structure options/issue_details" />
+ (<a tal:attributes="href options/issue_url" tal:content="options/issue_url" />)</p>
</dd>
</dl>
- <p><strong i18n:translate="">Issue Details:</strong></p>
- <pre tal:content="structure options/issue_details" />
<p class="automated" i18n:translate="">This is an automated email, please do not reply.</p>
<p class="from_name" tal:content="options/from_name" />
</div>
View
30 Products/Poi/browser/templates/poi_email_new_response_html.pt
@@ -30,20 +30,26 @@
<dl class="docutils">
<dt i18n:translate="">Issue:</dt>
<dd>
- <tal:title content="options/issue_title" />
- (<a tal:attributes="href options/issue_url" tal:content="options/issue_url" />)
+ <p>
+ <tal:title content="options/issue_title" />
+ (<a tal:attributes="href options/issue_url" tal:content="options/issue_url" />)
+ </p>
+ <ul tal:condition="python:options.get('changes') or options.get('attachment_id')">
+ <li tal:repeat="change options/changes">
+ <tal:name content="change/name" />: <tal:before content="change/before" /> &#8594; <tal:after content="change/after" />
+ </li>
+ <li tal:condition="options/attachment_id" i18n:translate="">An attachment has been added with id
+ <tal:id i18n:name="id" tal:content="options/attachment_id" />.
+ </li>
+ </ul>
</dd>
+ <tal:details condition="options/response_details">
+ <dt i18n:translate="">Response Details:</dt>
+ <dd>
+ <p tal:content="structure options/response_details" ></p>
+ </dd>
+ </tal:details>
</dl>
- <ul tal:condition="python:options.get('changes') or options.get('attachment_id')">
- <li tal:repeat="change options/changes">
- <tal:name content="change/name" />: <tal:before content="change/before" /> &#8594; <tal:after content="change/after" />
- </li>
- <li tal:condition="options/attachment_id" i18n:translate="">An attachment has been added with id
- <tal:id i18n:name="id" tal:content="options/attachment_id" />.
- </li>
- </ul>
- <p tal:condition="options/response_details"><strong i18n:translate="">Response Details:</strong></p>
- <pre tal:content="structure options/response_details" />
</div>
<p class="automated" i18n:translate="">This is an automated email, please do not reply.</p>
<p class="from_name" tal:content="options/from_name" />
View
18 Products/Poi/skins/Poi/poi-email.css
@@ -1,12 +1,6 @@
-BODY {
- font-size: 0.9em;
-}
-
-H4 {
- font-size: 1.2em;
- font-weight: bold;
-}
-
-DT {
- font-weight: bold;
-}
+ body { font-size: 12px; font-family: Arial, sans-serif; line-height: 1.5em; }
+ h4 { font-size: 1.2em; font-weight: bold; border-top: 1px dotted #CCC; padding-top: 20px; }
+ dl { margin: 0 0 20px; border-bottom: 1px dotted #CCC; padding-bottom: 20px;}
+ dt { font-weight: bold; font-size: 13px; margin: 15px 0 5px;}
+ .from_name { font-size: 11px; color: #444;}
+ .automated { font-style: italic; color: #444;}

0 comments on commit 1c4dfb3

Please sign in to comment.