Files
fizzy/app/views/sessions/menus/show.html.erb
T
Stanko Krtalić 98755844a1 Remove the internal API
* Bind sessions to identities
* Remove references to the identity token
* Move email changes to identity
* Move account menu into a turbo-frame
* Create tenants from a tenanted route
2025-10-31 16:26:08 +01:00

40 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<% @page_title = "Choose an account" %>
<% cache [ Current.identity, @memberships ] do %>
<div
class="panel panel--centered flex flex-column gap-half"
style="--popup-icon-size: 24px; --popup-item-padding-inline: 0.5rem;"
>
<% if @memberships.present? %>
<h1 class="txt-x-large font-weight-black margin-none">
Your BOXCAR accounts
</h1>
<menu class="popup__list pad border-radius border">
<% @memberships.each do |membership| %>
<li class="popup__item txt-medium">
<%= icon_tag "marker", class: "popup__icon" %>
<%= link_to root_url(script_name: "/#{membership.tenant}"), class: "btn overflow-ellipsis fill-transparent popup__btn" do %>
<strong><%= membership.account_name %></strong>
<% end %>
</li>
<% end %>
</menu>
<% else %>
<h1 class="txt-x-large font-weight-black margin-none">Hmm...</h1>
<p class="margin-none-block-start">You dont have any BOXCAR accounts.</p>
<% end %>
<% if defined?(saas) %>
<div class="margin-block-start">
<%= link_to saas.new_signup_membership_path, class: "btn btn--plain txt-link center txt-small" do %>
<span>Sign up for a new BOXCAR account</span>
<% end %>
</div>
<% end %>
</div>
<% end %>
<% content_for :footer do %>
<%= render "sessions/footer" %>
<% end %>