~sircmpwn/sr.ht-dev

Pluralise ticket counts on the label edit view v2 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/10694/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH v2] Pluralise ticket counts on the label edit view Export this patch

Gareth Pulham
---
Amend a typo: needs to use label.tickets, not just tickets.
Still 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..3aa1d05 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 label.tickets|count == 1 else "tickets"}}
              </a>
            </div>
            {% if is_owner %}
-- 
2.20.1
I don't expect this to work, jinja2 is not entirely like Python. Please
test this and send a new patch.