forgot to commit a file

This commit is contained in:
Rob Vermaas 2011-02-02 09:07:17 +00:00
parent 559ab9c97a
commit a561c09f2c
2 changed files with 27 additions and 0 deletions

21
src/root/plain-reload.tt Normal file
View file

@ -0,0 +1,21 @@
[% WRAPPER layout.tt title=title %]
[% PROCESS common.tt %]
<h2>Last 50 lines of log</h2>
[% IF reload %]
<script>
$(document).ready(function() {
$("#contents").load("[% url %]");
var refreshId = setInterval(function() {
$("#contents").load("[% url %]");
}, 5000);
});
</script>
[% END %]
<pre class="taillog" id="contents">
[% contents -%]
</pre>
[% END %]

View file

@ -141,6 +141,12 @@ pre {
}
pre.buildlog {
border: 1px solid black;
padding: 0.3em;
white-space: pre-wrap;
}
pre.taillog {
border: 3px solid darkblue;
padding: 0.3em;
white-space: pre-wrap;