- <th><%= if pending_containers.first then render_runtime(Time.now - pending_containers.first.modified_at, false, false) else "-" end %></th>
- <th><%= if running_containers.first then render_runtime(Time.now - running_containers.first.started_at, false, false) else "-" end %></th>
- </tr>
- <tr>
- <th>Oldest pending</th>
- <th>Longest running</th>
+ <td><% if pending_containers.first then %>
+ <%= link_to_if_arvados_object pending_containers.first, link_text: render_runtime(Time.now - pending_containers.first.created_at, false, false) %>
+ <% else %>
+ -
+ <% end %>
+ </td>
+
+ <td><% if running_containers.first then %>
+ <%= link_to_if_arvados_object running_containers.first, link_text: render_runtime(Time.now - running_containers.first.created_at, false, false) %>
+ <% else %>
+ -
+ <% end %>
+ </td>