diff options
Diffstat (limited to 'templates/email/default')
-rw-r--r-- | templates/email/default/_email_settings.html | 1 | ||||
-rw-r--r-- | templates/email/default/contact.html | 13 | ||||
-rw-r--r-- | templates/email/default/contact.txt | 8 |
3 files changed, 21 insertions, 1 deletions
diff --git a/templates/email/default/_email_settings.html b/templates/email/default/_email_settings.html index 94045bd3c..bdb8af692 100644 --- a/templates/email/default/_email_settings.html +++ b/templates/email/default/_email_settings.html @@ -108,6 +108,7 @@ list_item_photo_style = "float: right; margin: 0 0 1em 1em; border: none;" contact_meta_style = "padding: 15px ${ column_padding }px; vertical-align: top; background-color: $secondary_column_background_color; border-bottom: 1px solid $column_divider_color;" contact_th_style = "vertical-align: top; padding: 0.4em 1em 0 0; white-space: nowrap; text-align: left;" contact_td_style = "vertical-align: top; padding: 0.4em 0 0.4em 0; width: 100%;" +contact_admin_links_style = "display: block;" # The below is so the buttons work okay in Outlook: https://litmus.com/blog/a-guide-to-bulletproof-buttons-in-email-design button_style = "display: inline-block; border: 10px solid $button_background_color; border-width: 10px 15px; border-radius: $button_border_radius; background-color: $button_background_color; color: $button_text_color; font-size: 18px; line-height: 21px; font-weight: $button_font_weight; text-decoration: underline;" diff --git a/templates/email/default/contact.html b/templates/email/default/contact.html index 8dc9f3af0..33c858dfb 100644 --- a/templates/email/default/contact.html +++ b/templates/email/default/contact.html @@ -16,7 +16,18 @@ INCLUDE '_email_top.html'; <table [% table_reset %]> <tr> <th style="[% contact_th_style %]">From</th> - <td style="[% contact_td_style %]">[% name %] <<a href="mailto:[% em | html %]">[% em | html %]</a>></td> + <td style="[% contact_td_style %]"> + [% name %] <<a href="mailto:[% em | html %]">[% em | html %]</a>> + [%~ IF user_admin_url %] + <small style="[% contact_admin_links_style %]"> + <a href="[% user_admin_url | html %]">Edit user</a> – + [%~ IF user_latest_report_admin_url %] + <a href="[% user_latest_report_admin_url | html %]">Edit latest report</a> – + [%~ END %] + <a href="[% user_reports_admin_url | html %]">Show all reports</a> + </small> + [%~ END %] + </td> </tr> </table> </th> diff --git a/templates/email/default/contact.txt b/templates/email/default/contact.txt index bd97d17a6..67ff6f610 100644 --- a/templates/email/default/contact.txt +++ b/templates/email/default/contact.txt @@ -6,6 +6,14 @@ Subject: [% site_name %] message: [% subject %] [ [% complaint %] - [% problem_url %] - [% admin_url %] ] [% END %] +[%~ IF user_admin_url %] +[ Edit user: [% user_admin_url %] ] +[%~ IF user_latest_report_admin_url %] +[ Edit latest report: [% user_latest_report_admin_url %] ] +[%~ END %] +[ Show all reports: [% user_reports_admin_url %] ] +[%~ END %] + -- Sent by contact form on [% host %]. IP address [% ip %], user agent [% user_agent %] |