diff options
-rw-r--r-- | perllib/FixMyStreet/Geocode/OSM.pm | 2 | ||||
-rw-r--r-- | templates/web/fixamingata/footer.html | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Geocode/OSM.pm b/perllib/FixMyStreet/Geocode/OSM.pm index 7fb00c19c..ed79ba575 100644 --- a/perllib/FixMyStreet/Geocode/OSM.pm +++ b/perllib/FixMyStreet/Geocode/OSM.pm @@ -80,6 +80,7 @@ sub string { $_->{type} eq "village" || $_->{type} eq "hamlet" || $_->{type} eq "secondary" || + $_->{type} eq "pedestrian" || $_->{type} eq "tertiary" || $_->{type} eq "square" || $_->{type} eq "park" || @@ -96,6 +97,7 @@ sub string { $address = $_->{address}->{hamlet}.", ".$_->{address}->{state} if $_->{type} eq "hamlet"; $address = $_->{address}->{leisure}.", ".$_->{address}->{administrative} if $_->{type} eq "square"; $address = $_->{address}->{park}.", ".$_->{address}->{administrative} if $_->{type} eq "park"; + $address = $_->{address}->{pedestrian}.", ".$_->{address}->{administrative} if $_->{type} eq "pedestrian"; ( $latitude, $longitude ) = ( $_->{lat}, $_->{lon} ); mySociety::Locale::in_gb_locale { diff --git a/templates/web/fixamingata/footer.html b/templates/web/fixamingata/footer.html index 325aa8b44..5d462eddc 100644 --- a/templates/web/fixamingata/footer.html +++ b/templates/web/fixamingata/footer.html @@ -41,6 +41,7 @@ %]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[% %]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END %]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li> + <li><a href="javascript:UserVoice.showPopupWidget();">Lämna förslag</a></li> </ul> </div> </div> @@ -48,5 +49,13 @@ <!-- [% INCLUDE 'debug_footer.html' %] --> </div> <!-- .wrapper --> +<script type="text/javascript"> + var uvOptions = {}; + (function() { + var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true; + uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/vflswzMnwvfytYBz1rNw.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s); + })(); +</script> </body> </html> |