summaryrefslogtreecommitdiffstats
path: root/app/views/projects/list.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/list.rhtml')
-rw-r--r--app/views/projects/list.rhtml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/projects/list.rhtml b/app/views/projects/list.rhtml
new file mode 100644
index 000000000..0137086d9
--- /dev/null
+++ b/app/views/projects/list.rhtml
@@ -0,0 +1,20 @@
+<h2><%=l(:label_public_projects)%></h2>
+
+<table class="listTableContent">
+ <tr class="ListHead">
+ <%= sort_header_tag('name', :caption => l(:label_project)) %>
+ <th><%=l(:field_description)%></th>
+ <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
+ </tr>
+
+<% for project in @projects %>
+ <tr class="<%= cycle("odd", "even") %>">
+ <td><%= link_to project.name, :action => 'show', :id => project %>
+ <td><%= project.description %>
+ <td align="center"><%= format_date(project.created_on) %>
+ </tr>
+<% end %>
+</table>
+
+<%= pagination_links_full @project_pages %>
+[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ] \ No newline at end of file