aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/default/report/_main.html2
-rw-r--r--templates/web/default/report/photo.html8
-rw-r--r--templates/web/fixmystreet/report/_main.html2
-rw-r--r--templates/web/fixmystreet/report/photo.html8
-rw-r--r--templates/web/southampton/report/photo.html6
-rw-r--r--web/cobrands/southampton/css.scss4
-rw-r--r--web/css/core.scss10
7 files changed, 21 insertions, 19 deletions
diff --git a/templates/web/default/report/_main.html b/templates/web/default/report/_main.html
index 3a9e60e7b..c21709ed0 100644
--- a/templates/web/default/report/_main.html
+++ b/templates/web/default/report/_main.html
@@ -15,6 +15,6 @@
[% add_links( problem.detail ) | html_para %]
-[% INCLUDE 'report/photo.html' object=problem center=1 %]
+[% INCLUDE 'report/photo.html' object=problem %]
diff --git a/templates/web/default/report/photo.html b/templates/web/default/report/photo.html
index 451a0479c..02ab9228b 100644
--- a/templates/web/default/report/photo.html
+++ b/templates/web/default/report/photo.html
@@ -1,6 +1,8 @@
[% IF c.cobrand.allow_photo_display && object.photo %]
[% photo = object.get_photo_params %]
-<p[% ' align="center"' IF center %]>
- <img alt="" height="[% photo.height %]" width="[% photo.width %]" src="[% photo.url %]">
-</p>
+<div class="update-img">
+ [% IF photo.url_full %]<a href="[% photo.url_full %]" rel="fancy">[% END
+ %]<img alt="Photo of this report" [% IF photo.height %]height="[% photo.height %]" width="[% photo.width %]"[% END %] src="[% photo.url %]">
+ [%- IF photo.url_full %]<span>zoom</span></a>[% END %]
+</div>
[% END %]
diff --git a/templates/web/fixmystreet/report/_main.html b/templates/web/fixmystreet/report/_main.html
index 8d9792a6d..2f54b55f5 100644
--- a/templates/web/fixmystreet/report/_main.html
+++ b/templates/web/fixmystreet/report/_main.html
@@ -14,7 +14,7 @@
[% END %]
</em></p>
[% INCLUDE 'report/_support.html' %]
- [% INCLUDE 'report/photo.html' object=problem center=1 %]
+ [% INCLUDE 'report/photo.html' object=problem %]
[% add_links( problem.detail ) | html_para %]
diff --git a/templates/web/fixmystreet/report/photo.html b/templates/web/fixmystreet/report/photo.html
deleted file mode 100644
index 02ab9228b..000000000
--- a/templates/web/fixmystreet/report/photo.html
+++ /dev/null
@@ -1,8 +0,0 @@
-[% IF c.cobrand.allow_photo_display && object.photo %]
-[% photo = object.get_photo_params %]
-<div class="update-img">
- [% IF photo.url_full %]<a href="[% photo.url_full %]" rel="fancy">[% END
- %]<img alt="Photo of this report" [% IF photo.height %]height="[% photo.height %]" width="[% photo.width %]"[% END %] src="[% photo.url %]">
- [%- IF photo.url_full %]<span>zoom</span></a>[% END %]
-</div>
-[% END %]
diff --git a/templates/web/southampton/report/photo.html b/templates/web/southampton/report/photo.html
deleted file mode 100644
index 07b6a8558..000000000
--- a/templates/web/southampton/report/photo.html
+++ /dev/null
@@ -1,6 +0,0 @@
-[% IF c.cobrand.allow_photo_display && object.photo %]
-[% photo = object.get_photo_params %]
-<p>
- <img alt="" height="[% photo.height %]" width="[% photo.width %]" src="[% photo.url %]">
-</p>
-[% END %]
diff --git a/web/cobrands/southampton/css.scss b/web/cobrands/southampton/css.scss
index 3bc2f1b54..592e72f2b 100644
--- a/web/cobrands/southampton/css.scss
+++ b/web/cobrands/southampton/css.scss
@@ -64,4 +64,8 @@ $darker: #768EB5;
#update_form {
clear: right;
}
+
+ .update-img {
+ text-align: left;
+ }
}
diff --git a/web/css/core.scss b/web/css/core.scss
index 72e483dfa..c7fac1717 100644
--- a/web/css/core.scss
+++ b/web/css/core.scss
@@ -431,6 +431,16 @@ $map_width: 500px;
font-size: smaller;
}
+ .update-img {
+ text-align: center;
+ }
+ .update-img span {
+ display: none;
+ }
+ #updates .update-img {
+ text-align: left;
+ }
+
// RSS feed XSL
#rss_items {