Project

General

Profile

Actions

Patch #7701

closed

Updated Project/Index to appear more like Admin/Projects

Added by Alex Bevilacqua over 13 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
2011-02-23
Due date:
% Done:

0%

Estimated time:

Description

This is just a simple visual patch against app/views/projects/index.rhtml to make the project tree layout look more like the project list under the admin view.


Index: app/views/projects/index.rhtml
===================================================================
--- app/views/projects/index.rhtml    (revision 4903)
+++ app/views/projects/index.rhtml    (working copy)
@@ -11,8 +11,26 @@

 <h2><%=l(:label_project_plural)%></h2>

-<%= render_project_hierarchy(@projects)%>

+<div class="autoscroll">
+<table class="list">  
+  <tbody>
+<% project_tree(@projects) do |project, level| %>
+  <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
+    <td class="name"><span><%= link_to_project(project, 
+    {:action => 'settings'}, 
+    :title => project.short_description, :class => "project #{User.current.member_of?(project) ? 'my-project' : nil}") %></span>
+    <% unless project.description.blank? %>
+    <br />
+    <div class='wiki description' style="font-size: 10px"><%= textilizable(project.short_description, :project => project) %></div>
+    <% end %>
+  </td>
+    </tr>
+<% end %>
+  </tbody>
+</table>
+</div>
+
 <% if User.current.logged? %>
 <p style="text-align:right;">
 <span class="my-project"><%= l(:label_my_projects) %></span>

For a quick preview of what this looks like, I have my personal install patched at http://alexbevi.com/projects.


Related issues

Is duplicate of Redmine - Feature #29482: Query system for Projects pageClosedJean-Philippe Lang

Actions
Actions

Also available in: Atom PDF