aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/alert/list.html
blob: 447bfcd76816930d1569351a2477e4212822f5a6 (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 = 'twothirdswidthpage' %]

[% 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>

<form id="alerts" name="alerts" method="post" action="/alert/subscribe">

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

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

</form>

[% INCLUDE 'footer.html' %]