3 <div class="panel panel-default" style="min-height: 10.5em">
4 <div class="panel-heading">
5 <span class="panel-title">Recent pipelines and processes</span>
6 <% if current_user.andand.is_active %>
7 <span class="pull-right recent-processes-actions">
10 choose_pipeline_templates_path(
11 title: 'Choose a pipeline to run:',
12 action_name: 'Next: choose inputs <i class="fa fa-fw fa-arrow-circle-right"></i>',
13 action_href: pipeline_instances_path,
14 action_method: 'post',
15 action_data: {'selection_param' => 'pipeline_instance[pipeline_template_uuid]', 'pipeline_instance[owner_uuid]' => current_user.uuid, 'success' => 'redirect-to-created-object'}.to_json),
16 { class: "btn btn-primary btn-xs", remote: true }) do %>
17 <i class="fa fa-fw fa-gear"></i> Run a pipeline...
21 <%= link_to all_processes_path, class: 'btn btn-default btn-xs' do %>
22 All processes <i class="fa fa-fw fa-arrow-circle-right"></i>
29 <% _recent_processes = recent_processes(12) %>
30 <div class="panel-body recent-processes">
31 <% if _recent_processes.empty? %>
32 No recent pipelines or processes.
34 <% _recent_processes.each do |p| %>
35 <% wu = p.work_unit %>
36 <% if wu.is_finished? %>
37 <div class="dashboard-panel-info-row row-<%=wu.uuid%>">
39 <div class="col-md-6 text-overflow-ellipsis">
40 <%= link_to_if_arvados_object p, {friendly_name: true} %>
42 <div class="col-md-2">
43 <span class="label label-<%=wu.state_bootstrap_class%>"><%=wu.state_label%></span>
45 <div class="col-md-4">
46 <%= render_localized_date(wu.finished_at || wu.modified_at, "noseconds") %>
50 <div class="col-md-12">
51 <% if wu.started_at and wu.finished_at %>
52 <% wu_time = wu.finished_at - wu.started_at %>
53 Active for <%= render_runtime(wu_time, false) %>
56 <%= render partial: 'work_units/show_output', locals: {wu: wu, align: 'pull-right', include_icon: true} %>
62 <div class="dashboard-panel-info-row row-<%=wu.uuid%>">
63 <div class="clearfix">
64 <%= link_to_if_arvados_object p, {friendly_name: true} %>
65 <div class="pull-right" style="width: 40%">
66 <div class="progress" style="margin-bottom: 0px">
73 children = wu.children
74 running = children.select { |c| c.state_label == "Running" }
75 queued = children.select { |c| c.state_label == "Queued" }
78 <div class="clearfix">
79 Started at <%= render_localized_date(wu.started_at || wu.created_at, "noseconds") %>.
80 <% wu_time = Time.now - (wu.started_at || wu.created_at) %>
81 Active for <%= render_runtime(wu_time, false) %>.
83 <div class="pull-right">
84 <% running.each do |r| %>
85 <span class="label label-<%= r.state_bootstrap_class %>"> <%= r.label || r.state_label || 'Not ready' %> </span>
87 <% queued.each do |q| %>
88 <span class="label label-<%= q.state_bootstrap_class %>"> <%= q.label || r.state_label || 'Not ready' %> </span>
100 <div class="col-md-6">
101 <% nodes = Node.filter([["last_ping_at", ">", Time.now - 3600]]) %>
102 <div class="panel panel-default" style="min-height: 10.5em">
103 <div class="panel-heading"><span class="panel-title">Compute node status</span>
104 <span class="pull-right compute-node-actions">
105 <% if current_user.andand.is_admin %>
107 <%= link_to nodes_path, class: 'btn btn-default btn-xs' do %>
108 All nodes <i class="fa fa-fw fa-arrow-circle-right"></i>
114 <div class="panel-body compute-node-summary-pane">
116 <%= render partial: 'compute_node_summary', locals: {nodes: nodes} %>
117 <% active_nodes = [] %>
118 <% nodes.sort_by { |n| n.hostname || "" }.each do |n| %>
119 <% if n.crunch_worker_state.in? ["busy", "idle"] %>
120 <% active_nodes << n %>
123 <% if active_nodes.any? %>
124 <div style="text-align: center">
125 <a data-toggle="collapse" href="#compute_node_status">Details <span class="caret"></span></a>
129 <div id="compute_node_status" class="collapse">
130 <%= render partial: 'compute_node_status', locals: {nodes: active_nodes} %>
134 <div class="panel panel-default">
135 <div class="panel-heading"><span class="panel-title">Recent collections</span>
136 <span class="pull-right">
137 <%= link_to collections_path, class: 'btn btn-default btn-xs' do %>
138 All collections <i class="fa fa-fw fa-arrow-circle-right"></i>
142 <div class="panel-body">
143 <% r = recent_collections(8) %>
144 <% r[:collections].each do |p| %>
145 <div class="dashboard-panel-info-row">
147 <i class="fa fa-fw fa-folder-o"></i><%= link_to_if_arvados_object r[:owners][p[:owner_uuid]], friendly_name: true %>/
148 <span class="pull-right"><%= render_localized_date(p[:modified_at], "noseconds") %></span>
150 <div class="text-overflow-ellipsis" style="margin-left: 1em; width: 100%"><%= link_to_if_arvados_object p, {friendly_name: true, no_tags: true} %>