From: Jean-Philippe Lang Date: Mon, 25 Jun 2012 18:39:23 +0000 (+0000) Subject: Visual hint for closed projects on project list (#3640). X-Git-Tag: 2.1.0~417 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7fb2ddefde1649a15ab2f1f29bab53942f6e35c2;p=redmine.git Visual hint for closed projects on project list (#3640). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9885 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index e21c88584..162b25f1f 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -74,7 +74,7 @@ module ProjectsHelper end classes = (ancestors.empty? ? 'root' : 'child') s << "
  • " + - link_to_project(project, {}, :class => "project #{User.current.member_of?(project) ? 'my-project' : nil}") + link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}") s << "
    #{textilizable(project.short_description, :project => project)}
    " unless project.description.blank? s << "
    \n" ancestors << project diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 03fb2960a..d7aab6edd 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -108,6 +108,7 @@ a:hover, a:active{ color: #c61a1a; text-decoration: underline;} a img{ border: 0; } a.issue.closed, a.issue.closed:link, a.issue.closed:visited { color: #999; text-decoration: line-through; } +a.project.closed, a.project.closed:link, a.project.closed:visited { color: #999; } #sidebar a.selected {line-height:1.7em; padding:1px 3px 2px 2px; margin-left:-2px; background-color:#9DB9D5; color:#fff; border-radius:2px; -moz-border-radius:2px;} #sidebar a.selected:hover {text-decoration:none;} @@ -130,6 +131,8 @@ table.list td.buttons a { padding-right: 0.6em; } table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; } tr.project td.name a { white-space:nowrap; } +tr.project.closed, tr.project.archived { color: #aaa; } +tr.project.closed a, tr.project.archived a { color: #aaa; } tr.project.idnt td.name span {background: url(../images/bullet_arrow_right.png) no-repeat 0 50%; padding-left: 16px;} tr.project.idnt-1 td.name {padding-left: 0.5em;}