new backend
This commit is contained in:
28
views/admin/log.html
Normal file
28
views/admin/log.html
Normal file
@ -0,0 +1,28 @@
|
||||
@include(main/header_admin)
|
||||
@if(log)
|
||||
<h1>last {{ log.length }} entries:</h1>
|
||||
<div class="logwrap">
|
||||
@each(log as line)
|
||||
<p>{{ line }}</p>
|
||||
@endeach
|
||||
</div>
|
||||
<style>
|
||||
div.logwrap {
|
||||
height: 600px;
|
||||
overflow-y: scroll;
|
||||
text-align: left;
|
||||
direction: rtl;
|
||||
}
|
||||
div.logwrap > p {
|
||||
direction: ltr;
|
||||
line-height: 0;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
(() => {
|
||||
const d = document.querySelector("div.logwrap");
|
||||
d.scrollTop = d.scrollHeight;
|
||||
})();
|
||||
</script>
|
||||
@endif
|
||||
@include(main/footer)
|
Reference in New Issue
Block a user