20690: Remove workbench1 and testing/packaging references.
[arvados.git] / apps / workbench / app / views / user_agreements / index.html.erb
diff --git a/apps/workbench/app/views/user_agreements/index.html.erb b/apps/workbench/app/views/user_agreements/index.html.erb
deleted file mode 100644 (file)
index d52ad64..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<%# Copyright (C) The Arvados Authors. All rights reserved.
-
-SPDX-License-Identifier: AGPL-3.0 %>
-
-<% content_for :breadcrumbs do raw '<!-- -->' end %>
-
-<% n_files = unsigned_user_agreements.collect(&:files).flatten(1).count %>
-<% content_for :page_title do %>
-<% if n_files == 1 %>
-<%= unsigned_user_agreements.first.files.first[1].sub(/\.[a-z]{3,4}$/,'') %>
-<% else %>
-User agreements
-<% end %>
-<% end %>
-
-<%= form_for(unsigned_user_agreements.first, {url: {action: 'sign', controller: 'user_agreements'}, method: :post}) do |f| %>
-<%= hidden_field_tag :return_to, request.url %>
-<div id="open_user_agreement">
-  <div class="alert alert-info">
-    <strong>Please check <%= n_files > 1 ? 'each' : 'the' %> box below</strong> to indicate that you have read and accepted the user agreement<%= 's' if n_files > 1 %>.
-  </div>
-  <% if n_files == 1 and (Rails.configuration.Workbench.ShowUserAgreementInline rescue false) %>
-  <% ua = unsigned_user_agreements.first; file = ua.files.first %>
-  <object data="<%= url_for(controller: 'collections', action: 'show_file', uuid: ua.uuid, file: "#{file[0]}/#{file[1]}") %>" type="<%= Rack::Mime::MIME_TYPES[file[1].match(/\.\w+$/)[0]] rescue '' %>" width="100%" height="400px">
-  </object>
-  <% end %>
-  <div>
-    <% unsigned_user_agreements.each do |ua| %>
-    <% ua.files.each do |file| %>
-    <div class="checkbox">
-      <%= f.label 'checked[]' do %>
-      <%= check_box_tag 'checked[]', "#{ua.uuid}/#{file[0]}/#{file[1]}", false %>
-      Accept <%= file[1].sub(/\.[a-z]{3,4}$/,'') %>
-      <%= link_to 'View agreement', {controller: 'collections', action: 'show_file', uuid: ua.uuid, file: "#{file[0]}/#{file[1]}"}, {target: '_blank', class: 'btn btn-xs btn-info'} %>
-      <% end %>
-    </div>
-    <% end %>
-    <% end %>
-  </div>
-  <div style="height: 1em"></div>
-  <div>
-    <%= f.submit 'Continue', {class: 'btn btn-primary'} %>
-  </div>
-</div>
-<% end %>