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' %>
25 <h4><%= changeset_details(changeset) %></h4>