X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e098d52424c3a0c8025cb62193a03bb42477c85c..753c179085b37635897121605dda867acc19a4a5:/app/views/changeset/_changeset.html.erb
diff --git a/app/views/changeset/_changeset.html.erb b/app/views/changeset/_changeset.html.erb
index e388d65ae..ba963ea8e 100644
--- a/app/views/changeset/_changeset.html.erb
+++ b/app/views/changeset/_changeset.html.erb
@@ -1,12 +1,24 @@
-<% cl = cycle('table0', 'table1') %>
+<%
+ changeset_data = {:id => changeset.id}
-
+ if changeset.has_valid_bbox?
+ bbox = changeset.bbox.to_unscaled
+ changeset_data[:bbox] = {
+ :minlon => bbox.min_lon,
+ :minlat => bbox.min_lat,
+ :maxlon => bbox.max_lon,
+ :maxlat => bbox.max_lat
+ }
+ end
+%>
+
+<%= content_tag "tr", :class => cycle('table0', 'table1'), :id => "tr-changeset-#{changeset.id}", :data => {:changeset => changeset_data} do %>
<%=
id_link = link_to(changeset.id,
{:controller => 'browse', :action => 'changeset', :id => changeset.id},
{:title => t('changeset.changeset.view_changeset_details')})
- t'changeset.changeset.id', :id => id_link
+ raw t 'changeset.changeset.id', :id => id_link
%>
|
@@ -35,14 +47,4 @@
<%= t'changeset.changeset.no_comment' %>
<% end %>
-
-
-
+<% end %>