]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_common_details.html.erb
Update polyfills
[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   <%= t "browse.#{common_details.visible? ? :edited : :deleted}_by_html",
11         :time => time_ago_in_words(common_details.timestamp, :scope => :'datetime.distance_in_words_ago'),
12         :user => changeset_user_link(common_details.changeset),
13         :title => l(common_details.timestamp) %>
14 </div>
15
16 <div class="details">
17   <%= t "browse.version" %>
18   #<%= h(common_details.version) %>
19   &middot;
20   <%= t "browse.in_changeset" %>
21   #<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %>
22 </div>
23
24 <% if @type == "node" and common_details.visible? %>
25 <div class="details geo">
26   <%= t "browse.location" %>
27   <%= 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", :anchor => "map=18/#{common_details.lat}/#{common_details.lon}") %>
28 </div>
29 <% end %>
30
31 <%= render :partial => "tag_details", :object => common_details.tags %>