20850: Don't show wb2 deprecation notice to anonymous users 20850-wb1-deprecated
authorPeter Amstutz <peter.amstutz@curii.com>
Sun, 3 Sep 2023 17:52:40 +0000 (13:52 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Sun, 3 Sep 2023 17:52:57 +0000 (13:52 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

apps/workbench/app/views/layouts/body.html.erb

index 46af0f2d8860341bb5a6d78be526f55e4e9a2590..91e3406f7ced2b48c14e40e559ca2c97f8521bfc 100644 (file)
@@ -245,10 +245,10 @@ SPDX-License-Identifier: AGPL-3.0 %>
       <% end %>
     <% end %>
 
+    <% if current_user.andand.is_active %>
     <div id="deprecation-notice" class="row">
       <div class="col-md-12">
        <div class="alert alert-block alert-warning">
-           <button type="button" class="close" data-dismiss="alert">&times;</button>
          <span>You are using the <a href="https://doc.arvados.org/user/topics/workbench-migration.html">deprecated workbench application</a>
            to access Arvados. A newer workbench application is available.
           <form action="<%= wb2_url %>" method="GET">
@@ -260,6 +260,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
     </div>
   </div>
     </div>
+    <% end %>
 
     <%= render partial: 'browser_unsupported' %><%# requires JS support below %>
     <%= render partial: 'getting_started/getting_started_popup' %>