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