1 <% if current_user.andand.is_active %>
3 <strong>Recent jobs</strong>
4 <%= link_to raw("Show all jobs →"), jobs_path, class: 'pull-right' %>
5 <% if not current_user.andand.is_active or @my_jobs.empty? %>
8 <table class="table table-bordered table-condensed table-fixedlayout">
25 <% @my_jobs[0..6].each do |j| %>
29 <%= link_to j.script[0..31], job_path(j.uuid) %>
37 <a href="<%= collection_path(j.output) %>">
38 <% Collection.limit(1).where(uuid: j.output).each do |c| %>
39 <% c.files.each do |file| %>
40 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
52 <% Collection.limit(1).where(uuid: j.log).each do |c| %>
53 <% c.files.each do |file| %>
54 <a href="<%= collection_path(j.log) %>/<%= file[1] %>?disposition=inline&size=<%= file[2] %>">Log</a>
63 <%= raw(distance_of_time_in_words(j.created_at, Time.now).sub('about
64 ','~').sub(' ',' ')) if j.created_at %>
70 <span class="label label-success">finished</span>
71 <% elsif j.success == false %>
72 <span class="label label-danger">failed</span>
73 <% elsif j.running and j.started_at and not j.finished_at %>
74 <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %>
75 <div class="progress" style="margin-bottom: 0">
76 <div class="bar bar-success" style="width: <%= j.tasks_summary[:done] * percent_total_tasks rescue 0 %>%;"></div>
77 <div class="bar" style="width: <%= j.tasks_summary[:running] * percent_total_tasks rescue 0 %>%; opacity: 0.3"></div>
80 <span class="label">queued</span>
91 <strong>Recent pipeline instances</strong>
92 <%= link_to raw("Show all pipeline instances →"), jobs_path, class: 'pull-right' %>
93 <% if not current_user.andand.is_active or @my_pipelines.empty? %>
96 <table class="table table-bordered table-condensed table-fixedlayout">
104 <th>Pipeline template</th>
109 <% @my_pipelines[0..6].each do |p| %>
113 <% PipelineTemplate.limit(1).where(uuid: p.pipeline_template_uuid).each do |i| %>
114 <%= link_to i.name, pipeline_instance_path(p.uuid) %>
121 <%= raw(distance_of_time_in_words(p.created_at, Time.now).sub('about
122 ','~').sub(' ',' ')) if p.created_at %>
128 <span class="label label-success">finished</span>
129 <% elsif p.success == false %>
130 <span class="label label-danger">failed</span>
132 <span class="label label-info">running</span>
134 <span class="label">queued</span>
145 <strong>Recent collections</strong>
146 <%= link_to raw("Show all collections →"), collections_path, class: 'pull-right' %>
147 <div class="pull-right" style="padding-right: 1em">
148 <%= form_tag collections_path,
150 class: 'form-search small-form-margin' do %>
151 <div class="input-append">
152 <%= text_field_tag :search, params[:search], class: 'search-query search-mini' %>
153 <%= submit_tag "Search", name: nil, class: 'btn btn-mini btn-info' %>
157 <% if not current_user.andand.is_active or @my_collections.empty? %>
160 <table class="table table-bordered table-condensed table-fixedlayout">
173 <% @my_collections[0..6].each do |c| %>
177 <a href="<%= collection_path(c.uuid) %>">
178 <% c.files.each do |file| %>
179 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
185 <% if @my_tag_links[c.uuid] %>
187 <%= @my_tag_links[c.uuid].collect(&:name).join(", ") %>
193 <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about
194 ','~').sub(' ',' ')) if c.created_at %>
204 <%= image_tag "dax.png", style: "max-width=40%" %>