This commit is contained in:
Flummi
2021-12-29 05:48:04 +01:00
parent 5fc0c1cf36
commit a87273cea0
12 changed files with 63 additions and 44 deletions

View File

@ -1,4 +1,4 @@
@include(main/header_admin)
@include(snippets/header_admin)
@if(log)
<h1>last {{ log.length }} entries:</h1>
<div class="logwrap">
@ -13,4 +13,4 @@
})();
</script>
@endif
@include(main/footer)
@include(snippets/footer)

View File

@ -1,4 +1,4 @@
@include(main/header_admin)
@include(snippets/header_admin)
<form action="/admin/test" style="margin-top: 15px;">
<input type="text" name="tag" /><button type="submit">search</button>
</form>
@ -24,4 +24,4 @@
@endeach
</table>
@endif
@include(main/footer)
@include(snippets/footer)

View File

@ -1,4 +1,4 @@
@include(main/header_admin)
@include(snippets/header_admin)
<table style="width: 100%;">
<tr>
<td>ID</td>
@ -21,4 +21,4 @@
</tr>
@endeach
</table>
@include(main/footer)
@include(snippets/footer)

View File

@ -1,3 +1,3 @@
@include(snippets/header)
<h1>{{ message }}</h1>
<h1 style="text-align: center;">{{ message }}</h1>
@include(snippets/footer)

View File

@ -61,8 +61,8 @@
<span class="badge badge-dark" id="tags">
@if(typeof item.tags !== "undefined")
@each(item.tags as tag)
<span @if(session)tooltip="{{ tag.user }}" data-tagid="{{ tag.id }}"@endif class="badge@if(tag.tag[0] == "&") badge-greentext@endif badge-{{ (tag.tag === "nsfw" ? "danger" : tag.tag === "sfw" ? "success" : "light") }} mr-2">
<a href="/tag/{{ tag.tag.replace(/\s/g, "%20") }}">{{ tag.tag }}</a>@if(session)&nbsp;<a href="#">&#215;</a>@endif
<span @if(session)tooltip="{{ tag.user }}" data-tagid="{{ tag.id }}"@endif class="badge {{ tag.badge }} mr-2">
<a href="/tag/{{ tag.tag.replace(/\s/g, "%20") }}">{!! tag.tag !!}</a>@if(session)&nbsp;<a href="#">&#215;</a>@endif
</span>
@endeach
@endif

View File

@ -5,7 +5,7 @@
<li class="nav-item dropdown">
@if(session)
<a class="nav-link" href="#" content="{{ session.user }}" data-toggle="dropdown">
<img src="/s/img/ava/default.png" class="avatar" />&nbsp;{{ session.user }}
<img src="/s/img/ava/@if(session.id == 2)nixc.png@elsedefault.png@endif" class="avatar" />&nbsp;{{ session.user }}
</a>
<ul class="dropdown-menu">
<li><a href="/admin">adminpanel</a></li>