[ARVADOS] updated: 0724402caada5dda76c779a16a02432640c32a56

git at public.curoverse.com git at public.curoverse.com
Sat Jun 14 10:57:27 EDT 2014


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

       via  0724402caada5dda76c779a16a02432640c32a56 (commit)
      from  c14e0f75ffd65fdb01743170d3ffb6ecc14deccf (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 0724402caada5dda76c779a16a02432640c32a56
Author: radhika <radhika at curoverse.com>
Date:   Sat Jun 14 10:56:27 2014 -0400

    2659: hide actionable buttons in pipeline instane when the current user is anonymous

diff --git a/apps/workbench/app/views/pipeline_instances/show.html.erb b/apps/workbench/app/views/pipeline_instances/show.html.erb
index 2e35424..b4cbaa4 100644
--- a/apps/workbench/app/views/pipeline_instances/show.html.erb
+++ b/apps/workbench/app/views/pipeline_instances/show.html.erb
@@ -12,37 +12,43 @@
 <% end %>
 
 <% content_for :tab_line_buttons do %>
-  <% if current_user.andand.can_act? %>
   <%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'pipeline_instance[state]' => 'New'),
       class: 'btn btn-primary',
       #data: {toggle: :tooltip, placement: :top}, title: 'copy and modify',
       method: :post,
       ) do %>
+    <% if current_user.andand.can_act? %>
     Clone and edit <i class="fa fa-fw fa-copy"></i>
-  <% end %>
+    <% end %>
+  <% end %> 
 
   <% if @object.state.in? ['New', 'Ready'] %>
     <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
         class: 'btn btn-primary run-pipeline-button',
         method: :patch
         ) do %>
+      <% if current_user.andand.can_act? %>
       Run <i class="fa fa-fw fa-play"></i>
+      <% end %>
     <% end %>
-  <% end %>
   <% else %>
     <% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %>
       <%= link_to(url_for('pipeline_instance[state]' => 'Paused'),
           class: 'btn btn-primary run-pipeline-button',
           method: :patch
           ) do %>
+        <% if current_user.andand.can_act? %>
         Stop <i class="fa fa-fw fa-stop"></i>
+        <% end %>
       <% end %>
     <% elsif @object.state == 'Paused' %>
       <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
           class: 'btn btn-primary run-pipeline-button',
           method: :patch
           ) do %>
+        <% if current_user.andand.can_act? %>
         Resume <i class="fa fa-fw fa-play"></i>
+        <% end %>
       <% end %>
     <% end %>
   <% end %>

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list