зеркало из https://github.com/mozilla/gecko-dev.git
- remove linebreaks from comments prior to display
This commit is contained in:
Родитель
3118d1e761
Коммит
d6aef270b6
|
@ -6,7 +6,7 @@
|
|||
var comments = new Array();
|
||||
[% subscript=0 %]
|
||||
[% FOREACH result=results %]
|
||||
comments[[% subscript %]] = "[% 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.replace('\@','@') %]\">[% comment.user.email.replace('\@','@') %]</a>[% ELSE %]Anonymous[% END %]<br/>[% comment.submission_time.strftime("%Y-%m-%d %T %Z") %]</b><br/>[% icon %] [% comment.comment %]<br/></p>[% END %][% END %]";
|
||||
comments[[% subscript %]] = "[% 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.replace('\@','@') %]\">[% comment.user.email.replace('\@','@') %]</a>[% ELSE %]Anonymous[% END %]<br/>[% comment.submission_time.strftime("%Y-%m-%d %T %Z") %]</b><br/>[% icon %] [% comment.comment.replace('"','\"').replace('\r\n','') %]<br/></p>[% END %][% END %]";
|
||||
[% subscript=subscript+1 %]
|
||||
[% END %]
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче