mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 14:54:49 +00:00
* First cut of smallest rebrand, pending icons * Leave SQL schema tokens/user names the same for now * First batch of logos * Release notes/what's new * /releases missing * redirect_uri for sureapp:// * Padded logo * Test the correct /releases URL * Missed a few mobile URIs * Some icons/asssets from /website/ repo * Seed/sample data user @sure.local now * New screenshot * Want to keep their legal "boilerplate" from the upstream repo
23 lines
916 B
Plaintext
23 lines
916 B
Plaintext
<div class="bg-container rounded-xl p-6 space-y-6">
|
|
<div class="text-center space-y-2">
|
|
<div class="mx-auto w-12 h-12 rounded-full bg-surface-inset flex items-center justify-center mb-4">
|
|
<%= icon("loader-circle", class: "w-6 h-6 text-primary animate-spin") %>
|
|
</div>
|
|
<h1 class="text-2xl font-medium text-primary"><%= t(".title") %></h1>
|
|
<p class="text-sm text-secondary">Redirecting you back to the application...</p>
|
|
</div>
|
|
</div>
|
|
|
|
<% turbo_disabled = @pre_auth.redirect_uri&.start_with?("sureapp://") || params[:display] == "mobile" %>
|
|
<%= form_tag @pre_auth.redirect_uri, method: :post, name: :redirect_form, authenticity_token: false, data: { turbo: !turbo_disabled } do %>
|
|
<% auth.body.compact.each do |key, value| %>
|
|
<%= hidden_field_tag key, value %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<script>
|
|
window.onload = function () {
|
|
document.forms['redirect_form'].submit();
|
|
};
|
|
</script>
|