aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2013-09-24 16:10:08 +0100
committerChris Mytton <self@hecticjeff.net>2013-09-24 16:15:58 +0100
commit2a96f054e51a1a0e8319cc0a0c09b309d91439c2 (patch)
tree3caf884ddf0822f0deebfcbd055311eb07928cdd /templates
parent0388429012dabd4381cc0d96d2c784947de74cf6 (diff)
[Bromley] Fix right click links in IE8
When IE8 encounters a link with block level elements inside it (i.e. elements with `display: block`) then it won't give the option to "Open in a new tab" when you right click the link. This fix simply makes all elements inside the link inline, which fixes the problem. This is a Bromley-specific fix. Closes FixMyStreet-Commercial/issues#100
Diffstat (limited to 'templates')
-rw-r--r--templates/web/bromley/report/_item.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/web/bromley/report/_item.html b/templates/web/bromley/report/_item.html
new file mode 100644
index 000000000..cd3fbc18c
--- /dev/null
+++ b/templates/web/bromley/report/_item.html
@@ -0,0 +1,25 @@
+<li>
+<a class="text" href="[% c.uri_for('/report', problem.id ) %]">
+ [% IF problem.photo;
+ photo = problem.get_photo_params
+ %]
+ <img class="img" height="60" width="90" src="[% photo.url_fp %]" alt="">
+ [% END %]
+ <span>[% problem.title | html %]</span><br />
+ <small>[% prettify_dt( problem.confirmed, 1 ) %]
+ [%- IF dist %], [% dist %]km[% END %]
+ [%- IF include_lastupdate AND problem.confirmed != problem.lastupdate AND problem.whensent != problem.lastupdate %],
+ [% tprintf(loc('last updated %s'), prettify_dt( problem.lastupdate, 1 ) ) %]
+ [%- END %]
+ [% IF include_lastupdate %]
+ [% IF problem.bodies_str_ids.size > 1 %] [% loc('(sent to both)') %]
+ [% ELSIF problem.bodies_str_ids.size == 0 %] [% loc('(not sent to council)') %]
+ [% END %]
+ [% END %]
+ [% IF NOT no_fixed AND problem.is_fixed %]
+ [% loc('(fixed)') %]
+ [% ELSIF NOT no_fixed AND problem.is_closed %]
+ [% loc('(closed)') %]
+ [% END %]</small>
+</a>
+</li>