Source

django-swingcms / swingcms / cms / templates / cms / panel.html

Full commit
{% load i18n %}



<div id='admin'>

    <table>

    {% for sc, opt in options %}

        <tr>
            <td>
                <br />
                <h4>{% trans sc %}</h4>
                <br />
            </td>
            <td>
            </td>
        </tr>

        {% for action, object_, description, url in opt %} <!-- add icon -->
            <tr>
                <td>
                    {% if icon %}<img src='{{ STATIC_URL }}cms/icons/{{ icon }}' alt="{{ description }}">{% endif %}

                    <a href='{{ url }}'>
                        {% trans action %}
                        {% if object_ %}
                            {% trans object_ %}
                        {% endif %}
                    </a>
                    {% if description %} ({% trans description %}){% endif %}
                </td>
            </tr>
        {% endfor %}

    {% empty %}

        <br />

	{% trans "Sorry, no options available for you." %}

    {% endfor %}

    </table><br />

</div>