mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
* Balance sheet cache layer with cache-busting * Update family cache timestamps during Sync * Less blocking sync loaders * Consolidate family data caching key logic * Fix turbo stream broadcasts * Remove dev delay * Add back account group sorting
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
<%# locals: (account:, title: nil, subtitle: nil) %>
|
|
|
|
<header class="space-y-4">
|
|
<div class="flex items-center gap-4">
|
|
<% content = yield %>
|
|
|
|
<% if content.present? %>
|
|
<%= content %>
|
|
<% else %>
|
|
<div class="flex items-center gap-3 overflow-hidden">
|
|
<%= render "accounts/logo", account: account %>
|
|
|
|
<div class="flex items-center gap-2">
|
|
<div class="truncate">
|
|
<h2 class="font-medium text-xl truncate"><%= title || account.name %></h2>
|
|
<% if subtitle.present? %>
|
|
<p class="text-sm text-secondary"><%= subtitle %></p>
|
|
<% end %>
|
|
</div>
|
|
|
|
<% if account.syncing? %>
|
|
<%= render partial: "shared/sync_indicator", locals: { size: "sm" } %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="flex items-center gap-1 ml-auto">
|
|
<% if Rails.env.development? || self_hosted? %>
|
|
<%= icon(
|
|
"refresh-cw",
|
|
as_button: true,
|
|
size: "sm",
|
|
href: account.linked? ? sync_plaid_item_path(account.plaid_account.plaid_item) : sync_account_path(account),
|
|
disabled: account.syncing?,
|
|
frame: :_top
|
|
) %>
|
|
<% end %>
|
|
|
|
<%= render "accounts/show/menu", account: account %>
|
|
</div>
|
|
</div>
|
|
</header>
|