mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
- this needs to be all on one line otherwise the linebreaks cause the JS to be malformed
This commit is contained in:
parent
848f2d2a1c
commit
24e7e84c62
@ -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 %T %Z") %]</b>
|
||||
<br/>[% icon | none %] [% 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 %T %Z") %]</b><br/>[% icon | none %] [% comment.comment FILTER js | html %]<br/></p>[% END %][% END %]";
|
||||
[% subscript=subscript+1 %]
|
||||
[% END %]
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user