summaryrefslogtreecommitdiffstats
path: root/app/views/projects/list.rhtml
blob: 0723a7081c5ea5531ba6b6368b186b7c015511e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<h2><%=l(:label_public_projects)%></h2>

<table class="list">
  <thead><tr>
	<%= sort_header_tag('name', :caption => l(:label_project)) %>
	<th><%=l(:field_description)%></th>
	<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
  </tr></thead>
  <tbody>
<% for project in @projects %>
  <tr class="<%= cycle("odd", "even") %>">
	<td><%= link_to project.name, :action => 'show', :id => project %></td>
	<td><%=h project.description %></td>
	<td align="center"><%= format_date(project.created_on) %></td>
  </tr>
<% end %>
  </tbody>
</table>

<%= pagination_links_full @project_pages %>
[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]