Node.js based forum software built for the modern web
templates.js added support for !@first and !@last conditionals
psychobunny0edd6985ec28
diff --git a/public/src/templates.js b/public/src/templates.jsindex 0c90900d9c..c451d982bf 100644--- a/public/src/templates.js+++ b/public/src/templates.js@@ -349,7 +349,9 @@if (blockInfo) {checkConditional('@first', blockInfo.iterator === 0);+ checkConditional('!@first', blockInfo.iterator !== 0);checkConditional('@last', blockInfo.iterator === blockInfo.total);+ checkConditional('!@last', blockInfo.iterator !== blockInfo.total);}template = replace(namespace + d, data[d], template);