Better prop names
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<%= render "cards/display/common/background", card: card %>
|
||||
|
||||
<% if card.considering? && card.auto_close_remind? %>
|
||||
<%= render "cards/display/preview/badge", top: "closes in", days: card.auto_close_days_until, bottom: "days" %>
|
||||
<%= render "cards/display/preview/badge", label: "Closes in", days: card.auto_close_days_until %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<path id="top-half" fill="transparent" d="M 20,100 A 80,80 0 0,1 180,100" />
|
||||
<text text-anchor="middle" fill="currentColor">
|
||||
<textPath href="#top-half" startOffset="50%" dominant-baseline="middle">
|
||||
<%= top %>
|
||||
<%= label %>
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
@@ -16,7 +16,7 @@
|
||||
<path id="bottom-half" d="M 20,0 A 80,80 0 0,0 180,0" fill="transparent" />
|
||||
<text text-anchor="middle" fill="currentColor">
|
||||
<textPath href="#bottom-half" startOffset="50%" dominant-baseline="middle">
|
||||
<%= bottom %>
|
||||
Days
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
|
||||
Reference in New Issue
Block a user