Fixed progress bar alignment on Firefox.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Wed, 5 Mar 2014 21:56:39 +0000 (16:56 -0500)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Wed, 5 Mar 2014 21:56:39 +0000 (16:56 -0500)
apps/workbench/app/assets/stylesheets/application.css.scss
apps/workbench/app/helpers/pipeline_instances_helper.rb
apps/workbench/app/views/users/_tables.html.erb

index 7a26c709ff678842597383190822b2933ec84ee4..f9173898e31757379358c734ad88594070fb8fe9 100644 (file)
@@ -122,7 +122,7 @@ ul.arvados-nav li ul li {
 }
 
 .inline-progress-container {
-    width: 100px;
+    width: 100%;
     display:inline-block;
 }
 
index 3a923e1e007e320ff3804290ccec5f58c9e85bf5..f3ac35dec38a88239a2a91f891ff62fc52df5f61 100644 (file)
@@ -44,14 +44,14 @@ module PipelineInstancesHelper
   def render_pipeline_job pj
     if pj[:percent_done]
       pj[:progress_bar] = raw <<EOF
-<div class="progress" style="width:100px">
+<div class="progress" style="width:100%">
   <span class="progress-bar progress-bar-success" style="width:#{pj[:percent_done]}%"></span>
   <span class="progress-bar" style="width:#{pj[:percent_running]}%"></span>
 </div>
 EOF
     elsif pj[:progress]
       raw <<EOF
-<div class="progress" style="width:100px">
+<div class="progress" style="width:100%">
 <span class="progress-bar" style="width:#{pj[:progress]*100}%">
 </span>
 </div>
index 320f32c5716f67a346eef72bd03dfd65478fc572..f9e3b6c8bec38c36482f99224af7f296cea3b463 100644 (file)
@@ -12,7 +12,8 @@
           <col width="20%" />
           <col width="20%" />
           <col width="13%" />
-          <col width="27%" />
+          <col width="13%" />
+          <col width="20%" />
         </colgroup>
 
         <tr>
@@ -21,6 +22,7 @@
          <th>Log</th>
          <th>Age</th>
          <th>Status</th>
+         <th>Progress</th>
        </tr>
 
         <% @my_jobs[0..6].each do |j| %>
   <% else %>
     <span class="label">queued</span>
   <% end %>
+</td>
+<td>
   <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %>
-  <div class="inline-progress-container pull-right">
+  <div class="inline-progress-container">
     <div class="progress">
       <span class="progress-bar progress-bar-success" style="width: <%= j.tasks_summary[:done] * percent_total_tasks rescue 0 %>%;">
       </span>
         <col width="30%" />
         <col width="30%" />
         <col width="13%" />
-        <col width="27%" />
+        <col width="13%" />
+        <col width="20%" />
       </colgroup>
 
       <tr>
        <th>Template</th>
        <th>Age</th>
        <th>Status</th>
+       <th>Progress</th>
       </tr>
 
       <% @my_pipelines[0..6].each do |p| %>
             <% else %>
               <span class="label">queued</span>
             <% end %>
-
+          </td>
+          <td>
             <% summary = pipeline_summary p %>
-            <div class="inline-progress-container pull-right">
+            <div class="inline-progress-container">
               <div class="progress">
                 <span class="progress-bar progress-bar-success" style="width: <%= summary[:percent_done] %>%;">
                 </span>