Touch up the Download Export page

This commit is contained in:
Andy Smith
2026-01-20 15:33:37 -06:00
committed by Stanko K.R.
parent 77b15687eb
commit 5278b8e5fd
3 changed files with 12 additions and 17 deletions
+6 -8
View File
@@ -10,20 +10,18 @@
</div>
<% end %>
<div class="panel panel--wide shadow center flex flex-column gap">
<h2 class="txt-large margin-none font-weight-black"><%= @page_title %></h2>
<div class="panel panel--wide shadow center flex flex-column align-center gap">
<h2 class="txt-large font-weight-black margin-none"><%= @page_title %></h2>
<% if @export.present? %>
<p class="margin-none-block-start">Your export is ready. The download should start automatically.</p>
<div>Your export is ready. The download should start automatically.</div>
<%= link_to rails_blob_path(@export.file, disposition: "attachment"),
<%= link_to "Download your data", rails_blob_path(@export.file, disposition: "attachment"),
id: "download-link",
class: "btn btn--link",
data: { turbo: false, controller: "auto-click" } do %>
Download your data
<% end %>
data: { turbo: false, controller: "auto-click" } %>
<% else %>
<p class="margin-none-block-start">That download link has expired. Youll need to <%= link_to "request a new export", account_settings_path, class: "txt-lnk" %>.</p>
<div>That download link has expired. Youll need to <%= link_to "request a new export", account_settings_path, class: "txt-link" %>.</div>
<% end %>
</div>
-1
View File
@@ -9,7 +9,6 @@
</header>
<%= form_with url: imports_path, class: "flex flex-column gap", data: { controller: "form upload-preview" }, multipart: true do |form| %>
<label class="btn input--upload">
<div data-upload-preview-target="placeholder">Choose a file…</div>
<div data-upload-preview-target="fileName" hidden></div>
+6 -8
View File
@@ -10,20 +10,18 @@
</div>
<% end %>
<div class="panel panel--wide shadow center flex flex-column gap">
<h2 class="txt-large margin-none font-weight-black"><%= @page_title %></h2>
<div class="panel panel--wide shadow center flex flex-column align-center gap">
<h2 class="txt-large font-weight-black margin-none"><%= @page_title %></h2>
<% if @export.present? %>
<p class="margin-none-block-start">Your export is ready. The download should start automatically.</p>
<div>Your export is ready. The download should start automatically.</div>
<%= link_to rails_blob_path(@export.file, disposition: "attachment"),
<%= link_to "Download your data", rails_blob_path(@export.file, disposition: "attachment"),
id: "download-link",
class: "btn btn--link",
data: { turbo: false, controller: "auto-click" } do %>
Download your data
<% end %>
data: { turbo: false, controller: "auto-click" } %>
<% else %>
<p class="margin-none-block-start">That download link has expired. You'll need to <%= link_to "request a new export", user_path(@user), class: "txt-lnk" %>.</p>
<div>That download link has expired. You'll need to <%= link_to "request a new export", user_path(@user), class: "txt-link" %>.</div>
<% end %>
</div>