From ce549933c8abe46e40539218e791b71941a16d0d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 28 Mar 2010 13:30:44 +0000 Subject: [PATCH] Applies the same style to the admin project tree than issues. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3621 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/admin/projects.rhtml | 4 ++-- public/stylesheets/application.css | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/views/admin/projects.rhtml b/app/views/admin/projects.rhtml index 62db29a32..dc7bb97ed 100644 --- a/app/views/admin/projects.rhtml +++ b/app/views/admin/projects.rhtml @@ -26,8 +26,8 @@ <% project_tree(@projects) do |project, level| %> - <%= css_project_classes(project) %>"> - <%= project.active? ? link_to(h(project.name), :controller => 'projects', :action => 'settings', :id => project) : h(project.name) %> + <%= css_project_classes(project) %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> + <%= project.active? ? link_to(h(project.name), :controller => 'projects', :action => 'settings', :id => project) : h(project.name) %> <%= textilizable project.short_description, :project => project %> <%= checked_image project.is_public? %> <%= format_date(project.created_on) %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 356e25471..08fa0601b 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -110,8 +110,18 @@ table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; } 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 { padding-left: 16px; white-space:nowrap; } -tr.project.parent td.name a { background: url('../images/bullet_toggle_minus.png') no-repeat; } +tr.project td.name a { white-space:nowrap; } + +tr.project.idnt td.name a {background: url(../images/bullet_arrow_right.png) no-repeat 0 50%; padding-left: 16px;} +tr.project.idnt-1 td.name {padding-left: 0.5em;} +tr.project.idnt-2 td.name {padding-left: 2em;} +tr.project.idnt-3 td.name {padding-left: 3.5em;} +tr.project.idnt-4 td.name {padding-left: 5em;} +tr.project.idnt-5 td.name {padding-left: 6.5em;} +tr.project.idnt-6 td.name {padding-left: 8em;} +tr.project.idnt-7 td.name {padding-left: 9.5em;} +tr.project.idnt-8 td.name {padding-left: 11em;} +tr.project.idnt-9 td.name {padding-left: 12.5em;} tr.issue { text-align: center; white-space: nowrap; } tr.issue td.subject, tr.issue td.category, td.assigned_to { white-space: normal; }