1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-02 13:49:42 +00:00
redmine/app/views/projects/list.rhtml
Jean-Philippe Lang 2b86ef8e28 various modifications to prevent xss
- validation of names and labels against /^[\w\s\'\-]*$/i
- html entities encoding

git-svn-id: http://redmine.rubyforge.org/svn/trunk@99 e93f8b46-1217-0410-a6f0-8f06a7374b81
2006-12-17 08:10:18 +00:00

20 lines
705 B
Plaintext

<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><%=h 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 %> ]