- this needs to be all on one line otherwise the linebreaks cause the JS to be malformed

This commit is contained in:
ccooper%deadsquid.com 2005-11-18 22:22:00 +00:00
parent 848f2d2a1c
commit 24e7e84c62

View File

@ -33,19 +33,7 @@
var comments = new Array();
[% subscript=0 %]
[% FOREACH result=results %]
comments[[% subscript | js %]] = "[% IF result.comments %]
[% FOREACH comment=result.comments %]
[% IF loop.count>1 %]
<hr/>[% END %]<p class='comment'><b>
[% IF comment.user.email %]
<a href=\"mailto:[% comment.user.email FILTER html | email | uri %]\">
[% comment.user.email FILTER html | js | email %]</a>
[% ELSE %]
Anonymous[% END %]
<br/>[% comment.submission_time.strftime("%Y-%m-%d&nbsp;%T %Z") %]</b>
<br/>[% icon | none %]&nbsp;[% comment.comment FILTER js | html %]<br/></p>
[% END %]
[% END %]";
comments[[% subscript | js %]] = "[% IF result.comments %][% FOREACH comment=result.comments %][% IF loop.count>1 %]<hr/>[% END %]<p class='comment'><b>[% IF comment.user.email %]<a href=\"mailto:[% comment.user.email FILTER html | email | uri %]\">[% comment.user.email FILTER html | js | email %]</a>[% ELSE %]Anonymous[% END %]<br/>[% comment.submission_time.strftime("%Y-%m-%d&nbsp;%T %Z") %]</b><br/>[% icon | none %]&nbsp;[% comment.comment FILTER js | html %]<br/></p>[% END %][% END %]";
[% subscript=subscript+1 %]
[% END %]
</script>