1 <% if current_user.andand.is_active %>
3 <strong>Recent jobs</strong>
4 <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
5 <%= link_to raw("Show all jobs →"), jobs_path, class: 'pull-right' %>
6 <% if not current_user.andand.is_active or @my_jobs.empty? %>
9 <table class="table table-bordered table-condensed table-fixedlayout">
26 <% @my_jobs[0..6].each do |j| %>
30 <%= link_to j.script[0..31], job_path(j.uuid) %>
38 <a href="<%= collection_path(j.output) %>">
39 <% Collection.limit(1).where(uuid: j.output).each do |c| %>
40 <% c.files.each do |file| %>
41 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
53 <% Collection.limit(1).where(uuid: j.log).each do |c| %>
54 <% c.files.each do |file| %>
55 <a href="<%= collection_path(j.log) %>/<%= file[1] %>?disposition=inline&size=<%= file[2] %>">Log</a>
58 <% elsif j.respond_to? :log_buffer and j.log_buffer %>
59 <% buf = j.log_buffer.strip.split("\n").last %>
60 <span title="<%= buf %>"><%= buf %></span>
67 <%= raw(distance_of_time_in_words(j.created_at, Time.now).sub('about
68 ','~').sub(' ',' ')) if j.created_at %>
74 <span class="label label-success">finished</span>
75 <% elsif j.success == false %>
76 <span class="label label-danger">failed</span>
77 <% elsif j.finished_at %>
78 <span class="label">finished?</span>
79 <% elsif j.started_at %>
80 <span class="label label-success">running</span>
82 <span class="label">queued</span>
84 <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %>
85 <div class="inline-progress-container pull-right">
86 <div class="progress">
87 <span class="progress-bar progress-bar-success" style="width: <%= j.tasks_summary[:done] * percent_total_tasks rescue 0 %>%;">
89 <span class="progress-bar" style="width: <%= j.tasks_summary[:running] * percent_total_tasks rescue 0 %>%;">
91 <% if j.success == false %>
92 <span class="progress-bar progress-bar-danger" style="width: <%= tasks_summary[:failed] * percent_total_tasks rescue 0 %>%;">
106 <strong>Recent pipeline instances</strong>
107 <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
108 <%= link_to raw("Show all pipeline instances →"), pipeline_instances_path, class: 'pull-right' %>
109 <% if not current_user.andand.is_active or @my_pipelines.empty? %>
112 <table class="table table-bordered table-condensed table-fixedlayout">
127 <% @my_pipelines[0..6].each do |p| %>
131 <%= link_to_if_arvados_object p.uuid, friendly_name: true %>
137 <%= link_to_if_arvados_object p.pipeline_template_uuid, friendly_name: true %>
143 <%= raw(distance_of_time_in_words(p.created_at, Time.now).sub('about
144 ','~').sub(' ',' ')) if p.created_at %>
150 <span class="label label-success">finished</span>
151 <% elsif p.success == false %>
152 <span class="label label-danger">failed</span>
153 <% elsif p.active and p.modified_at < 30.minutes.ago %>
154 <span class="label label-info">stopped</span>
156 <span class="label label-info">running</span>
158 <span class="label">queued</span>
161 <% summary = pipeline_summary p %>
162 <div class="inline-progress-container pull-right">
163 <div class="progress">
164 <span class="progress-bar progress-bar-success" style="width: <%= summary[:percent_done] %>%;">
166 <% if p.success == false %>
167 <span class="progress-bar progress-bar-danger" style="width: <%= 100.0 - summary[:percent_done] %>%;">
170 <span class="progress-bar" style="width: <%= summary[:percent_running] %>%;">
172 <span class="progress-bar progress-bar-info" style="width: <%= summary[:percent_queued] %>%;">
174 <span class="progress-bar progress-bar-danger" style="width: <%= summary[:percent_failed] %>%;">
188 <strong>Recent collections</strong>
189 <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
190 <%= link_to raw("Show all collections →"), collections_path, class: 'pull-right' %>
191 <div class="pull-right" style="padding-right: 1em; width: 30%;">
192 <%= form_tag collections_path,
194 class: 'form-search small-form-margin' do %>
195 <div class="input-group input-group-sm">
196 <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search' %>
197 <span class="input-group-btn">
198 <%= button_tag(class: 'btn btn-info') do %>
199 <span class="glyphicon glyphicon-search"></span>
205 <% if not current_user.andand.is_active or @my_collections.empty? %>
208 <table class="table table-bordered table-condensed table-fixedlayout">
221 <% @my_collections[0..6].each do |c| %>
225 <a href="<%= collection_path(c.uuid) %>">
226 <% c.files.each do |file| %>
227 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
233 <% if @my_tag_links[c.uuid] %>
235 <%= @my_tag_links[c.uuid].collect(&:name).join(", ") %>
241 <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about
242 ','~').sub(' ',' ')) if c.created_at %>
252 <%= image_tag "dax.png", style: "max-width=40%" %>
255 <% content_for :js do %>
256 setInterval(function(){$('a.refresh:eq(0)').click()}, 60000);