forked from lix-project/hydra
forgot to commit a file
This commit is contained in:
parent
559ab9c97a
commit
a561c09f2c
21
src/root/plain-reload.tt
Normal file
21
src/root/plain-reload.tt
Normal 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 %]
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue