# HG changeset patch # User Chris Cannam # Date 1296212503 0 # Node ID 4e485928a26bc0c0b30922325f02c75e84aa8cb6 # Parent e7c03e1738fbd9a4009b5bc65c589f39039b3577 * Simplify table construction, with name and description in the same cell and some layout tidying. Eliminates minor bug that made name and description highlight separately on mouseover. diff -r e7c03e1738fb -r 4e485928a26b app/helpers/projects_helper.rb --- a/app/helpers/projects_helper.rb Mon Jan 24 14:12:44 2011 +0000 +++ b/app/helpers/projects_helper.rb Fri Jan 28 11:01:43 2011 +0000 @@ -195,8 +195,17 @@ classes = (ancestors.empty? ? 'root' : 'child') s << "" - s << "" << link_to_project(project, {}, :class => "project #{User.current.member_of?(project) ? 'my-project' : nil}") << "" - s << "" + s << "
" << link_to_project(project, {}, :class => "project #{User.current.member_of?(project) ? 'my-project' : nil}"); + s << "
" + unless project.description.blank? + s << "
" + s << textilizable(project.short_description, :project => project) + s << "
" + end + + s << "" u = project.users_by_role if u @@ -216,15 +225,10 @@ end s << "" - s << "" << format_date(project.created_on) << "" - s << "" << format_date(project.updated_on) << "" + s << "" << format_date(project.created_on) << "" + s << "" << format_date(project.updated_on) << "" s << "" - s << "" - s << "" - s << textilizable(project.short_description, :project => project) unless project.description.blank? - s << "" - s << "" ancestors << project end diff -r e7c03e1738fb -r 4e485928a26b public/themes/soundsoftware/stylesheets/application.css --- a/public/themes/soundsoftware/stylesheets/application.css Mon Jan 24 14:12:44 2011 +0000 +++ b/public/themes/soundsoftware/stylesheets/application.css Fri Jan 28 11:01:43 2011 +0000 @@ -69,8 +69,9 @@ table.projects th { text-align: left; } table.projects th.managers { color: #3e442c; } -table.projects .root .name { font-size: 1.2em; } -table.projects .root .description { padding-bottom: 0.5em; } +table.projects .root .name { font-size: 1.2em; padding-top: 0.3em; } +table.projects .description { padding-bottom: 0.5em; } +table.projects .no_description { padding-bottom: 0.5em; } table.projects .hosted_here { font-weight: bold; } table.projects .child .name { font-weight: normal; } table.projects .child .description { font-size: 0.95em; }