{% extends "base.html" %} {% load url from future %} {% load i18n %} {% load staticfiles %} {% load wger_extras %} {% load cache %} {% load thumbnail %} {% block title %}{% trans "Exercises" %}{% endblock %} {% block header %} {% endblock %} {% block content %} {% cache cache_timeout exercise-overview language.id %}
{% for category in categories %}
{% for exercise in category|get_active_exercises:active_languages %} {% empty %} {% endfor %}
{% if exercise.main_image %}
{% endif %} {{ exercise.name }}

{% trans "No exercises in this category. Add or edit an exercise and set its category" %}

{% endfor %}
{% endcache %} {% endblock %} {% block sidebar %}

{% trans "Add new exercise" %}

{% if user.is_authenticated and not user.userprofile.is_temporary %} {% trans 'Add new exercise' %} {% trans "Add new exercise" %} {% else %} {% trans 'Add new exercise' %} {% trans "Only registered users can do this" %} {% endif %}

{% if perms.exercises %}

{% trans "Options" %}

{% if categories %}

{% with category=categories|first %} {% trans 'Edit category' %} {% trans "Edit category" %}: {{category.name}}

{% endwith %}

{% with category=categories|first %} {% trans 'Delete category' %} {% trans "Delete category" %}: {{category.name}} {% endwith %}

{% endif %}

{% trans 'Add category' %} {% trans "Add category" %}

{% endif %}

{% trans "Search" %}

{% csrf_token %}
{% endblock %}