list.rhtml
20 lines
| 724 B
| text/html+ruby
|
RhtmlLexer
|
r12 | <h2><%=l(:label_public_projects)%></h2> | |
|
r2 | ||
|
r105 | <table class="list"> | |
<thead><tr> | |||
|
r12 | <%= sort_header_tag('name', :caption => l(:label_project)) %> | |
<th><%=l(:field_description)%></th> | |||
<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> | |||
|
r105 | </tr></thead> | |
<tbody> | |||
|
r5 | <% for project in @projects %> | |
<tr class="<%= cycle("odd", "even") %>"> | |||
|
r147 | <td><%= link_to project.name, :action => 'show', :id => project %></td> | |
<td><%=h project.description %></td> | |||
<td align="center"><%= format_date(project.created_on) %></td> | |||
|
r2 | </tr> | |
<% end %> | |||
|
r105 | </tbody> | |
|
r2 | </table> | |
<%= pagination_links_full @project_pages %> | |||
[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ] |