f0ckv2/views/user.html

50 lines
1.7 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-11-28 21:24:40 +00:00
<div class="profile_head">
@if(user.avatar)
<div class="profile_head_avatar">
<img src="/t/{{ user.avatar }}.webp" style="display: grid;width: 55px" />
</div>
@endif
<div class="layersoffear">
<div class="profile_head_username">
2024-06-24 06:41:46 +00:00
<span>@if(user.admin)&#11088;&nbsp;@endif{{ user.user }}</span>
2023-11-28 21:24:40 +00:00
</div>
<div class="profile_head_user_stats">
2023-11-28 23:56:21 +00:00
ID: {{ user.user_id }} Joined: {{ user.created_at }}
2023-11-28 21:24:40 +00:00
</div>
</div>
</div>
2023-11-28 23:56:21 +00:00
<div class="user_content_wrapper">
<div class="f0cks">
<div class="f0cks-header">
2023-11-29 03:46:21 +00:00
f0ck{{ count.f0cks == 1 ? '' : 's' }}: {{ count.f0cks }} <a href="{{ f0cks.link.main }}">view all</a>
2023-11-28 23:56:21 +00:00
</div>
@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>
@else
no f0cks given
@endif
</div>
<div class="favs">
<div class="favs-header">
2023-11-29 03:46:21 +00:00
fav{{ count.favs == 1 ? '' : 's' }}: {{ count.favs }} <a href="{{ favs.link.main }}">view all</a>
2023-11-28 23:56:21 +00:00
</div>
@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>
@else
no favorites
@endif
</div>
2023-05-03 02:53:22 +00:00
</div>
2022-05-17 14:57:32 +00:00
</div>
2023-05-03 02:53:22 +00:00
@include(snippets/footer)