mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00

* added new indicator icons for create account, create character and change character name * attempt to fix incorrect views counter behavior (its resetting to 0 in some cases) * moved check_* functions to class Validator * from now all validators ajax requests will fire onblur instead of onkeyup * ajax requests returns now json instead of xml * added 404 response when file is not found * fixed gallery
38 lines
1.3 KiB
Twig
38 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.hidden != 1 %}Hide{% else %}Show{% endif %}">
|
|
<img src="images/{% if image.hidden != 1 %}success{% else %}error{% endif %}.png"/>{% if image.hidden != 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 %} |