Displays contents of manifest instead of manifest locator.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 27 Dec 2013 22:07:42 +0000 (17:07 -0500)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 27 Dec 2013 22:07:42 +0000 (17:07 -0500)
apps/workbench/app/views/users/home.html.erb

index 68897cdf7b6dcbe4a46dd6db12c415bb2d39af33..d99b29a71677a1193bc1117ab24762356f368ad8 100644 (file)
@@ -59,7 +59,7 @@
   </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">&times;</button>
   <%= image_tag "dax.png", class: "dax" %>
@@ -71,7 +71,7 @@
 
 <% 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">&times;</button>  
   <p><%= image_tag "dax.png", class: "dax" %>
@@ -81,7 +81,7 @@
 </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">&times;</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>