12377: Add link to composer on workbench
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 14 Dec 2017 23:05:23 +0000 (18:05 -0500)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 14 Dec 2017 23:05:23 +0000 (18:05 -0500)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

apps/workbench/app/assets/javascripts/work_unit_log.js
apps/workbench/app/views/layouts/body.html.erb
apps/workbench/config/application.default.yml

index 543690b200504fd6578b25e1f3fc530bdfb2d774..4962994cdef7aec94e2d1430454b07131628da1f 100644 (file)
@@ -39,10 +39,7 @@ $(document).on('arv-log-event', '.arv-log-event-handler-append-logs', function(e
                 txt += stamp + "Container "+eventData.object_uuid+" started\n";
                 break;
             case "Complete":
-                var outcome = eventData.properties.new_attributes.exit_code === 0 ? "success" : "failure";
-                txt += stamp + "Container "+eventData.object_uuid+" finished with exit code " +
-                    eventData.properties.new_attributes.exit_code +
-                    " ("+outcome+")\n";
+                txt += stamp + "Container "+eventData.object_uuid+" finished\n";
                 break;
             case "Cancelled":
                 txt += stamp + "Container "+eventData.object_uuid+" was cancelled\n";
index c1399f2602dc151907253d080af08504a53c0875..174e35fbb64705a1614479c9b2e731947b8bf13a 100644 (file)
@@ -72,7 +72,13 @@ SPDX-License-Identifier: AGPL-3.0 %>
                 </li>
                 <% if current_user.is_active %>
                 <li role="menuitem"><a href="/projects/<%=current_user.uuid%>" role="menuitem"><i class="fa fa-lg fa-home fa-fw"></i> Home project </a></li>
-
+                  <% if Rails.configuration.composer_url %>
+                    <li role="menuitem">
+                      <%= link_to Rails.configuration.composer_url, role: 'menu-item' do %>
+                      <i class="fa fa-lg fa-share-alt fa-fw"></i> Workflow Composer
+                  <% end %>
+                    </li>
+                  <% end %>
                 <li role="menuitem">
                   <%= link_to virtual_machines_user_path(current_user), role: 'menu-item' do %>
                     <i class="fa fa-lg fa-terminal fa-fw"></i> Virtual machines
@@ -85,7 +91,6 @@ SPDX-License-Identifier: AGPL-3.0 %>
                     <i class="fa fa-lg fa-key fa-fw"></i> SSH keys
                   <% end %>
                 </li>
-
                 <% if Rails.configuration.user_profile_form_fields %>
                   <li role="menuitem"><a href="/users/<%=current_user.uuid%>/profile" role="menuitem"><i class="fa fa-lg fa-user fa-fw"></i> Manage profile</a></li>
                 <% end %>
index eda6d0a423203dcec81a876352ad709766bcb28d..187845038ea3c48449ccd1e7d1c002657ffe6e37 100644 (file)
@@ -309,3 +309,8 @@ common:
   # Example:
   # multi_site_search: https://workbench.qr1hi.arvadosapi.com/collections/multisite
   multi_site_search: false
+
+  #
+  # Link to use for Arvados Workflow Composer app, or false if not available.
+  #
+  composer_url: false
\ No newline at end of file