aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-12 00:25:15 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-12 00:25:15 +0000
commitd129a938cb1ccbbb04a6c65b3ec8127ce18359c7 (patch)
tree30204d392a4b06c969f5f9c0afdd65bccaad57e3
parent29f16126265e2757a0b67900c6dd9fcd334286fb (diff)
Footer for Norway.
-rw-r--r--perllib/FixMyStreet/Geocode.pm1
-rw-r--r--perllib/Page.pm34
-rw-r--r--templates/website/cobrands/fiksgatami/footer16
3 files changed, 36 insertions, 15 deletions
diff --git a/perllib/FixMyStreet/Geocode.pm b/perllib/FixMyStreet/Geocode.pm
index 2c583311b..ae85aba15 100644
--- a/perllib/FixMyStreet/Geocode.pm
+++ b/perllib/FixMyStreet/Geocode.pm
@@ -68,6 +68,7 @@ sub geocoded_string_coordinates {
try {
my ($easting, $northing) = Utils::convert_latlon_to_en( $latitude, $longitude );
} catch Error::Simple with {
+ mySociety::Locale::pop(); # We threw exception, so it won't have happened.
$error = shift;
$error = _('That location does not appear to be in Britain; please try again.')
if $error =~ /out of the area covered/;
diff --git a/perllib/Page.pm b/perllib/Page.pm
index fd573f8bc..4626e7a8e 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -301,6 +301,19 @@ sub header ($%) {
sub footer {
my ($q, %params) = @_;
+ my $pc = $q->param('pc') || '';
+ $pc = "?pc=" . ent($pc) if $pc;
+
+ %params = (%params,
+ navigation => _('Navigation'),
+ report => _("Report a problem"),
+ reports => _("All reports"),
+ alerts => _("Local alerts"),
+ help => _("Help"),
+ contact => _("Contact"),
+ pc => $pc,
+ );
+
my $html = template_include('footer', $q, template_root($q), %params);
if ($html) {
my $lang = $mySociety::Locale::lang;
@@ -310,9 +323,6 @@ sub footer {
return $html;
}
- my $pc = $q->param('pc') || '';
- $pc = "?pc=" . ent($pc) if $pc;
-
my $piwik = "";
if (mySociety::Config::get('BASE_URL') eq "http://www.fixmystreet.com") {
$piwik = <<EOF;
@@ -331,24 +341,18 @@ piwikTracker.enableLinkTracking();
EOF
}
- my $navigation = _('Navigation');
- my $report = _("Report a problem");
- my $reports = _("All reports");
- my $alerts = _("Local alerts");
- my $help = _("Help");
- my $contact = _("Contact");
my $orglogo = _('<a href="http://www.mysociety.org/"><img id="logo" width="133" height="26" src="/i/mysociety-dark.png" alt="View mySociety.org"><span id="logoie"></span></a>');
my $creditline = _('Built by <a href="http://www.mysociety.org/">mySociety</a>, using some <a href="http://github.com/mysociety/fixmystreet">clever</a>&nbsp;<a href="https://secure.mysociety.org/cvstrac/dir?d=mysociety/services/TilMa">code</a>.');
return <<EOF;
</div></div>
-<h2 class="v">$navigation</h2>
+<h2 class="v">$params{navigation}</h2>
<ul id="navigation">
-<li><a href="/">$report</a></li>
-<li><a href="/reports">$reports</a></li>
-<li><a href="/alert$pc">$alerts</a></li>
-<li><a href="/faq">$help</a></li>
-<li><a href="/contact">$contact</a></li>
+<li><a href="/">$params{report}</a></li>
+<li><a href="/reports">$params{reports}</a></li>
+<li><a href="/alert$params{pc}">$params{alerts}</a></li>
+<li><a href="/faq">$params{help}</a></li>
+<li><a href="/contact">$params{contact}</a></li>
</ul>
$orglogo
diff --git a/templates/website/cobrands/fiksgatami/footer b/templates/website/cobrands/fiksgatami/footer
new file mode 100644
index 000000000..692eb9031
--- /dev/null
+++ b/templates/website/cobrands/fiksgatami/footer
@@ -0,0 +1,16 @@
+</div></div>
+<h2 class="v">$navigation</h2>
+<ul id="navigation">
+<li><a href="/">{{ $report }}</a></li>
+<li><a href="/reports">{{ $reports }}</a></li>
+<li><a href="/alert{{ $pc }}">{{ $alerts }}</a></li>
+<li><a href="/faq">{{ $help }}</a></li>
+<li><a href="/contact">{{ $contact }}</a></li>
+</ul>
+
+<a id="logo" href="http://www.nuug.no/">NUUG</a>
+
+<p id="footer">Built by <a href="http://www.mysociety.org/">mySociety</a> and maintained by NUUG, using some <a href="http://github.com/mysociety/fixmystreet">clever</a>&nbsp;<a href="https://secure.mysociety.org/cvstrac/dir?d=mysociety/services/TilMa">code</a>.</p>
+
+</body>
+</html>