From 7ec83b8af675e40d5778697d96df7dbd26d47346 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 19 Jun 2026 08:40:39 +0300 Subject: [PATCH] adjust upload url --- app/views/templates_uploads/show.html.erb | 68 +++++++++++++++-------- 1 file changed, 44 insertions(+), 24 deletions(-) diff --git a/app/views/templates_uploads/show.html.erb b/app/views/templates_uploads/show.html.erb index cac1b7f5..32bdb78a 100644 --- a/app/views/templates_uploads/show.html.erb +++ b/app/views/templates_uploads/show.html.erb @@ -1,30 +1,50 @@ - +<% if Addressable::URI.parse(params[:url]).host == 'docuseal-website.s3.amazonaws.com' %>
-
-
- <%= render 'shared/logo', width: 50, height: 50, class: 'mx-auto' %> -
- -
-

- <%= t('open_file_from') %> - - <%= params[:filename].presence || params[:url] %> - -

-
- <%= link_to t('cancel'), root_path, class: 'white-button w-44' %> - <%= form_for '', url: templates_upload_path, method: :post do |f| %> - - - <%= f.button button_title(title: t('open')), class: 'base-button w-44' %> - <% end %> +
+ <%= render 'shared/logo', width: 50, height: 50, class: 'mx-auto animate-bounce' %> + + <%= t('processing') %>... + +
+
+
+ + <%= form_for '', url: templates_upload_path, method: :post, class: 'hidden' do %> + + + + <% end %> + +<% else %> + +
+
+
+
+ <%= render 'shared/logo', width: 50, height: 50, class: 'mx-auto' %> +
+ +
+

+ <%= t('open_file_from') %> + + <%= params[:filename].presence || params[:url] %> + +

+
+ <%= link_to t('cancel'), root_path, class: 'white-button w-44' %> + <%= form_for '', url: templates_upload_path, method: :post do |f| %> + + + <%= f.button button_title(title: t('open')), class: 'base-button w-44' %> + <% end %> +
-
- + +<% end %>