From 2aae01a59096f5ed98ba05c65ac883cc604565fe Mon Sep 17 00:00:00 2001 From: Dan Karran Date: Sat, 29 May 2010 13:57:39 +0100 Subject: [PATCH] Add strikethrough style to browser when objects are deleted --- app/helpers/browse_helper.rb | 2 +- public/stylesheets/browse.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/browse_helper.rb b/app/helpers/browse_helper.rb index f121f2f0b..e929d9755 100644 --- a/app/helpers/browse_helper.rb +++ b/app/helpers/browse_helper.rb @@ -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) diff --git a/public/stylesheets/browse.css b/public/stylesheets/browse.css index 534a3f065..0186715e4 100644 --- a/public/stylesheets/browse.css +++ b/public/stylesheets/browse.css @@ -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; } -- 2.39.5