mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
|
<%# 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">
|
||
|
<%= render "accounts/logo", account: account %>
|
||
|
|
||
|
<div>
|
||
|
<h2 class="font-medium text-xl"><%= title || account.name %></h2>
|
||
|
<% if subtitle.present? %>
|
||
|
<p class="text-sm text-gray-500"><%= subtitle %></p>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
|
||
|
<div class="flex items-center gap-3 ml-auto">
|
||
|
<%= button_to sync_account_path(account), method: :post, class: "flex items-center gap-2", title: "Sync Account" do %>
|
||
|
<%= lucide_icon "refresh-cw", class: "w-4 h-4 text-gray-500 hover:text-gray-400" %>
|
||
|
<% end %>
|
||
|
|
||
|
<%= render "accounts/show/menu", account: account %>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<% if account.highest_priority_issue %>
|
||
|
<%= render partial: "issues/issue", locals: { issue: account.highest_priority_issue } %>
|
||
|
<% end %>
|
||
|
</header>
|