mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
39 lines
1.3 KiB
Twig
39 lines
1.3 KiB
Twig
Click on the image to enlarge.<br/><br/>
|
|
{% set i = 0 %}
|
|
{% for image in images %}
|
|
{% set i = i + 1 %}
|
|
<table>
|
|
<tr>
|
|
<td style="height: 120px;" >
|
|
<a href="{{ getLink('gallery') ~ '/' ~ image.id }}" >
|
|
<img src="{{ image.thumb }}" border="0" />
|
|
</a>
|
|
</td>
|
|
<td>{{ image.comment }}</td>
|
|
{% if canEdit %}
|
|
<td>
|
|
<a href="?subtopic=gallery&action=edit&id={{ image.id }}" title="Edit">
|
|
<img src="images/edit.png"/>Edit
|
|
</a>
|
|
<a id="delete" href="?subtopic=gallery&action=delete&id={{ image.id }}" onclick="return confirm('Are you sure?');" title="Delete">
|
|
<img src="images/del.png"/>Delete
|
|
</a>
|
|
<a href="?subtopic=gallery&action=hide&id={{ image.id }}" title="{% if image.hide != 1 %}Hide{% else %}Show{% endif %}">
|
|
<img src="images/{% if image.hide != 1 %}success{% else %}error{% endif %}.png"/>{% if image.hide != 1 %}Hide{% else %}Show{% endif %}
|
|
</a>
|
|
{% if i != 1 %}
|
|
<a href="?subtopic=gallery&action=moveup&id={{ image.id }}" title="Move up">
|
|
<img src="images/icons/arrow_up.gif"/>Move up
|
|
</a>
|
|
{% endif %}
|
|
{% if i != last %}
|
|
<a href="?subtopic=gallery&action=movedown&id={{ image.id }}" title="Move down">
|
|
<img src="images/icons/arrow_down.gif"/>Move down
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
</table>
|
|
{% endfor %}
|