X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4dd0a74a3b1bd65de1de2e0ba02623dc4b14441d..f839257e3e7fb54d738d278b965f12e9c01769f0:/app/views/changesets/_changeset.html.erb?ds=sidebyside diff --git a/app/views/changesets/_changeset.html.erb b/app/views/changesets/_changeset.html.erb index 1bd916bbc..a59c85ec4 100644 --- a/app/views/changesets/_changeset.html.erb +++ b/app/views/changesets/_changeset.html.erb @@ -1,7 +1,6 @@ -<% - changeset_data = { :id => changeset.id } +<% changeset_data = { :id => changeset.id } - if changeset.has_valid_bbox? + if changeset.bbox_valid? bbox = changeset.bbox.to_unscaled changeset_data[:bbox] = { :minlon => bbox.min_lon, @@ -9,22 +8,25 @@ :maxlon => bbox.max_lon, :maxlat => bbox.max_lat } - end -%> + end %> -<%= content_tag "li", :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data } do %> -

- - <%= changeset.tags['comment'].to_s.presence || t('browse.no_comment') %> +<%= tag.li :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data }, :class => "list-group-item" do %> +

+ + <%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %> -

-
- <%= changeset.comments.length %> - -
-
- <%= changeset_details(changeset) %> - · - #<%= changeset.id %> +

+
+
+ <%= changeset_details(changeset) %> + · + + #<%= changeset.id %> + +
+
+ <%= changeset.comments.length %> + +
<% end %>