19177: Do not show the collection's sharing button on wb1 when it shouldn't.
[arvados.git] / apps / workbench / app / views / collections / show.html.erb
index 663ae06fe681a321b840975c2e2e529ffb56007f..8a9200aeba77ee607f080bc7a3dbddffc8d964b7 100644 (file)
@@ -1,5 +1,9 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <div class="row row-fill-height">
-  <div class="col-md-6">
+  <div class="col-md-7">
     <div class="panel panel-info">
       <div class="panel-heading">
         <h3 class="panel-title">
@@ -28,7 +32,7 @@
     </div>
   </div>
   <% if current_user %>
-  <div class="col-md-6">
+  <div class="col-md-5">
     <div class="panel panel-default">
       <div class="panel-heading">
         <h3 class="panel-title">
         </h3>
       </div>
       <div class="panel-body">
-        <!--
-        <input type="text" class="form-control" placeholder="Search"/>
-        -->
-
+        <% if !Rails.configuration.Workbench.DisableSharingURLsUI %>
         <div id="sharing-button">
           <%= render partial: 'sharing_button' %>
         </div>
+        <% end %>
 
         <div style="height:0.5em;"></div>
         <% if @projects.andand.any? %>
@@ -68,7 +70,7 @@
     </div>
   </div>
   <% else %>
-  <div class="col-md-6">
+  <div class="col-md-5">
     <div class="panel panel-default">
       <div class="panel-heading">
         <h3 class="panel-title">