2 changeset_data = {:id => changeset.id}
4 if changeset.has_valid_bbox?
5 bbox = changeset.bbox.to_unscaled
6 changeset_data[:bbox] = {
7 :minlon => bbox.min_lon,
8 :minlat => bbox.min_lat,
9 :maxlon => bbox.max_lon,
10 :maxlat => bbox.max_lat
15 <%= content_tag "li", :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %>
17 <a class="changeset_id" href="<%= changeset_path(changeset.id) %>">
18 <% if changeset.tags['comment'].to_s != '' %>
19 <%= linkify(h(changeset.tags['comment'])) %>
21 <%= t 'changeset.changeset.no_comment' %>
27 <% if changeset.closed_at > DateTime.now %>
28 <%= t 'changeset.changeset.still_editing' %>
30 <% closed_at = l changeset.closed_at, :format => :long %>
31 <abbr title='<%= closed_at %>'><%= distance_of_time_in_words_to_now(closed_at) %></abbr>
35 <% unless params.key?(:display_name) %>
36 <span class="user"> by
37 <% if changeset.user.data_public? %>
38 <%= link_to changeset.user.display_name, user_path(changeset.user.display_name) %>
40 <i><%= t 'changeset.changeset.anonymous' %></i>