f0ckv2/views/user.html
Flummi 1380e45794
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 19s
fix count
2023-07-02 13:22:19 +02:00

34 lines
1.2 KiB
HTML

@include(snippets/header)
<div id="main">
<h1>{{ user.user }}@if(user.avatar)&nbsp;<a href="/{{ user.avatar }}"><img src="/t/{{ user.avatar }}.webp" style="width: 24px" /></a>@endif</h1>
<p>ID: {{ user.user_id }}</p>
<p>{{ count.f0cks }} f0ck{{ count.f0cks == 1 ? '' : 's' }}</p>
<p>{{ count.favs }} fav{{ count.favs == 1 ? '' : 's' }}</p>
<p>Joined: {{ user.created_at }}</p>
<h2>f0cks:</h2>
@if('items' in f0cks)
<div class="posts">
@each(f0cks.items as item)
<a href="{{ f0cks.link.main }}{{ item.id }}" data-mime="{{ item.mime }}" data-mode="{{ item.tag_id ? ['','sfw','nsfw'][item.tag_id] : 'null' }}" style="background-image: url('/t/{{ item.id }}.webp')"><p></p></a>
@endeach
</div>
<a href="{{ f0cks.link.main }}">show all f0cks</a>
@else
no f0cks given
@endif
<h2>favs:</h2>
@if('items' in favs)
<div class="posts">
@each(favs.items as item)
<a href="{{ favs.link.main }}{{ item.id }}" data-mime="{{ item.mime }}" data-mode="{{ item.tag_id ? ['','sfw','nsfw'][item.tag_id] : 'null' }}" style="background-image: url('/t/{{ item.id }}.webp')"><p></p></a>
@endeach
</div>
<a href="{{ favs.link.main }}">show all favs</a>
@else
no favorites
@endif
</div>
@include(snippets/footer)