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 <a href="<%= collection_path(j.log) %>">Log</a>
59 <%= raw(distance_of_time_in_words(j.created_at, Time.now).sub('about
60 ','~').sub(' ',' ')) if j.created_at %>
66 <span class="label label-success">finished</span>
67 <% elsif j.success == false %>
68 <span class="label label-danger">failed</span>
69 <% elsif j.running and j.started_at and not j.finished_at %>
70 <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %>
71 <div class="progress" style="margin-bottom: 0">
72 <div class="bar bar-success" style="width: <%= j.tasks_summary[:done] * percent_total_tasks rescue 0 %>%;"></div>
73 <div class="bar" style="width: <%= j.tasks_summary[:running] * percent_total_tasks rescue 0 %>%; opacity: 0.3"></div>
76 <span class="label">queued</span>
87 <strong>Recent pipeline instances</strong>
88 <%= link_to raw("Show all pipeline instances →"), jobs_path, class: 'pull-right' %>
89 <% if not current_user.andand.is_active or @my_pipelines.empty? %>
92 <table class="table table-bordered table-condensed table-fixedlayout">
100 <th>Pipeline template</th>
105 <% @my_pipelines[0..6].each do |p| %>
109 <% PipelineTemplate.limit(1).where(uuid: p.pipeline_template_uuid).each do |i| %>
110 <%= link_to i.name, pipeline_instance_path(p.uuid) %>
117 <%= raw(distance_of_time_in_words(p.created_at, Time.now).sub('about
118 ','~').sub(' ',' ')) if p.created_at %>
124 <span class="label label-success">finished</span>
125 <% elsif p.success == false %>
126 <span class="label label-danger">failed</span>
128 <span class="label label-info">running</span>
130 <span class="label">queued</span>
141 <strong>Recent collections</strong>
142 <%= link_to raw("Show all collections →"), collections_path, class: 'pull-right' %>
143 <div class="pull-right" style="padding-right: 1em">
144 <%= form_tag collections_path,
146 class: 'form-search small-form-margin' do %>
147 <div class="input-append">
148 <%= text_field_tag :search, params[:search], class: 'search-query search-mini' %>
149 <%= submit_tag "Search", name: nil, class: 'btn btn-mini btn-info' %>
153 <% if not current_user.andand.is_active or @my_collections.empty? %>
156 <table class="table table-bordered table-condensed table-fixedlayout">
169 <% @my_collections[0..6].each do |c| %>
173 <a href="<%= collection_path(c.uuid) %>">
174 <% c.files.each do |file| %>
175 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
181 <% if @my_tag_links[c.uuid] %>
183 <%= @my_tag_links[c.uuid].collect(&:name).join(", ") %>
189 <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about
190 ','~').sub(' ',' ')) if c.created_at %>
200 <%= image_tag "dax.png", style: "max-width=40%" %>