You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

projects.rhtml 1.2KB

123456789101112131415161718192021222324252627282930
  1. <h2><%=l(:label_project_plural)%></h2>
  2. <table class="listTableContent">
  3. <tr class="ListHead">
  4. <%= sort_header_tag('name', :caption => l(:label_project)) %>
  5. <th><%=l(:field_description)%></th>
  6. <th><%=l(:field_is_public)%></th>
  7. <th><%=l(:label_subproject_plural)%></th>
  8. <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
  9. <th></th>
  10. </tr>
  11. <% for project in @projects %>
  12. <tr class="<%= cycle("odd", "even") %>">
  13. <td><%= link_to project.name, :controller => 'projects', :action => 'settings', :id => project %>
  14. <td><%= project.description %>
  15. <td align="center"><%= image_tag 'true' if project.is_public? %>
  16. <td align="center"><%= project.projects_count %>
  17. <td align="center"><%= format_date(project.created_on) %>
  18. <td align="center">
  19. <%= button_to l(:button_delete), { :controller => 'projects', :action => 'destroy', :id => project }, :class => "button-small" %>
  20. </td>
  21. </tr>
  22. <% end %>
  23. </table>
  24. <p><%= pagination_links_full @project_pages %>
  25. [ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]</p>
  26. <p><%= link_to ('&#187; ' + l(:label_project_new)), :controller => 'projects', :action => 'add' %></p>