aboutsummaryrefslogtreecommitdiffstats
path: root/templates/email/default/_email_sidebar.html
blob: b90a55c28767ff76dab2a96f87cc500601cfa711 (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
[%

# There are cases (eg: when sending email about an update on a problem)
# where `object` might not be a report. So in those cases, you can pass
# in a `report` argument, which should be the report the email is about.
# Otherwise, we assume the `object` you passed is a report.
DEFAULT report = object;

# There are cases (eg: when confirming a not-yet-published report) where
# you will want the map image to link to somewhere other than the report
# page. So in those cases, you can pass in a custom `url` argument.
DEFAULT url = cobrand.base_url_for_report(report) _ report.url

~%]
<th style="[% td_style %][% secondary_column_style %]" id="secondary_column">
  [% IF url %]
  <a href="[% url %]"><img style="[% map_image_style %]" src="[% inline_image(report.static_map, 'map.jpeg') %]" width="310" height="200" alt=""></a>
  [% END %]
  [% start_padded_box | safe %]
    [%~ IF object.photo %]
      <img style="[% preview_photo_style %]" src="[% inline_image(object.get_first_image_fp) %]" alt="" align="right">
    [%~ END %]
    [%~ content | safe %]
  [% end_padded_box | safe %]
</th>