Merge pull request #481 from basecamp/one-day-reminder

One day reminder
This commit is contained in:
Andy Smith
2025-05-08 15:46:50 -05:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
<%= render "cards/display/common/background", card: card %>
<% if card.closing_soon? %>
<%= render "cards/display/preview/bubble", label: "Closes in", days: card.days_until_close %>
<%= render "cards/display/preview/bubble", days: card.days_until_close %>
<% end %>
<% end %>
<% end %>
@@ -3,20 +3,20 @@
<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">
<%= label %>
<%= days < 1 ? "Closes" : "Closes in" %>
</textPath>
</text>
</svg>
<span class="circle-bubble__number">
<%= days %>
<%= days < 1 ? "!" : days %>
</span>
<svg viewBox="0 0 200 100">
<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">
<%= "Day".pluralize(days) %>
<%= days < 1 ? "today" : "Day".pluralize(days) %>
</textPath>
</text>
</svg>