mirror of
https://github.com/we-promise/sure.git
synced 2026-04-12 00:27:21 +00:00
* Added erblint and fixed offenses * Added erblint bintstub. Included erblint into CI * Merged GitHub Actions tasks for rubocop and erblint into one * Added config for erblint. * Reverted erblint call in the CI
11 lines
392 B
Plaintext
11 lines
392 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>
|