2007-04-21 18:40:56 +02:00
|
|
|
<h2><%=l(:label_project_plural)%></h2>
|
2006-06-28 20:11:03 +02:00
|
|
|
|
2006-12-24 17:35:25 +01:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2007-04-02 22:17:02 +02:00
|
|
|
<%= sort_header_tag("#{Project.table_name}.name", :caption => l(:label_project)) %>
|
|
|
|
<th><%=l(:field_parent)%></th>
|
|
|
|
<%= sort_header_tag("#{Project.table_name}.created_on", :caption => l(:field_created_on)) %>
|
2006-12-24 17:35:25 +01:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2006-07-09 18:30:01 +02:00
|
|
|
<% for project in @projects %>
|
2007-03-12 18:59:02 +01:00
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
2007-04-21 18:40:56 +02:00
|
|
|
<td>
|
2007-08-29 18:52:35 +02:00
|
|
|
<%= link_to project.name, {:action => 'show', :id => project}, :class => (User.current.member_of?(project) ? "icon icon-fav" : "") %><br />
|
2007-08-17 13:21:58 +02:00
|
|
|
<%= textilizable project.description, :project => project %>
|
2007-04-21 18:40:56 +02:00
|
|
|
</td>
|
2007-04-02 22:17:02 +02:00
|
|
|
<td><%= link_to(project.parent.name, :action => 'show', :id => project.parent) unless project.parent.nil? %></td>
|
2007-03-12 18:59:02 +01:00
|
|
|
<td align="center"><%= format_date(project.created_on) %></td>
|
2006-06-28 20:11:03 +02:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
2006-12-24 17:35:25 +01:00
|
|
|
</tbody>
|
2007-03-12 18:59:02 +01:00
|
|
|
</table>
|
|
|
|
|
2007-08-29 18:52:35 +02:00
|
|
|
<% if User.current.logged? %>
|
2007-04-21 18:40:56 +02:00
|
|
|
<div class="contextual">
|
|
|
|
<span class="icon icon-fav"><%= l(:label_my_projects) %></span>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2006-06-28 20:11:03 +02:00
|
|
|
<%= pagination_links_full @project_pages %>
|
2007-04-21 18:40:56 +02:00
|
|
|
[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]
|