projects.rhtml
31 lines
| 1.2 KiB
| text/html+ruby
|
RhtmlLexer
|
r90 | <div class="contextual"> | |
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'pic picAdd' %> | |||
</div> | |||
|
r10 | <h2><%=l(:label_project_plural)%></h2> | |
|
r2 | ||
|
r19 | <table class="listTableContent"> | |
|
r2 | <tr class="ListHead"> | |
|
r10 | <%= sort_header_tag('name', :caption => l(:label_project)) %> | |
<th><%=l(:field_description)%></th> | |||
<th><%=l(:field_is_public)%></th> | |||
<th><%=l(:label_subproject_plural)%></th> | |||
<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> | |||
|
r2 | <th></th> | |
</tr> | |||
|
r5 | <% for project in @projects %> | |
<tr class="<%= cycle("odd", "even") %>"> | |||
|
r2 | <td><%= link_to project.name, :controller => 'projects', :action => 'settings', :id => project %> | |
|
r10 | <td><%= project.description %> | |
|
r5 | <td align="center"><%= image_tag 'true' if project.is_public? %> | |
<td align="center"><%= project.projects_count %> | |||
|
r2 | <td align="center"><%= format_date(project.created_on) %> | |
|
r19 | <td align="center"> | |
<%= button_to l(:button_delete), { :controller => 'projects', :action => 'destroy', :id => project }, :class => "button-small" %> | |||
|
r2 | </td> | |
</tr> | |||
<% end %> | |||
</table> | |||
|
r5 | <p><%= pagination_links_full @project_pages %> | |
|
r90 | [ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]</p> |