f0ckv2/views/user.html

28 lines
871 B
HTML
Raw Normal View History

2022-05-17 14:57:32 +00:00
@include(snippets/header)
<h1>{{ user.user }}</h1>
<h2>f0cks:</h2>
@if('items' in f0cks)
2022-05-18 03:43:17 +00:00
<div class="posts">
2022-05-17 14:57:32 +00:00
@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>
2022-05-18 03:43:17 +00:00
<a href="{{ f0cks.link.main }}">show all f0cks</a>
2022-05-17 14:57:32 +00:00
@else
no f0cks given
@endif
<h2>favs:</h2>
@if('items' in favs)
2022-05-18 03:43:17 +00:00
<div class="posts">
2022-05-17 14:57:32 +00:00
@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>
2022-05-18 03:43:17 +00:00
<a href="{{ favs.link.main }}">show all favs</a>
2022-05-17 14:57:32 +00:00
@else
no favorites
@endif
@include(snippets/footer)