frontend stuff

This commit is contained in:
Flummi
2021-12-18 19:52:18 +01:00
parent 346574887b
commit adb4f18a7f
4 changed files with 24 additions and 3 deletions

View File

@ -64,7 +64,7 @@
@if(typeof item.tags !== "undefined")
@each(item.tags as tag)
<span @if(session)title="{{ tag.prefix }}"@endif class="badge @if(tag.tag[0] == "&")badge-greentext@endif badge-{{ (tag.tag === "nsfw" ? "danger" : tag.tag === "sfw" ? "success" : "light") }} mr-2">
@if(session)<a href="/admin/test?tag={{ tag.tag.replace(/\s/g, "%20") }}" target="_blank" style="color: inherit !important;">@endif{{ tag.tag }}@if(session)</a>&nbsp;<a href="#">&#215;</a>@endif
<a href="/tag/{{ tag.tag.replace(/\s/g, "%20") }}" style="color: inherit !important;">{{ tag.tag }}</a>@if(session)&nbsp;<a href="#">&#215;</a>@endif
</span>
@endeach
@endif