Fix links to edit/delete/hide directly from page

This commit is contained in:
slawkens 2023-06-11 18:57:52 +02:00
parent aa1403480c
commit 7d2fc48437

View File

@ -1,12 +1,12 @@
<div style="text-align: right;"> <div style="text-align: right;">
<a href="?p=pages&action=edit&id={{ page.id }}" title="Edit in Admin Panel" target="_blank"> <a href="{{ constant('ADMIN_URL') }}?p=pages&action=edit&id={{ page.id }}" title="Edit in Admin Panel" target="_blank">
<img src="images/edit.png"/>Edit <img src="images/edit.png"/>Edit
</a> </a>
<a id="delete" href="?p=pages&action=delete&id={{ page.id }}" onclick="return confirm('Are you sure?');" <a id="delete" href="{{ constant('ADMIN_URL') }}?p=pages&action=delete&id={{ page.id }}" onclick="return confirm('Are you sure?');"
title="Delete in Admin Panel" target="_blank"> title="Delete in Admin Panel" target="_blank">
<img src="images/del.png"/>Delete <img src="images/del.png"/>Delete
</a> </a>
<a href="?p=pages&action=hide&id={{ page.id }}" <a href="{{ constant('ADMIN_URL') }}?p=pages&action=hide&id={{ page.id }}"
title="{% if page.hidden != 1 %}Hide{% else %}Show{% endif %} in Admin Panel" target="_blank"> title="{% if page.hidden != 1 %}Hide{% else %}Show{% endif %} in Admin Panel" target="_blank">
<img src="images/{% if page.hidden != 1 %}success{% else %}error{% endif %}.png"/>{% if page.hidden != 1 %}Hide{% else %}Show{% endif %} <img src="images/{% if page.hidden != 1 %}success{% else %}error{% endif %}.png"/>{% if page.hidden != 1 %}Hide{% else %}Show{% endif %}
</a> </a>