]> git.deb.at Git - deb/packages.git/blob - templates/html/messages.tmpl
html/messages.tmpl: Fix XSS vulneralibility
[deb/packages.git] / templates / html / messages.tmpl
1 <!-- messages.tmpl -->
2 [%- FOREACH error IN errors %]
3 [%- '<div class="perror">' IF loop.first %]
4  <p>[% error | html %]</p>
5 [% '</div>' IF loop.last -%]
6 [% END -%]
7 [%- FOREACH debug IN debugs %]
8 [%- '<div class="pdebug"><h2>Debugging:</h2><pre>' IF loop.first -%]
9 [% debug | html %]
10 [% '</pre></div>' IF loop.last -%]
11 [% END -%]
12 [%- FOREACH hint IN hints %]
13 [%- '<div class="phints">' IF loop.first %]
14  <p>[% hint | html %]</p>
15 [% '</div>' IF loop.last -%]
16 [% END -%]
17 [%- FOREACH msg IN msgs %]
18 [%- '<div class="pmsgs">' IF loop.first %]
19  <p>[% msg | html %]</p>
20 [% '</div>' IF loop.last -%]
21 [% END -%]
22 [%- FOREACH note IN notes %]
23 [%- '<div class="pnotes">' IF loop.first %]
24 [%- IF note.1 %]
25  <h2>[% note.0 | html %]</h2>
26  <p>[% note.1 | html %]</p>
27 [% ELSE %]
28  <p>[% note.0 | html %]</p>
29 [% END -%]
30 [% '</div>' IF loop.last -%]
31 [% END -%]