fix: Ensure Odrzuć button is visible in ZOP Kaszubia news table

This commit is contained in:
Maciej Pienczyn 2026-01-11 15:49:30 +01:00
parent c9bde4f67d
commit 26e6658e6d

View File

@ -313,7 +313,7 @@
<span class="sort-icon">{% if current_sort == 'date' %}{{ '▲' if current_dir == 'asc' else '▼' }}{% else %}⇅{% endif %}</span>
</a>
</th>
<th>Akcje</th>
<th style="min-width: 150px;">Akcje</th>
</tr>
</thead>
<tbody>
@ -347,7 +347,7 @@
</span>
</td>
<td>{{ news.published_at.strftime('%d.%m.%Y') if news.published_at else (news.created_at.strftime('%d.%m.%Y') if news.created_at else '-') }}</td>
<td>
<td style="white-space: nowrap;">
{% if news.status == 'pending' %}
<button class="action-btn approve" onclick="approveNews({{ news.id }})">Zatwierdź</button>
<button class="action-btn reject" onclick="rejectNews({{ news.id }})">Odrzuć</button>