From b97ffa1cf91445848e779709ab24b3c1fc1e4dbd Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 2 Mar 2021 16:53:15 +1100 Subject: [PATCH] Added an optional caption to the "Count remaining" extras template. --- .../data/default-template-pack/extras/count-remaining.j2 | 6 ++++-- vasl_templates/webapp/static/css/tabs-extras.css | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/vasl_templates/webapp/data/default-template-pack/extras/count-remaining.j2 b/vasl_templates/webapp/data/default-template-pack/extras/count-remaining.j2 index deb40bc..6e7492e 100644 --- a/vasl_templates/webapp/data/default-template-pack/extras/count-remaining.j2 +++ b/vasl_templates/webapp/data/default-template-pack/extras/count-remaining.j2 @@ -1,7 +1,7 @@ - + + {# NOTE: We specify the font size in pixels, rather than as a percentage, since this label should be added to a counter. #} -
{{COUNT:/2|Number}} +
+{%if CAPTION != "(none)"%}{{CAPTION}}:{%endif%} {{COUNT:/2|Number}} diff --git a/vasl_templates/webapp/static/css/tabs-extras.css b/vasl_templates/webapp/static/css/tabs-extras.css index f258aa5..5445745 100644 --- a/vasl_templates/webapp/static/css/tabs-extras.css +++ b/vasl_templates/webapp/static/css/tabs-extras.css @@ -31,3 +31,4 @@ #tabs-extras .right-panel [name="extras/kakazu-ridge-cave-complexes"] .select2 { width: 10em !important ; } #tabs-extras .right-panel [name="extras/victory-points"] .select2 { width: 9em !important ; } +#tabs-extras .right-panel [name="extras/count-remaining"] .select2 { width: 11em !important ; }