mirror of
https://github.com/we-promise/sure
synced 2026-04-25 17:15:07 +02:00
* Remove balance mode, sketch out refactor * Activity view checkpoint * Entry partials, checkpoint * Finish txn partial * Give entries context when editing for different turbo responses * Calculate change of balance for each entry * Account tabs consolidation * Translations, linting, brakeman updates * Account actions concern * Finalize forms, get account system tests passing * Get tests passing * Lint, rubocop, schema updates * Improve routing and stream responses * Fix broken routes * Add import option for adding accounts * Fix system test * Fix test specificity * Fix sparklines * Improve account redirects
26 lines
994 B
Plaintext
26 lines
994 B
Plaintext
<%# locals: (transfer:, outflow: false) %>
|
|
|
|
<div class="flex items-center gap-2">
|
|
<% if outflow %>
|
|
<%= link_to transfer.from_account, data: { turbo_frame: :_top }, class: "hover:opacity-90" do %>
|
|
<%= circle_logo(transfer.from_name[0].upcase, size: "sm") %>
|
|
<% end %>
|
|
|
|
<%= lucide_icon "arrow-right", class: "text-gray-500 w-4 h-4" %>
|
|
|
|
<%= link_to transfer.to_account, data: { turbo_frame: :_top }, class: "hover:opacity-90" do %>
|
|
<%= circle_logo(transfer.to_name[0].upcase, size: "sm") %>
|
|
<% end %>
|
|
<% else %>
|
|
<%= link_to transfer.to_account, data: { turbo_frame: :_top }, class: "hover:opacity-90" do %>
|
|
<%= circle_logo(transfer.to_name[0].upcase, size: "sm") %>
|
|
<% end %>
|
|
|
|
<%= lucide_icon "arrow-left", class: "text-gray-500 w-4 h-4" %>
|
|
|
|
<%= link_to transfer.from_account, data: { turbo_frame: :_top }, class: "hover:opacity-90" do %>
|
|
<%= circle_logo(transfer.from_name[0].upcase, size: "sm") %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|