aboutsummaryrefslogtreecommitdiffstats
path: root/templates/email/default/contact.html
blob: 301245f1b1bac18b05e79530103ef437e0077e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[%

subject_html = subject | html;
name = form_name | html;
email_summary = "“" _ subject_html _ "” – Message from " _ name _ " on " _ host;
email_footer = "Sent via " _ host _ ", IP " _ ip;
email_columns = 1;

PROCESS '_email_settings.html';

INCLUDE '_email_top.html';

%]

<th style="[% td_style %][% contact_meta_style %]">
  <table [% table_reset | safe %]>
    <tr>
      <th style="[% contact_th_style %]">From</th>
      <td style="[% contact_td_style %]">
        [% name %] &lt;<a href="mailto:[% em | html %]">[% em | html %]</a>&gt;
        [%~ 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>
</tr>

<tr>
<th style="[% td_style %][% only_column_style %]">
  <h1 style="[% h1_style %]">[% subject | html %]</h1>
  [% message | html | html_para | replace('<p>', '<p style="' _ p_style _ '">') %]
  [%~ IF complaint %]
  <p style="[% secondary_p_style %]">
    [% complaint | html %]
    - <a href="[% problem_url %]">Report</a>
    - <a href="[% admin_url %]">Admin</a>
  </p>
  [%~ END %]
  [%~ IF user_agent %]
  <p style="[% secondary_p_style %]">
    User Agent: [% user_agent | html %]
  </p>
  [%~ END %]
</th>

[% INCLUDE '_email_bottom.html' %]