list.rhtml
30 lines
| 1.1 KiB
| text/html+ruby
|
RhtmlLexer
|
r457 | <h2><%=l(:label_project_plural)%></h2> | ||
|
r2 | |||
|
r105 | <table class="list"> | ||
<thead><tr> | ||||
|
r401 | <%= 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)) %> | ||||
|
r105 | </tr></thead> | ||
<tbody> | ||||
|
r5 | <% for project in @projects %> | ||
|
r330 | <tr class="<%= cycle("odd", "even") %>"> | ||
|
r457 | <td> | ||
<%= link_to project.name, {:action => 'show', :id => project}, :class => (@logged_in_user && @logged_in_user.role_for_project(project) ? "icon icon-fav" : "") %><br /> | ||||
<%=h project.description %> | ||||
</td> | ||||
|
r401 | <td><%= link_to(project.parent.name, :action => 'show', :id => project.parent) unless project.parent.nil? %></td> | ||
|
r330 | <td align="center"><%= format_date(project.created_on) %></td> | ||
|
r2 | </tr> | ||
<% end %> | ||||
|
r105 | </tbody> | ||
|
r330 | </table> | ||
|
r457 | <% if @logged_in_user %> | ||
<div class="contextual"> | ||||
<span class="icon icon-fav"><%= l(:label_my_projects) %></span> | ||||
</div> | ||||
<% end %> | ||||
|
r2 | <%= pagination_links_full @project_pages %> | ||
|
r457 | [ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ] | ||