From 9f92841ea372c00bf9f0c67a4b4b14cf774664d7 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Fri, 17 Jul 2026 08:52:39 +0200 Subject: [PATCH] gf --- public/s/css/f0ckm.css | 3 ++- public/s/js/f0ckm.js | 18 ++++++++++++++++++ views/item-partial-legacy.html | 9 ++++++--- views/item-partial-modern.html | 2 +- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/public/s/css/f0ckm.css b/public/s/css/f0ckm.css index 58aca9b..c538622 100644 --- a/public/s/css/f0ckm.css +++ b/public/s/css/f0ckm.css @@ -14117,8 +14117,9 @@ textarea#profile_description { .user-infobox-actions { flex-shrink: 0; display: flex; + flex-flow:column; align-items: center; - gap: 4px; + gap: 10px; } /* ============================================= diff --git a/public/s/js/f0ckm.js b/public/s/js/f0ckm.js index 560f690..71f6d9b 100644 --- a/public/s/js/f0ckm.js +++ b/public/s/js/f0ckm.js @@ -4076,6 +4076,24 @@ window.cancelAnimFrame = (function () { ocBtn.classList.toggle('fa-solid', newOc); ocBtn.classList.toggle('fa-regular', !newOc); + const container = document.getElementById('oc-badge-container'); + if (container) { + if (newOc) { + container.innerHTML = ' — OC'; + } else { + container.innerHTML = ''; + } + } + + const containerInfobox = document.getElementById('oc-badge-container-infobox'); + if (containerInfobox) { + if (newOc) { + containerInfobox.innerHTML = 'OC'; + } else { + containerInfobox.innerHTML = ''; + } + } + window.flashMessage((window.f0ckI18n && (newOc ? window.f0ckI18n.oc_marked : window.f0ckI18n.oc_removed)) || (newOc ? 'MARKED AS ORIGINAL CONTENT' : 'OC STATUS REMOVED')); } else { window.flashError(data.msg || 'Error toggling OC status'); diff --git a/views/item-partial-legacy.html b/views/item-partial-legacy.html index 1fd96bc..5666fd9 100644 --- a/views/item-partial-legacy.html +++ b/views/item-partial-legacy.html @@ -108,15 +108,16 @@
{!! item.author_description || '' !!}
- @if(session)
+ @if(session) @if(user_has_favorited) @else @endif + @endif + @if(item.is_oc)OC@endif
- @endif @@ -126,7 +127,9 @@ {{ item.id }} @if(!user_alternative_infobox) — [{!! item.author_display_name || item.username || 'unknown' !!}] @endif - @if(item.is_oc)@if(!user_alternative_infobox) — @endifOC@endif + @if(!user_alternative_infobox) + @if(item.is_oc) — OC@endif + @endif @if(!user_alternative_infobox) — @if(halls_enabled && item.primaryHall) — @endif @endif @if(halls_enabled && item.primaryHall) diff --git a/views/item-partial-modern.html b/views/item-partial-modern.html index 5b9ba69..95872b1 100644 --- a/views/item-partial-modern.html +++ b/views/item-partial-modern.html @@ -120,7 +120,7 @@
- {{ item.id }} — [{!! item.author_display_name || item.username || 'unknown' !!}] @if(item.is_oc) — OC@endif + {{ item.id }} — [{!! item.author_display_name || item.username || 'unknown' !!}] @if(item.is_oc) — OC@endif @if(halls_enabled && item.primaryHall) — @endif @if(halls_enabled && item.primaryHall)