aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/alert/list.html
blob: 14215b65dea9d7635952eb87a39a34571c4f6747 (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
[%
    IF pretty_pc;
        title = tprintf( loc("Local RSS feeds and email alerts for ‘%s’"), pretty_pc );
    ELSE;
        title = loc('Local RSS feeds and email alerts');
    END;
%]

[% INCLUDE 'header.html', title = title, bodyclass = 'fullwidthpage' %]

[% IF pretty_pc %]
    [%
        pretty_pc = pretty_pc | html | replace(' ', ' ');
        title = tprintf( loc("Local RSS feeds and email alerts for ‘%s’"), pretty_pc );
    %]
[% END %]


<h1>[% title %]</h1>

[% IF photos.size %]
<div class="alerts__nearby-activity">
    <h2>[% loc('Photos of recent nearby reports') %]</h2>
    <div class="alerts__nearby-activity__photos">
      [% FOREACH p IN photos %]
        <a href="/report/[% p.id %]">
            <img border="0" height="100" src="[% p.photos.first.url_tn %]"
            alt="[% p.title | html %]" title="[% p.title | html %]">
        </a>
      [% END %]
    </div>
</div>
[% END %]

<form id="alerts" class="js-alert-list" name="alerts" method="post" action="/alert/subscribe">

  [% INCLUDE 'alert/_list.html' %]

</form>

[% INCLUDE 'footer.html' %]