2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_public_projects)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-12-24 19:35:25 +03:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2007-04-03 00:17:02 +04:00
|
|
|
<%= sort_header_tag("#{Project.table_name}.name", :caption => l(:label_project)) %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<th><%=l(:field_description)%></th>
|
2007-04-03 00:17:02 +04:00
|
|
|
<th><%=l(:field_parent)%></th>
|
|
|
|
<%= sort_header_tag("#{Project.table_name}.created_on", :caption => l(:field_created_on)) %>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2006-07-09 20:30:01 +04:00
|
|
|
<% for project in @projects %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
|
|
|
<td><%= link_to project.name, :action => 'show', :id => project %></td>
|
|
|
|
<td><%=h project.description %></td>
|
2007-04-03 00:17:02 +04:00
|
|
|
<td><%= link_to(project.parent.name, :action => 'show', :id => project.parent) unless project.parent.nil? %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
<td align="center"><%= format_date(project.created_on) %></td>
|
2006-06-28 22:11:03 +04:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tbody>
|
2007-03-12 20:59:02 +03:00
|
|
|
</table>
|
|
|
|
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= pagination_links_full @project_pages %>
|
|
|
|
[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]
|