diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-17 22:09:22 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-17 22:09:22 +0100 |
commit | 4324fbc7a336b281e491c46bc665a965e852040e (patch) | |
tree | 667a9901fb0adfa791ddb21770d66924c9bc4afc | |
parent | 76b34e2176dc9b02259c62209c6c23a8a7e69c23 (diff) |
Implement Fiksgatami's norwegian_frontpage branch in Catalyst templates.
-rw-r--r-- | templates/web/default/front/news.html | 11 | ||||
-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.html | 19 | ||||
-rw-r--r-- | templates/web/fiksgatami/front/news.html | 12 | ||||
-rw-r--r-- | templates/web/fiksgatami/front/tips.html | 1 |
5 files changed, 27 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> diff --git a/templates/web/fiksgatami/front/news.html b/templates/web/fiksgatami/front/news.html new file mode 100644 index 000000000..8ebee90f8 --- /dev/null +++ b/templates/web/fiksgatami/front/news.html @@ -0,0 +1,12 @@ +[% + news = [ + { date = '2011-04-26', text = '<a href="' _ c.config.ANDROID_URL _ '">Last ned FiksGataMi-app for din Android-telefon.</a>' }, + { date = '2011-04-23', text = 'FiksGataMi sender nå veisaker også til vegvesenet slik at kommuner ikke trenger sende saker videre.' }, + ] +%] +[% 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/fiksgatami/front/tips.html b/templates/web/fiksgatami/front/tips.html new file mode 100644 index 000000000..fcf765c4a --- /dev/null +++ b/templates/web/fiksgatami/front/tips.html @@ -0,0 +1 @@ +<p><a href="http://wiki.nuug.no/grupper/fiksgatami/tips">Tips til deg som har mottatt en sak fra FiksGataMi.</a></p> |