Project

General

Profile

How to use SortHelper and Filters in a Redmine Plugin? » index.html.erb

index.html.erb - Marco Nobler, 2012-03-05 15:01

 

<table>
<thead>
<tr>
<%= sort_header_tag('id', :title => 'Identificativo') %>
<%= sort_header_tag('livello_gravita', :caption => 'Livello Gravita') %>
<%= sort_header_tag('name') %>
<%= sort_header_tag('description', :width => 200) %>
</tr>
</thead>
<tbody>
<% @bugs.each do |bug| %>
<tr>
<!--<td><#%= link_to bug[:id], :controller => "bugs", :action => "show", :id => bug[:id] %></td>-->
<td><%= bug[:id] %></td>
<td><%= bug[:livello_gravita] %></td>
<td><%= bug[:name] %></td>
<td><%= bug[:description] %></td>
</tr>
<% end %>
</tbody>
</table>
(2-2/3)