1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-06 14:05:20 +02:00

Add placeholders for dashboard features (#642)

* Add placeholders for new dashboard

* Fix tests and lint errors
This commit is contained in:
Zach Gollwitzer 2024-04-18 10:32:36 -04:00 committed by GitHub
parent 4708e85da3
commit f5f624881f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 196 additions and 109 deletions

View file

@ -1,10 +1,10 @@
<%# locals: (trend:) %>
<%# locals: { trend: } %>
<% styles = trend_styles(trend) %>
<p class="text-sm <%= styles[:text_class] %>">
<% if trend.direction == "flat" %>
<span>No change</span>
<% else %>
<span><%= styles[:symbol] %><%= format_money trend.value.abs %></span>
<span><%= styles[:symbol] %><%= trend.value.is_a?(Money) ? format_money(trend.value.abs) : trend.value.abs %></span>
<span>(<%= lucide_icon(styles[:icon], class: "w-4 h-4 align-text-bottom inline") %><%= trend.percent %>%)</span>
<% end %>
</p>