{% extends "base.html" %} {% load i18n static wger_extras thumbnail cache django_bootstrap_breadcrumbs %} {# #} {# Opengraph #} {# #} {% block opengraph %} {{ block.super }} {% endblock %} {% block opengraphimages %} {% for image in exercise.images.accepted %} {% empty %} {% endfor %} {% endblock %} {# #} {# Title #} {# #} {% block title %}{{ exercise.name }}{% endblock %} {# #} {# Header #} {# #} {% block header %} {% endblock %} {# #} {# Content #} {# #} {% block content %} {% if exercise.status == exercise.STATUS_PENDING %}
{% translate "Exercise is pending review" %}

{% blocktranslate %}This user submitted exercise is pending a decision to be included in the database.{% endblocktranslate %} {% translate "Till then, it will not be shown in the overview or the search." %} {% if perms.exercises.add_exercise %}{% translate "Please select one of the options below." %}{% endif %}

{% if perms.exercises.add_exercise %} {% translate "Accept" %} {% translate "Decline" %} {% translate "Delete" %} {% endif %} {# end check permissions #}
{% endif %} {# end exercise is pending review #}
{% translate "Category" %}:
{% translate exercise.category.name %} {% if exercise.equipment.all %}
{% translate "Equipment" %}:
{% for equipment in exercise.equipment.all %} {% translate equipment.name %} {% if not forloop.last %}, {% endif %} {% endfor %} {% endif %}
{% translate "Description" %}:
{{ exercise.description|safe }} {# Images #} {% with images=exercise.images.accepted %} {% if images or perms.exercises.change_exerciseimage %}
{% translate "Images" %}:
{% with other_images=images %} {% for image in other_images %}
{% if perms.exercises.change_exerciseimage %} {% endif %} {% if image.is_main %}

{% endif %}
{% endfor %} {% endwith %}
{% if perms.exercises.change_exerciseimage %}

{% translate "Add new image" %}

{% endif %} {% endif %} {% endwith %} {% if perms.exercises.change_exerciseimage %} {% with images=exercise.images.pending %} {% if images %}
{% translate "Images pending review" %}
{% for image in images %}
{% endfor %} {% endif %} {% endwith %} {% endif %} {# end check permission #} {# Comments #} {% with comments=exercise.exercisecomment_set.all %} {% if comments or perms.exercises.change_exercisecomment %}
{% translate "Comments for this exercise" %}:
{% if perms.exercises.change_exercisecomment %}

{% translate "Add new comment" %}

{% endif %} {% endif %} {% endwith %} {% cache cache_timeout exercise-detail-muscles cache_vary_on %} {% if muscles_main_front or muscles_main_back %}
{% translate "Muscles" %}:

{% translate "The diagram shows the most used muscles on this exercise" %}

{% translate "Main muscles" %}

{% translate "Secondary muscles" %}

{% render_muscles muscles_main_front muscles_sec_front %}
{% render_muscles muscles_main_back muscles_sec_back %}
{% endif %} {% endcache %} {% if logs %}
{% translate "Weight log" %}:
{% render_weight_log logs svg_uuid user %} {% endif %} {% if exercise.variations %}
{% translate "Exercise Variations" %}:
{% endif %} {% endblock %} {# #} {# Side bar #} {# #} {% block sidebar %} {% if user.is_authenticated and not user.userprofile.is_temporary and not perms.exercises %}
{% translate "Options" %}

{% translate "Submit a correction" %}

{% endif %} {% license_sidebar exercise.license exercise.license_author %} {% endblock %} {# #} {# Options #} {# #} {% block options %} {% if perms.exercises.change_exercise %}
{% endif %} {% endblock %}