Project

General

Profile

Actions

Patch #7701

closed

Updated Project/Index to appear more like Admin/Projects

Added by Alex Bevilacqua almost 14 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 #1

Updated by Alex Bevilacqua almost 14 years ago

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

Actions #2

Updated by Alex Bevilacqua almost 14 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'}, ...

Actions #3

Updated by Etienne Massip almost 14 years ago

  • Category changed from Projects to UI
Actions #4

Updated by Go MAEDA almost 6 years ago

  • Is duplicate of Feature #29482: Query system for Projects page added
Actions #5

Updated by Go MAEDA almost 6 years ago

  • Status changed from New to Closed

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

Actions

Also available in: Atom PDF