2872: Fix bugs
authorTom Clegg <tom@curoverse.com>
Mon, 2 Jun 2014 15:07:47 +0000 (11:07 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 2 Jun 2014 15:07:47 +0000 (11:07 -0400)
apps/workbench/app/models/virtual_machine.rb
apps/workbench/app/views/folders/_index_jobs_and_pipelines.html.erb

index 705ab8c55ebd8a2fb4cdc5f5e70b115c19eb950b..839cd52493e8b55c6f8dcba2cc0454740a71a09b 100644 (file)
@@ -7,7 +7,7 @@ class VirtualMachine < ArvadosBase
     super.append ['current_user_logins', @current_user_logins]
   end
   def attribute_editable? attr, *args
-    attr != 'current_user_logins' and super *args
+    attr != 'current_user_logins' and super(attr, *args)
   end
   def self.attribute_info
     merger = ->(k,a,b) { a.merge(b, &merger) }
index 44f4f9579f29d63138ab9d8d9ba2847c094177d8..fb637c6e259c702d921f4276db556adde4a5a23d 100644 (file)
@@ -1,4 +1,5 @@
 <div class="container-fluid">
+  <% any = false %>
   <% recent_jobs_and_pipelines[0..9].each do |object| %>
     <% any = true %>
     <div class="row">
@@ -19,7 +20,7 @@
       </div>
     </div>
   <% end %>
-  <% if not defined? any %>
+  <% if not any %>
     <span class="deemphasize">No jobs or pipelines to display.</span>
   <% end %>
 </div>