mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
* Create shared ruler view * Use collection rendering/spacer templates for rules, and new shared_ruler * Use shared ruler for all the places a ruler is used * Use shared ruler for imports and balance sheet * Fix brakeman by using a static partial with a defined collection * Update balance sheet
12 lines
330 B
Text
12 lines
330 B
Text
<% if variant == :divider %>
|
|
<%= render "shared/ruler", classes: "my-1" %>
|
|
<% else %>
|
|
<div class="px-1">
|
|
<%= wrapper do %>
|
|
<% if icon %>
|
|
<%= helpers.icon(icon, color: destructive? ? :destructive : :default) %>
|
|
<% end %>
|
|
<%= tag.span(text, class: text_classes) %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|