Merge remote-tracking branch 'origin/dev'
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 19s

This commit is contained in:
schrumpel 2023-11-29 00:56:33 +01:00
commit b1c9b7de72
2 changed files with 67 additions and 26 deletions

View File

@ -2868,10 +2868,45 @@ img#f0ck-image, div.imageDoor, div.posts a, video {
grid-template-columns: auto 1fr;
align-items: center;
background: var(--nav-bg);
padding: 5px;
}
.profile_head_avatar {
margin: 5px;
}
.profile_head_username {
font-weight: bold;
font-size: 20px;
}
.layersoffear {
display: grid;
padding-left: 20px;
}
.user_content_wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 5px;
padding: 5px;
}
.f0cks h5, .favs h5 {
background: var(--dropdown-bg);
}
.f0cks-header, .favs-header {
display: grid;
grid-template-columns: 1fr auto;
background: var(--img-border-color);
padding: 0px 5px 0px 5px;
}
div.f0cks div.posts {
padding: 5px;
background: var(--dropdown-bg);
}
div.favs div.posts {
padding: 5px;
background: var(--dropdown-bg);
}

View File

@ -11,33 +11,39 @@
<span>{{ user.user }}</span>
</div>
<div class="profile_head_user_stats">
ID: {{ user.user_id }} {{ count.f0cks }} f0ck{{ count.f0cks == 1 ? '' : 's' }} {{ count.favs }} fav{{ count.favs == 1 ? '' : 's' }} Joined: {{ user.created_at }}
ID: {{ user.user_id }} Joined: {{ user.created_at }}
</div>
</div>
</div>
<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 class="user_content_wrapper">
<div class="f0cks">
<div class="f0cks-header">
f0ck{{ count.f0cks == 1 ? '' : 's' }}: {{ count.f0cks }} <a href="{{ f0cks.link.main }}">view</a>
</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">
fav{{ count.favs == 1 ? '' : 's' }}: {{ count.favs }} <a href="{{ favs.link.main }}">view</a>
</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>
</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)