Add strikethrough style to browser when objects are deleted

This commit is contained in:
Dan Karran 2010-05-29 13:57:39 +01:00 committed by Tom Hughes
parent ab0c40107b
commit 2aae01a590
2 changed files with 3 additions and 1 deletions

View file

@ -17,7 +17,7 @@ module BrowseHelper
end
def link_class(type, object)
return type + " " + h(icon_tags(object).join(' '))
return type + " " + h(icon_tags(object).join(' ')) + (object.visible == false ? ' deleted' : '')
end
def link_title(object)

View file

@ -1,6 +1,8 @@
.node { padding-left: 25px; }
.way { padding-left: 25px; }
.deleted { text-decoration: line-through; }
/* Nodes */
.aeroway.aerodrome { background: url(/images/browse/aerodrome.p.16.png) no-repeat center left; }