diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 4bedf42b6a..f5e4383b21 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -965,6 +965,7 @@ img.trace_image { .node::before, .way::before, .relation::before { + position: absolute; display: inline-block; width: 25px; margin-left: -25px; diff --git a/app/helpers/browse_helper.rb b/app/helpers/browse_helper.rb index f105bf49c0..14975d8b9b 100644 --- a/app/helpers/browse_helper.rb +++ b/app/helpers/browse_helper.rb @@ -37,6 +37,14 @@ def element_single_current_link(type, object) end end + def element_single_current_link_without_icon(type, object) + link_to object, { :title => element_title(object), :rel => (link_follow(object) if type == "node") } do + element_strikethrough object do + printable_element_name object + end + end + end + def element_list_item(type, object, &block) tag.li :class => element_class(type, object), :title => element_title(object) do element_strikethrough object, &block diff --git a/app/views/browse/_way.html.erb b/app/views/browse/_way.html.erb index 24826df85e..0ff6a71f9d 100644 --- a/app/views/browse/_way.html.erb +++ b/app/views/browse/_way.html.erb @@ -26,14 +26,15 @@ <%= t ".nodes_count", :count => way.way_nodes.count %>