Patch #7701

Updated Project/Index to appear more like Admin/Projects

Added by Alex Bevilacqua almost 11 years ago. Updated almost 3 years ago.

Status:ClosedStart date:2011-02-23
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:UI
Target version:-

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

Duplicates Redmine - Feature #29482: Query system for Projects page Closed

History

#1 Updated by Alex Bevilacqua almost 11 years ago

NOTE I have a hardcoded style in the above that shouldn't be there (style="font-size: 10px") ...

#2 Updated by Alex Bevilacqua almost 11 years ago

NOTE 2 Oops, I left the :action => 'settings' option in there ... it should actually be link_to_project(project, {}, ..., not link_to_project(project, {:action => 'settings'}, ...

#3 Updated by Etienne Massip almost 11 years ago

  • Category changed from Projects to UI

#4 Updated by Go MAEDA almost 3 years ago

#5 Updated by Go MAEDA almost 3 years ago

  • Status changed from New to Closed

A new patch covers this feature has been submitted as #29482.

Also available in: Atom PDF