]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_common_details.html.erb
Add coordinate detail to node pages
[rails.git] / app / views / browse / _common_details.html.erb
1 <h4>
2   <% if common_details.changeset.tags['comment'].present? %>
3     <%= linkify(h(common_details.changeset.tags['comment'])) %>
4   <% else %>
5     <%= t 'browse.no_comment' %>
6   <% end %>
7 </h4>
8
9 <div class="details">
10   <%=
11       t "browse.#{common_details.visible? ? :edited : :deleted}_by_html",
12         :time => distance_of_time_in_words_to_now(common_details.timestamp),
13         :user => changeset_user_link(common_details.changeset),
14         :title => l(common_details.timestamp)
15   %>
16 </div>
17
18 <div class="details">
19   <%= t 'browse.version' %>
20   #<%= h(common_details.version) %>
21   &middot;
22   <%= t 'browse.in_changeset' %>
23   #<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %>
24 </div>
25
26 <% if @type == "node" %>
27 <div class="details geo">
28   Location:
29   <%= link_to(content_tag(:span, number_with_delimiter(common_details.lat), :class => "latitude") + ", " + content_tag(:span, number_with_delimiter(common_details.lon), :class => "longitude"), {:controller => 'site', :action => 'index', :lat => h(common_details.lat), :lon => h(common_details.lon), :zoom => "18"}) %>
30 </div>
31 <% end %>
32
33 <%= render :partial => "tag_details", :object => common_details.tags %>