Commit 0e4c264b385116ed73720587c169cfa2b8eff220

Authored by AntonioTerceiro
1 parent 9f32ff06

ActionItem172: displaying a little more information about tasks


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1551 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/tasks/processed.rhtml
... ... @@ -5,7 +5,22 @@
5 5 <% else %>
6 6 <ul>
7 7 <% @tasks.each do |item| %>
8   - <li><%= item.class.name %></li>
  8 + <li>
  9 + <table>
  10 + <tr>
  11 + <th><%= _('Task') %></th>
  12 + <td><%= item.description %></td>
  13 + </tr>
  14 + <tr>
  15 + <th><%= _('Created') %></th>
  16 + <td><%= show_date (item.created_at) %></th>
  17 + </tr>
  18 + <tr>
  19 + <th><%= _('Processed') %></th>
  20 + <td><%= show_date (item.end_date) %></th>
  21 + </tr>
  22 + </table>
  23 + </li>
9 24 <% end %>
10 25 </ul>
11 26 <% end %>
... ...
db/migrate/025_add_created_at_field_to_task.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +class AddCreatedAtFieldToTask < ActiveRecord::Migration
  2 + def self.up
  3 + add_column :tasks, :created_at, :datetime
  4 + end
  5 +
  6 + def self.down
  7 + remove_column :tasks, :created_at
  8 + end
  9 +end
... ...