[ARVADOS] updated: ef9bbef07f63dd2207e1336e85884aa90434ad29

Git user git at public.curoverse.com
Fri Feb 10 12:13:37 EST 2017


Summary of changes:
 apps/workbench/app/views/jobs/_show_status.html.erb | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

       via  ef9bbef07f63dd2207e1336e85884aa90434ad29 (commit)
      from  78b94fd03e3c0a2d225d0ab8882ee62dee9f8a11 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit ef9bbef07f63dd2207e1336e85884aa90434ad29
Author: radhika <radhika at curoverse.com>
Date:   Fri Feb 10 12:13:09 2017 -0500

    10945: "Used in jobs" panel placement

diff --git a/apps/workbench/app/views/jobs/_show_status.html.erb b/apps/workbench/app/views/jobs/_show_status.html.erb
index 5218883..ab09a52 100644
--- a/apps/workbench/app/views/jobs/_show_status.html.erb
+++ b/apps/workbench/app/views/jobs/_show_status.html.erb
@@ -22,18 +22,21 @@
     <% end %>
   </div>
 
+  <div class="panel-heading">
+    <span class="panel-title">Used in jobs</span>
+  </div>
+
   <% jobs = Job.order("created_at desc").filter([["components", "like", "%#{@object.uuid}%"]]).limit(10) %>
-  <% if jobs.results.size > 0
-     message = "Used in the jobs"
+  <%
+     too_many_message = ""
      if jobs.items_available > jobs.results.size
-       message += ' (' + (jobs.items_available - jobs.results.size).to_s + ' more jobs are not listed)'
+       too_many_message = (jobs.items_available - jobs.results.size).to_s + ' more jobs are not listed.'
      end
   %>
-    <div class="panel-heading">
-      <span class="panel-title"> <%= message %> </span>
-    </div>
-
-    <div class="panel-body used-in-jobs">
+  <div class="panel-body used-in-jobs">
+    <% if too_many_message != "" %>
+      <p><i><%= too_many_message %></i></p>
+    <% end %>
     <% jobs.each do |j| %>
       <% j.components.each do |k, v| %>
         <% if v == @object.uuid %>
@@ -47,5 +50,5 @@
         <% end %>
       <% end %>
     <% end %>
-  <% end %>
+  </div>
 </div>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list