Merge pull request #481 from basecamp/one-day-reminder
One day reminder
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user