https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26392
--- Comment #9 from Katrin Fischer <[email protected]> --- This appears to work well, but it doesn't really make the templates easier to read... - <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts"><span class="user_checkouts_count count_label">[% checkouts | html %]</span> checkout(s)</a></li> Turns into: + [% count = BLOCK %]<span class="user_checkouts_count count_label">[% checkouts | html %]</span>[% END %] + <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">[% tn('{count} checkout', '{count} checkouts', checkouts) | html | $Expand count = count %]</a></li> Can you explain a bit how this works? What is the BLOCK and Expand needed for? We add tons more of | html filters... could this impact performance? I remember when adding the filters in the first place it was an issue. It also adds to the text. I wonder if there would be another way to go about these. Could it make sense to only use the new syntax when we need singular/pluaral or other more advanced methods? -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
