Fix & align mail text ... again
authornupplaPhil <admin+github@philipp.info>
Sun, 8 Mar 2020 07:26:21 +0000 (08:26 +0100)
committernupplaPhil <admin+github@philipp.info>
Sun, 8 Mar 2020 07:26:21 +0000 (08:26 +0100)
view/templates/email/html.tpl
view/templates/email/notify/html.tpl
view/templates/email/system/html.tpl

index 103572e..08de50a 100644 (file)
                                <div style="clear: both;"></div>
                        </td>
                </tr>
+               <tr>
+                       <td>
+                               {{$htmlversion nofilter}}
+                       </td>
+               </tr>
        </tbody>
        </table>
-       <p>
-       {{$htmlversion nofilter}}
-       </p>
 </body>
 </html>
index f7c3f7d..1be8c9e 100644 (file)
@@ -1,20 +1,48 @@
 <table>
-<tbody>
-       <tr><td colspan="2" style="padding-top:22px;">{{$preamble nofilter}}</td></tr>
-
+       <thead>
+               <tr>
+                       <td colspan="2" style="padding-top:22px;">
+                               {{$preamble nofilter}}
+                       </td>
+               </tr>
+       </thead>
 {{if $content_allowed}}
+       <tbody>
        {{if $source_photo}}
-       <tr>
-               <td style="padding-left:22px;padding-top:22px;width:60px;" valign="top" rowspan=3><a href="{{$source_link}}"><img style="border:0px;width:48px;height:48px;" src="{{$source_photo}}"></a></td>
-               <td style="padding-top:22px;"><a href="{{$source_link}}">{{$source_name}}</a></td>
-       </tr>
+               <tr>
+                       <td style="padding-left:22px;padding-top:22px;width:60px;" valign="top" rowspan=3><a href="{{$source_link}}"><img style="border:0px;width:48px;height:48px;" src="{{$source_photo}}"></a></td>
+                       <td style="padding-top:22px;"><a href="{{$source_link}}">{{$source_name}}</a></td>
+               </tr>
        {{/if}}
-       <tr><td style="font-weight:bold;padding-bottom:5px;">{{$title}}</td></tr>
-       <tr><td style="padding-right:22px;">{{$htmlversion nofilter}}</td></tr>
+               <tr>
+                       <td style="font-weight:bold;padding-bottom:5px;">{{$title}}</td>
+               </tr>
+               <tr>
+                       <td style="padding-right:22px;">{{$htmlversion nofilter}}
+               </td>
+               </tr>
 {{/if}}
-       <tr><td colspan="2" style="padding-top:11px;">{{$hsitelink nofilter}}</td></tr>
-       <tr><td colspan="2" style="padding-bottom:11px;">{{$hitemlink nofilter}}</td></tr>
-       <tr><td></td><td>{{$thanks}}</td></tr>
-       <tr><td></td><td>{{$site_admin}}</td></tr>
-</tbody>
+       </tbody>
+       <tfoot>
+               <tr>
+                       <td colspan="2" style="padding-top:11px;">
+                               {{$hsitelink nofilter}}
+                       </td>
+               </tr>
+               <tr>
+                       <td colspan="2" style="padding-bottom:11px;">
+                               {{$hitemlink nofilter}}
+                       </td>
+               </tr>
+               <tr>
+                       <td>
+                               {{$thanks}}
+                       </td>
+               </tr>
+               <tr>
+                       <td>
+                               {{$site_admin}}
+                       </td>
+               </tr>
+       </tfoot>
 </table>
index f32825d..8f4e157 100644 (file)
@@ -1,5 +1,28 @@
 <table>
-<tr><td style="padding-right:22px;">{{$htmlversion nofilter}}</td></tr>
-<tr><td>{{$thanks}}</td></tr>
-<tr><td>{{$site_admin}}</td></tr>
+       <thead>
+       <tr>
+               <td>
+                       {{$preamble nofilter}}
+               </td>
+       </tr>
+       </thead>
+       <tbody>
+               <tr>
+                       <td style="padding-right:22px;">
+                               {{$htmlversion nofilter}}
+                       </td>
+               </tr>
+       </tbody>
+       <tfoot>
+               <tr>
+                       <td>
+                               {{$thanks}}
+                       </td>
+       </tr>
+       <tr>
+               <td>
+                       {{$site_admin}}
+               </td>
+       </tr>
+       </tfoot>
 </table>