From 2d7a23ca2a4fc32086f4e1f8b3c585d3ae18cc06 Mon Sep 17 00:00:00 2001 From: ldeluigi <44567586+ldeluigi@users.noreply.github.com> Date: Mon, 13 Feb 2023 11:30:17 +0100 Subject: [PATCH] Preview number of variants in view all link --- .../templates/admin/spellbook/combo/change_form.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/spellbook/templates/admin/spellbook/combo/change_form.html b/backend/spellbook/templates/admin/spellbook/combo/change_form.html index 608b882e..05a86825 100644 --- a/backend/spellbook/templates/admin/spellbook/combo/change_form.html +++ b/backend/spellbook/templates/admin/spellbook/combo/change_form.html @@ -86,15 +86,17 @@ {% endfor %} - {% if original.variants_for_editors.count > suggested_count %} + {% with variants_count=original.variants_for_editors.count %} + {% if variants_count > suggested_count %}
- View more variants of this combo... + View all {{ variants_count }} variants of this combo...