]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_common_details.html.erb
Localisation updates from https://translatewiki.net.
[rails.git] / app / views / browse / _common_details.html.erb
1 <h4>
2   <%= if common_details.redacted?
3         t "browse.redacted_version"
4       else
5         t "browse.version"
6       end %>
7   #<%= link_to_unless_current common_details.version, :controller => "old_#{@type.pluralize}", :action => :show, :version => common_details.version %>
8 </h4>
9
10 <p class="fs-6 overflow-x-auto mb-2" dir="auto">
11   <%= RichText.new("text", common_details.changeset.comment || t("browse.no_comment")) %>
12 </p>
13
14 <div class="mb-3">
15   <div>
16     <%= t "browse.#{common_details.visible? ? :edited : :deleted}_ago_by_html",
17           :time_ago => friendly_date_ago(common_details.timestamp),
18           :user => changeset_user_link(common_details.changeset) %>
19   </div>
20   <%= render "changesets/changeset_line", :changeset => common_details.changeset,
21                                           :show_num_changes => false do %>
22     <%= t "browse.in_changeset" %>
23     #<%= link_to common_details.changeset_id, common_details.changeset %>
24   <% end %>
25
26   <% if @type == "node" and common_details.visible? %>
27     <div>
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     </div>
34   <% end %>
35 </div>
36
37 <%= render :partial => "browse/tag_details", :object => common_details.tags %>