Timestamp in UTC, abstract storage

This commit is contained in:
Gregory Eremin
2013-06-07 12:32:50 +04:00
parent 861c12aa32
commit c6f0f2480d
14 changed files with 84 additions and 32 deletions
@@ -13,7 +13,7 @@
<% @runs.each do |run| %>
<tr>
<td><span class="<%= task_label(run) %> radius label"><%= run.name %></span></td>
<td><%= l run.created_at, format: :short %> (<%= time_ago_in_words(run.created_at) %> ago)</td>
<td><%= l run.timestamp, format: :short %> (<%= time_ago_in_words(run.timestamp) %> ago)</td>
<td><%= run.execution_time.round(6) %>s</td>
</tr>
<% end %>
@@ -12,8 +12,8 @@
<% @tasks.each do |run| %>
<tr>
<td><span class="<%= task_label(run) %> radius label"><%= run.name %></span></td>
<% if run.created_at %>
<td><%= time_ago_in_words(run.created_at) %> ago</td>
<% if run.timestamp %>
<td><%= time_ago_in_words(run.timestamp) %> ago</td>
<td><%= run.execution_time.round(6) %>s</td>
<td><%= link_to 'Run', run_task_path(run.name, back: tasks_path), class: 'small radius button' %></td>
<td><%= link_to 'History', task_runs_path(run.name), class: 'secondary small radius button' %></td>