mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 02:54:10 +00: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
27 lines
870 B
Plaintext
27 lines
870 B
Plaintext
<%# locals: (value:, cash:) %>
|
|
|
|
<div data-controller="tooltip" data-tooltip-placement-value="right" data-tooltip-offset-value=10 data-tooltip-cross-axis-value=50>
|
|
<%= lucide_icon("info", class: "w-4 h-4 shrink-0 text-gray-500") %>
|
|
<div role="tooltip" data-tooltip-target="tooltip" class="tooltip bg-gray-700 text-sm p-2 rounded w-64">
|
|
<div class="text-white">
|
|
<%= t(".total_value_tooltip") %>
|
|
</div>
|
|
<div class="flex pt-3">
|
|
<div class="text-gray-300">
|
|
<%= t(".holdings") %>
|
|
</div>
|
|
<div class="text-white ml-auto">
|
|
<%= tag.p format_money(value, precision: 0) %>
|
|
</div>
|
|
</div>
|
|
<div class="flex">
|
|
<div class="text-gray-300">
|
|
<%= t(".cash") %>
|
|
</div>
|
|
<div class="text-white ml-auto">
|
|
<%= tag.p format_money(cash, precision: 0) %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|