~sircmpwn/sr.ht-dev

todo.sr.ht: Pluralise ticket counts on the label edit view v1 PROPOSED

Gareth Pulham
Gareth Pulham: 1
 Pluralise ticket counts on the label edit view

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/10693/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH todo.sr.ht] Pluralise ticket counts on the label edit view Export this patch

Gareth Pulham
Currently, if you create a new label and then add it to a ticket, it'll
sit there saying "1 tickets". Let's check for that singular case.

Needs testing.
---
 todosrht/templates/tracker-labels.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/todosrht/templates/tracker-labels.html b/todosrht/templates/tracker-labels.html
index d409a3b..496daa6 100644
--- a/todosrht/templates/tracker-labels.html
+++ b/todosrht/templates/tracker-labels.html
@@ -80,7 +80,7 @@
            </div>
            <div class="col-auto">
              <a href="{{ label|label_search_url|safe }}">
                {{ label.tickets|count }} tickets
                {{ label.tickets|count }} {{"ticket" if tickets|count == 1 else "tickets"}}
              </a>
            </div>
            {% if is_owner %}
-- 
2.20.1