summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-12-30 01:35:24 +0000
committerGo MAEDA <maeda@farend.jp>2020-12-30 01:35:24 +0000
commitd504120cf42cbe2f0d0f18bd7e9c66ba05f64013 (patch)
tree1bd31ed6a94fab84c9fadfe55e1356045870dbdc /app/helpers/application_helper.rb
parent93d98bfff8d0c5d7e36408598d17b2ccb234e68a (diff)
downloadredmine-d504120cf42cbe2f0d0f18bd7e9c66ba05f64013.tar.gz
redmine-d504120cf42cbe2f0d0f18bd7e9c66ba05f64013.zip
Make archived projects visually distinguishable in nested projects lists (#34340).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@20699 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 394f9b666..45ce68988 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -420,6 +420,7 @@ module ApplicationHelper
end
end
classes = (ancestors.empty? ? 'root' : 'child')
+ classes += ' archived' if project.archived?
s << "<li class='#{classes}'><div class='#{classes}'>"
s << h(block_given? ? capture(project, &block) : project.name)
s << "</div>\n"