mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 23:04:49 +00:00
* Clean up time series models * Add value group rollup class for summarizing hierarchical data * Integrate new classes * Update UI to use new patterns * Update D3 charts to expect new data format * Clean up account model * More cleanup * Money improvements * Use new money fields * Remove invalid fixture data to avoid orphaned accountables * Update time series to work better with collections * Fix tests and UI bugs
10 lines
391 B
Plaintext
10 lines
391 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_money trend.value.abs %></span>
|
|
<span>(<%= lucide_icon(styles[:icon], class: "w-4 h-4 align-text-bottom inline") %><%= trend.percent %>%)</span>
|
|
<% end %>
|
|
</p> |