]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entries/_location.html.erb
Pluralize diary entries controller
[rails.git] / app / views / diary_entries / _location.html.erb
diff --git a/app/views/diary_entries/_location.html.erb b/app/views/diary_entries/_location.html.erb
new file mode 100644 (file)
index 0000000..6828cd4
--- /dev/null
@@ -0,0 +1,7 @@
+<%= t '.location' %>
+
+<a href="<%= url_for :controller => 'site', :action => 'index', :anchor => "map=14/#{location.latitude}/#{location.longitude}" %>">
+<abbr class="geo" title="<%= number_with_precision(location.latitude, :precision => 4) %>; <%= number_with_precision(location.longitude, :precision => 4) %>">
+<%= describe_location location.latitude, location.longitude, 14, location.language_code %>
+</abbr>
+</a>