{% load adminmedia menu_admin_tags %}
{% load i18n %}
<tr class="item-row" id="item-row-{{ item.id }}">
    <td style="padding-left: {{ item.level }}em;">
        <span style="display: none; float: right; margin-top: 0px" class="move-target-container" id="move-target-{{ item.id }}">
            <a href="#" class="move-target left"><img title="{% trans 'before this item' %}" 
                alt="{% trans 'before this item' %}" src="{% admin_media_prefix %}img/admin/arrow-up.gif"/></a> |
            <a href="#" class="move-target right"><img title="{% trans 'after this item' %}"
                alt="{% trans 'after this item' %}" src="{% admin_media_prefix %}img/admin/arrow-down.gif"/></a> |
            <a href="#" class="move-target first-child">↘</a>
        </span>
        <a href="item/{{ item.id }}/">{{ item.caption }}</a> 
    </td>
    <td>
        {% comment %}
            addlink and deletelink are Django's CSS classes, hence the naming discrepancy
        {% endcomment %}
        <a href="#" class="addlink" id="add-item-{{ item.id }}">{% trans 'add' %}</a>
        |
        <a href="#" class="move-item" id="move-item-{{ item.id }}">{% trans 'move' %}</a>
        |
        <a href="item/{{ item.id }}/delete/" class="deletelink" id="delete-item-{{ item.id }}">{% trans 'delete' %}</a>
    </td>
    <td>{{ item.link }}</td>
    <td>
        {% if item.visible %}
            <img alt="True" src="{% admin_media_prefix %}img/admin/icon-yes.gif"/>
        {% else %}
            <img alt="False" src="{% admin_media_prefix %}img/admin/icon-no.gif" />
        {% endif %}
    </td>
    <td>
        {% if item.open_in_new_window %}
            <img alt="True" src="{% admin_media_prefix %}img/admin/icon-yes.gif"/>
        {% else %}
            <img alt="False" src="{% admin_media_prefix %}img/admin/icon-no.gif" />
        {% endif %}
    </td>
</tr>
{% if children %}
    {% for child in children %}
        {% menu_item_row menu child %}
    {% endfor %}
{% endif %}
