f0ckv2/views/user.html

38 lines
1.3 KiB
HTML
Raw Normal View History

2022-05-17 14:57:32 +00:00
@include(snippets/header)
2023-05-03 02:53:22 +00:00
<div id="main">
2023-07-02 11:11:31 +00:00
<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>
@if('items' in f0cks)
<p>{{ f0cks.items.length }} f0ck{{ f0cks.items.length == 1 ? '' : 's' }}</p>
@endif
@if('items' in favs)
<p>{{ favs.items.length }} fav{{ favs.items.length == 1 ? '' : 's' }}</p>
@endif
<p>Joined: {{ user.created_at }}</p>
2022-05-17 14:57:32 +00:00
2023-05-03 02:53:22 +00:00
<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
2022-05-17 14:57:32 +00:00
2023-05-03 02:53:22 +00:00
<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
2022-05-17 14:57:32 +00:00
</div>
2023-05-03 02:53:22 +00:00
@include(snippets/footer)