</div>
<% end %>
-<% if Collection.limit(1).where(created_by: current_user.uuid).count == 0 %>
+<% if @my_collections.count == 0 %>
<div class="alert alert-info daxalert">
<button type="button" class="close" data-dismiss="alert">×</button>
<%= image_tag "dax.png", class: "dax" %>
<% end %>
-<% if Job.limit(1).where(created_by: current_user.uuid).count == 0 %>
+<% if @my_jobs.count == 0 %>
<div class="alert alert-info daxalert">
<button type="button" class="close" data-dismiss="alert">×</button>
<p><%= image_tag "dax.png", class: "dax" %>
</div>
<% end %>
-<% if PipelineInstance.limit(1).where(created_by: current_user.uuid).count == 0 %>
+<% if @my_pipelines.count == 0 %>
<div class="alert alert-info daxalert">
<button type="button" class="close" data-dismiss="alert">×</button>
<p><%= image_tag "dax.png", class: "dax" %>
<tr>
<td>
<small>
- <%= link_to c.uuid[0..31], collection_path(c.uuid) %>
+ <a href="<%= collection_path(c.uuid) %>">
+ <% c.files.each do |file| %>
+ <%= "#{file[0]}/#{file[1]}" %>
+ <% end %>
+ </a>
</small>
</td>
<td>
<td>
<small>
<% if j.success %>
- <%= link_to j.output[0..31], collection_path(j.output) %>
+
+ <a href="<%= collection_path(j.output) %>">
+ <% Collection.limit(1).where(uuid: j.output).each do |c|
+ c.files.each do |file| %>
+ <%= "#{file[0]}/#{file[1]}" %>
+ <% end %>
+ <% end %>
+ </a>
+
<% end %>
</small>
</td>
<tr>
<td>
<small>
- <% i = PipelineTemplate.limit(1).where(uuid: p.pipeline_template_uuid)[0] %>
+ <% PipelineTemplate.limit(1).where(uuid: p.pipeline_template_uuid).each do |i| %>
<%= link_to i.name, pipeline_instance_path(p.uuid) %>
+ <% end %>
</small>
</td>
<td>