Move editor post meta above content

This commit is contained in:
Your Name
2026-07-28 12:02:56 +05:00
parent 3f0c9f0b56
commit bb2c58e02f
+9 -9
View File
@@ -1,10 +1,10 @@
<form hx-post="/editor/{{ p.id }}/save" hx-target="#post-container-{{ p.id }}" hx-swap="outerHTML" hx-encoding="multipart/form-data" id="post-container-{{ p.id }}" class="card flex flex-col group relative transition-colors border border-app-border {% if p.editorial_status == 'accepted' %}bg-app-successBg/10 border-app-success/20{% elif p.editorial_status == 'rejected' %}bg-app-errorBg/10 opacity-75{% else %}hover:border-app-borderFocus hover:shadow-glow{% endif %}"> <form hx-post="/editor/{{ p.id }}/save" hx-target="#post-container-{{ p.id }}" hx-swap="outerHTML" hx-encoding="multipart/form-data" id="post-container-{{ p.id }}" class="card flex flex-col group relative transition-colors border border-app-border {% if p.editorial_status == 'accepted' %}bg-app-successBg/10 border-app-success/20{% elif p.editorial_status == 'rejected' %}bg-app-errorBg/10 opacity-75{% else %}hover:border-app-borderFocus hover:shadow-glow{% endif %}">
<input type="hidden" name="csrf_token" value="{{ user.csrf_token }}"> <input type="hidden" name="csrf_token" value="{{ user.csrf_token }}">
<div class="flex flex-col xl:flex-row"> <div class="flex flex-col">
<!-- Left: Meta Info & Status --> <!-- Top: Meta Info & Status -->
<div class="w-full xl:w-56 bg-app-bg/50 border-b xl:border-b-0 xl:border-r border-app-border p-4 flex flex-col gap-3"> <div class="w-full bg-app-bg/50 border-b border-app-border p-4 flex flex-col gap-3 md:flex-row md:flex-wrap md:items-center">
<div class="flex items-center justify-between"> <div class="flex items-center justify-between gap-3 md:justify-start">
<span class="text-xs font-mono text-app-textMuted tracking-wider">#{{ p.id }}</span> <span class="text-xs font-mono text-app-textMuted tracking-wider">#{{ p.id }}</span>
{% if p.editorial_status == 'accepted' or p.editorial_status == 'published' %} {% if p.editorial_status == 'accepted' or p.editorial_status == 'published' %}
<div class="flex items-center gap-1 text-xs font-medium text-app-success bg-app-success/10 px-2 py-1 rounded-md"> <div class="flex items-center gap-1 text-xs font-medium text-app-success bg-app-success/10 px-2 py-1 rounded-md">
@@ -35,17 +35,17 @@
</div> </div>
</div> </div>
<div class="space-y-1 mt-1"> <div class="space-y-1 md:ml-auto">
<div class="flex justify-between text-xs"> <div class="flex justify-between gap-2 text-xs">
<span class="text-app-textMuted">AI Оценка:</span> <span class="text-app-textMuted">AI Оценка:</span>
<span class="font-mono text-white font-medium">{{ p.qualification_score or "?" }}/10</span> <span class="font-mono text-white font-medium">{{ p.qualification_score or "?" }}/10</span>
</div> </div>
</div> </div>
{% if p.publication_platforms %} {% if p.publication_platforms %}
<div class="mt-2 pt-3 border-t border-app-border/50"> <div class="pt-3 border-t border-app-border/50 md:pt-0 md:border-t-0">
<div class="text-xs text-app-textMuted mb-2 font-semibold">Куда публикуем:</div> <div class="flex flex-wrap items-center gap-2">
<div class="flex flex-wrap gap-1"> <div class="text-xs text-app-textMuted font-semibold">Куда публикуем:</div>
{% for pub in p.publication_platforms %} {% for pub in p.publication_platforms %}
{% if pub.url %} {% if pub.url %}
<a href="{{ pub.url }}" target="_blank" class="badge badge-info hover:bg-blue-500/20 transition-colors" title="{{ pub.error or pub.status_label }}"> <a href="{{ pub.url }}" target="_blank" class="badge badge-info hover:bg-blue-500/20 transition-colors" title="{{ pub.error or pub.status_label }}">