How to use SortHelper and Filters in a Redmine Plugin? » index.html.erb
| 1 |
|
|---|---|
| 2 |
<table>
|
| 3 |
<thead>
|
| 4 |
<tr>
|
| 5 |
<%= sort_header_tag('id', :title => 'Identificativo') %> |
| 6 |
<%= sort_header_tag('livello_gravita', :caption => 'Livello Gravita') %> |
| 7 |
<%= sort_header_tag('name') %> |
| 8 |
<%= sort_header_tag('description', :width => 200) %> |
| 9 |
</tr>
|
| 10 |
</thead>
|
| 11 |
<tbody>
|
| 12 |
<% @bugs.each do |bug| %> |
| 13 |
<tr>
|
| 14 |
<!--<td><#%= link_to bug[:id], :controller => "bugs", :action => "show", :id => bug[:id] %></td>-->
|
| 15 |
<td><%= bug[:id] %></td> |
| 16 |
<td><%= bug[:livello_gravita] %></td> |
| 17 |
<td><%= bug[:name] %></td> |
| 18 |
<td><%= bug[:description] %></td> |
| 19 |
</tr>
|
| 20 |
<% end %> |
| 21 |
</tbody>
|
| 22 |
</table>
|