LOGIN / SIGN UP
2 Author: Claes Nästén
Date: Tue Apr 06 19:29:29 +0200 2010
Subject: Re-add updated at in tasks table and indicate sorting.

app/views/tasks/_tasks_table.rhtml
 
4 @@ -4,20 +4,21 @@
4 <% if table_url.nil? %>
5 <th>#</th>
6 <th style="width: 20%;"><%= 'Owner' %></th>
7 <th><%= 'Updated' %></th>
8 <th style="width: 10%;"><%= 'Updated' %></th>
9 <th><%= 'Phase' %></th>
10 <th><%= 'Type' %></th>
11 <th><%= 'Status' %></th>
12 <th><%= 'Pri' %></th>
13 <th style="width: 80%;"><%= 'Title' %></th>
14 <th style="width: 70%;"><%= 'Title' %></th>
15 <% else %>
16 <th>#</th>
17 <th style="width: 20%;"><%= link_to('Owner', order_url(table_url, order, 'owner')) %></th>
18 <th><%= link_to('Phase', order_url(table_url, order, 'phase')) %></th>
19 <th><%= link_to('Type', order_url(table_url, order, 'type')) %></th>
20 <th><%= link_to('Status', order_url(table_url, order, 'status')) %></th>
21 <th><%= link_to('Pri', order_url(table_url, order, 'priority')) %></th>
22 <th style="width: 80%;"><%= 'Title' %></th>
23 <th style="width: 20%;"><%= order_link('Owner', table_url, order, 'owner') %></th>
24 <th style="width: 10%;"><%= order_link('Updated', table_url, order, 'updated') %></th>
25 <th><%= order_link('Phase', table_url, order, 'phase') %></th>
26 <th><%= order_link('Type', table_url, order, 'type') %></th>
27 <th><%= order_link('Status', table_url, order, 'status') %></th>
28 <th><%= order_link('Pri', table_url, order, 'priority') %></th>
29 <th style="width: 70%;"><%= 'Title' %></th>
30 <% end %>
31 </tr>
32 </thead>
...  
32 @@ -31,6 +32,7 @@
32 <tr class="<%= cycle('row_even', 'row_odd') %> task_priority_<%= task.task_priority.priority %> task_status_<%= task.task_status.name %> data">
33 <td><%= task.id %></td>
34 <td><%= link_to(h(task.user.name), user_summary_path(task.user)) %></td>
35 <td><%= format_date(task.updated_at) %></td>
36 <td><%= task.phase.name if task.phase %></td>
37 <td><%= task.task_type.name %></td>
38 <td><%= task.task_status.name %></td>
...