aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/report/display.html
blob: fd7580ac193c174864029a4a1dd2d6d4a1e72f05 (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
55
56
[% 
    PROCESS "maps/${map.type}.html";

    problem_title = problem.title_safe _ ' - ' _ loc('Viewing a problem');
    SET rss = [ loc('Updates to this problem, FixMyStreet'), "/rss/$problem.id" ] IF c.cobrand.moniker != 'emptyhomes';
    SET robots = 'index, nofollow';
    SET robots = 'noindex, nofollow' IF c.cobrand.moniker == 'emptyhomes';
    INCLUDE 'header.html'
        title = problem_title
%]

[% IF c.cobrand.moniker != 'emptyhomes' %]
    [% map_html %]
    </div>
[% END %]

<div id="side">

[% INCLUDE 'report/banner.html' %]
[% INCLUDE 'report/_main.html' %]

<p align="right">
    <small>
        <a rel="nofollow" href="[% c.uri_for( '/contact', { id => problem.id } ) %]">[% loc('Offensive? Unsuitable? Tell us' ) %]</a>
    </small>
</p>

[% IF c.cobrand.moniker != 'emptyhomes' %]
<p style="padding-bottom: 0.5em; border-bottom: dotted 1px #999999;" align="right">
    <a href="[% c.uri_for( '/around', { lat => short_latitude, lon => short_longitude } ) %]">[% loc( 'More problems nearby' ) %]</a>
</p>

<div id="alert_links">
    <a rel="nofollow" id="email_alert" href="[% c.uri_for( '/alert/subscribe', { id => problem.id } ) %]">[% loc('Email me updates' ) %]</a>

    <form action="[% c.uri_for( '/alert/subscribe' ) %]" method="post" id="email_alert_box">
        <p>[% loc('Receive email when updates are left on this problem.' ) %]</p>
        <label class="n" for="alert_rznvy">[% loc('Email:') %]</label>
        <input type="email" name="rznvy" id="alert_rznvy" value="[% email | html %]" size="30">
        <input type="hidden" name="id" value="[% problem.id %]">
        <input type="hidden" name="type" value="updates">
        <input type="submit" value="[% loc('Subscribe') %]">
    </form>
    &nbsp;
    <a href="[% c.uri_for( '/rss', problem.id ) %]">
        <img src="/i/feed.png" width="16" height="16" title="[% loc('RSS feed') %]" alt="[% loc('RSS feed of updates to this problem' ) %]" border="0" style="vertical-align: middle">
    </a>
</div>

[% INCLUDE 'report/updates.html' %]
[% INCLUDE 'report/update-form.html' %]
[% END %]

</div>

[% INCLUDE 'footer.html' %]