1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-07 06:25:19 +02:00

Lint fixes

This commit is contained in:
Zach Gollwitzer 2025-07-18 15:10:52 -04:00
parent 79d019bacd
commit 0888f31352
6 changed files with 15 additions and 15 deletions

View file

@ -6,4 +6,4 @@
<%= tooltip_content %> <%= tooltip_content %>
</div> </div>
</div> </div>
</span> </span>

View file

@ -14,4 +14,4 @@ class DS::Tooltip < ApplicationComponent
def tooltip_content def tooltip_content
content? ? content : @text content? ? content : @text
end end
end end

View file

@ -79,7 +79,7 @@
<% grouped_entries.each do |date, entries| %> <% grouped_entries.each do |date, entries| %>
<%= render UI::Account::EntriesDateGroup.new( <%= render UI::Account::EntriesDateGroup.new(
account: account, account: account,
date: date, date: date,
entries: entries, entries: entries,
balance_trend: balance_trend_for_date(date), balance_trend: balance_trend_for_date(date),
transfers: transfers_for_date(date) transfers: transfers_for_date(date)
@ -94,4 +94,4 @@
<% end %> <% end %>
<% end %> <% end %>
</div> </div>
<% end %> <% end %>

View file

@ -28,47 +28,47 @@
<div class="p-4 space-y-3"> <div class="p-4 space-y-3">
<dl class="flex gap-4 items-center text-sm text-primary"> <dl class="flex gap-4 items-center text-sm text-primary">
<dt>Start of day balance</dt> <dt>Start of day balance</dt>
<hr class="grow border-dashed border-secondary" /> <hr class="grow border-dashed border-secondary">
<dd class="font-bold"><%= start_balance_money.format %></dd> <dd class="font-bold"><%= start_balance_money.format %></dd>
</dl> </dl>
<% if account.balance_type == :investment %> <% if account.balance_type == :investment %>
<dl class="flex gap-4 items-center text-sm text-primary"> <dl class="flex gap-4 items-center text-sm text-primary">
<dt>Cash &#916;</dt> <dt>Cash &#916;</dt>
<hr class="grow border-dashed border-secondary" /> <hr class="grow border-dashed border-secondary">
<dd><%= transaction_totals_money.format %></dd> <dd><%= transaction_totals_money.format %></dd>
</dl> </dl>
<dl class="flex gap-4 items-center text-sm text-primary"> <dl class="flex gap-4 items-center text-sm text-primary">
<dt>Holdings &#916;</dt> <dt>Holdings &#916;</dt>
<hr class="grow border-dashed border-secondary" /> <hr class="grow border-dashed border-secondary">
<dd><%= holding_change_money.format %></dd> <dd><%= holding_change_money.format %></dd>
</dl> </dl>
<% else %> <% else %>
<dl class="flex gap-4 items-center text-sm text-primary"> <dl class="flex gap-4 items-center text-sm text-primary">
<dt>Transaction totals</dt> <dt>Transaction totals</dt>
<hr class="grow border-dashed border-secondary" /> <hr class="grow border-dashed border-secondary">
<dd><%= transaction_totals_money.format %></dd> <dd><%= transaction_totals_money.format %></dd>
</dl> </dl>
<% end %> <% end %>
<dl class="flex gap-4 items-center text-sm text-primary"> <dl class="flex gap-4 items-center text-sm text-primary">
<dt>End of day balance</dt> <dt>End of day balance</dt>
<hr class="grow border-dashed border-secondary" /> <hr class="grow border-dashed border-secondary">
<dd class="font-medium"><%= end_balance_before_adjustments_money.format %></dd> <dd class="font-medium"><%= end_balance_before_adjustments_money.format %></dd>
</dl> </dl>
<hr class="border border-primary" /> <hr class="border border-primary">
<dl class="flex gap-4 items-center text-sm text-primary"> <dl class="flex gap-4 items-center text-sm text-primary">
<dt>Value adjustments &#916; </dt> <dt>Value adjustments &#916; </dt>
<hr class="grow border-dashed border-secondary" /> <hr class="grow border-dashed border-secondary">
<dd ><%= adjustments_money.format %></dd> <dd><%= adjustments_money.format %></dd>
</dl> </dl>
<dl class="flex gap-4 items-center text-sm text-primary"> <dl class="flex gap-4 items-center text-sm text-primary">
<dt>Closing balance (incl. adjustments)</dt> <dt>Closing balance (incl. adjustments)</dt>
<hr class="grow border-dashed border-primary" /> <hr class="grow border-dashed border-primary">
<dd class="font-bold"><%= end_balance_money.format %></dd> <dd class="font-bold"><%= end_balance_money.format %></dd>
</dl> </dl>
</div> </div>

View file

@ -97,7 +97,7 @@
<%= content_tag :p, <%= content_tag :p,
transaction.transfer? && view_ctx == "global" ? "+/- #{format_money(entry.amount_money.abs)}" : format_money(-entry.amount_money), transaction.transfer? && view_ctx == "global" ? "+/- #{format_money(entry.amount_money.abs)}" : format_money(-entry.amount_money),
class: ["text-green-600": entry.amount.negative?] %> class: ["text-green-600": entry.amount.negative?] %>
</div> </div>
</div> </div>
<% end %> <% end %>
<% end %> <% end %>

View file

@ -29,4 +29,4 @@ class TooltipComponentPreview < ViewComponent::Preview
end end
end end
end end
end end