mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 20:44:08 +00:00
* Handle Turbo updates with tabs Fixes #491 * Add Filterable concern for controllers * Add trendline chart * Extract common UI to partials * Series refactor * Put placeholders for calculations in * Add classification generated column to account * Add basic net worth calculation * Add net worth tests * Get net worth graph working * Fix lint errors * Implement asset grouping query * Make trends and series more intuitive * Fully functional dashboard * Remove logging
10 lines
396 B
Plaintext
10 lines
396 B
Plaintext
<%# 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_currency(trend.amount.abs) %></span>
|
|
<span>(<%= lucide_icon(styles[:icon], class: "w-4 h-4 align-text-bottom inline") %><%= trend.percent %>%)</span>
|
|
<% end %>
|
|
</p> |