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

* moved commands & screenshots html code to twig template files * minimum PHP version to install the MyAAC is now 5.2.0 cause of pathinfo (extension) function
38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
Click on the image to enlarge.<br/><br/>
|
|
{% set i = 0 %}
|
|
{% for screenshot in screenshots %}
|
|
{% set i = i + 1 %}
|
|
<table>
|
|
<tr>
|
|
<td style="height: 120px;" >
|
|
<a href="?subtopic=screenshots&screenshot={{ screenshot.id }}" >
|
|
<img src="{{ screenshot.thumb }}" border="0" />
|
|
</a>
|
|
</td>
|
|
<td>{{ screenshot.comment }}</td>
|
|
{% if canEdit %}
|
|
<td>
|
|
<a href="?subtopic=screenshots&action=edit&id={{ screenshot.id }}" title="Edit">
|
|
<img src="images/edit.png"/>Edit
|
|
</a>
|
|
<a id="delete" href="?subtopic=screenshots&action=delete&id={{ screenshot.id }}" onclick="return confirm('Are you sure?');" title="Delete">
|
|
<img src="images/del.png"/>Delete
|
|
</a>
|
|
<a href="?subtopic=screenshots&action=hide&id={{ screenshot.id }}" title="{% if screenshot.hidden != 1 %}Hide{% else %}Show{% endif %}">
|
|
<img src="images/{% if screenshot.hidden != 1 %}success{% else %}error{% endif %}.png"/>{% if screenshot.hidden != 1 %}Hide{% else %}Show{% endif %}
|
|
</a>
|
|
{% if i != 1 %}
|
|
<a href="?subtopic=screenshots&action=moveup&id={{ screenshot.id }}" title="Move up">
|
|
<img src="images/icons/arrow_up.gif"/>Move up
|
|
</a>
|
|
{% endif %}
|
|
{% if i != last %}
|
|
<a href="?subtopic=screenshots&action=movedown&id={{ screenshot.id }}" title="Move down">
|
|
<img src="images/icons/arrow_down.gif"/>Move down
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
</table>
|
|
{% endfor %} |