diff options
author | Chris Mytton <self@hecticjeff.net> | 2013-09-24 16:10:08 +0100 |
---|---|---|
committer | Chris Mytton <self@hecticjeff.net> | 2013-09-24 16:15:58 +0100 |
commit | 2a96f054e51a1a0e8319cc0a0c09b309d91439c2 (patch) | |
tree | 3caf884ddf0822f0deebfcbd055311eb07928cdd | |
parent | 0388429012dabd4381cc0d96d2c784947de74cf6 (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
-rw-r--r-- | templates/web/bromley/report/_item.html | 25 | ||||
-rw-r--r-- | web/cobrands/bromley/bromley.scss | 3 |
2 files changed, 28 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> diff --git a/web/cobrands/bromley/bromley.scss b/web/cobrands/bromley/bromley.scss index 91ec75fea..eee4359de 100644 --- a/web/cobrands/bromley/bromley.scss +++ b/web/cobrands/bromley/bromley.scss @@ -108,3 +108,6 @@ body { color: #333; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; clear: both; } +.issue-list-a li .text small { + display: inline; +} |