]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_common_details.html.erb
Merge remote-tracking branch 'upstream/pull/3649'
[rails.git] / app / views / browse / _common_details.html.erb
1 <h4>
2   <%= t "browse.version" %>
3   #<%= common_details.version %>
4 </h4>
5
6 <p class="fst-italic">
7   <% if common_details.changeset.tags["comment"].present? %>
8     <%= linkify(common_details.changeset.tags["comment"]) %>
9   <% else %>
10     <%= t "browse.no_comment" %>
11   <% end %>
12 </p>
13
14 <ul class="list-unstyled">
15   <li>
16     <%= t "browse.#{common_details.visible? ? :edited : :deleted}_by_html",
17           :time => time_ago_in_words(common_details.timestamp, :scope => :"datetime.distance_in_words_ago"),
18           :user => changeset_user_link(common_details.changeset),
19           :title => l(common_details.timestamp) %>
20   </li>
21   <li>
22     <%= t "browse.in_changeset" %>
23     #<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %>
24   </li>
25
26   <% if @type == "node" and common_details.visible? %>
27     <li>
28       <%= t "browse.location" %>
29       <%= link_to(t(".coordinates_html",
30                     :latitude => tag.span(number_with_delimiter(common_details.lat), :class => "latitude"),
31                     :longitude => tag.span(number_with_delimiter(common_details.lon), :class => "longitude")),
32                   root_path(:anchor => "map=18/#{common_details.lat}/#{common_details.lon}")) %>
33     </li>
34   <% end %>
35 </ul>
36
37 <%= render :partial => "tag_details", :object => common_details.tags %>