aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default')
-rw-r--r--templates/web/default/front/news.html11
-rw-r--r--templates/web/default/front/stats.html (renamed from templates/web/default/front_stats.html)0
-rw-r--r--templates/web/default/index.html19
3 files changed, 14 insertions, 16 deletions
diff --git a/templates/web/default/front/news.html b/templates/web/default/front/news.html
new file mode 100644
index 000000000..080034a28
--- /dev/null
+++ b/templates/web/default/front/news.html
@@ -0,0 +1,11 @@
+[%#
+ news = [
+ { date = '2008-12-11', text = '<a href="' _ c.config.IPHONE_URL _ '">' _ loc('Get FixMyStreet on your iPhone') _ '</a>' },
+ ]
+%]
+[% FOREACH item IN news %]
+ <p align="center" style="margin-bottom:0">
+ <img width="23" height="12" alt="[% loc('New!') %]" src="/i/new.png" border="0">[% item.date %] [% item.text %]</p>
+ </p>
+[% END %]
+
diff --git a/templates/web/default/front_stats.html b/templates/web/default/front/stats.html
index 4b98ef31e..4b98ef31e 100644
--- a/templates/web/default/front_stats.html
+++ b/templates/web/default/front/stats.html
diff --git a/templates/web/default/index.html b/templates/web/default/index.html
index ec07e2e91..4443e060f 100644
--- a/templates/web/default/index.html
+++ b/templates/web/default/index.html
@@ -19,21 +19,7 @@
[% END %]
</p>
-
-[% # --- insert iPhone details, not converted from old cgi script yet
- #
- # if (my $url = mySociety::Config::get('IPHONE_URL')) {
- # my $getiphone = _("Get FixMyStreet on your iPhone");
- # my $new = _("New!");
- # if ($q->{site} eq 'fixmystreet') {
- # $out .= <<EOF
- # <p align="center" style="margin-bottom:0">
- # <img width="23" height="12" alt="$new" src="/i/new.png" border="0">
- # <a href="$url">$getiphone</a>
- # </p>
- # EOF
- # }
-%]
+[% TRY %][% INCLUDE 'front/news.html' %][% CATCH file %][% END %]
[%
question
@@ -60,7 +46,8 @@
<li>[% loc('We send it to the council on your behalf') %]</li>
</ol>
- [% INCLUDE "front_stats.html" %]
+ [% INCLUDE "front/stats.html" %]
+ [% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</div>