{% extends "base.html" %} {% load i18n staticfiles wger_extras thumbnail cache django_bootstrap_breadcrumbs %} {# #} {# Opengraph #} {# #} {% block opengraph %} {{ block.super }} {% endblock %} {% block opengraphimages %} {% for image in exercise.exerciseimage_set.accepted %} {% empty %} {% endfor %} {% endblock %} {# #} {# Breadcrumbs #} {# #} {% block breadcrumbs %} {{ block.super }} {% breadcrumb "Exercises" "exercise:exercise:overview" %} {% breadcrumb exercise exercise.get_absolute_url %} {% endblock %} {# #} {# Title #} {# #} {% block title %}{{ exercise.name }}{% endblock %} {# #} {# Header #} {# #} {% block header %}{% endblock %} {# #} {# Content #} {# #} {% block content %} {% if exercise.status == exercise.STATUS_PENDING %}
{% trans "Exercise is pending review" %}

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

{% if perms.exercises %} {% endif %} {# end check permissions #}
{% endif %} {# end exercise is pending review #} {% cache cache_timeout exercise-detail-header exercise.id language.id %}
{% trans "Category" %}:
{% trans exercise.category.name %}
{% if exercise.equipment.all %}
{% trans "Equipment" %}:
{% for equipment in exercise.equipment.all %} {% trans equipment.name %} {% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %}
{% trans "Description" %}:
{{ exercise.description|safe }}
{% endcache %} {# Images #} {% with images=exercise.exerciseimage_set.accepted %} {% if images or perms.exercises.change_exerciseimage %}
{% if perms.exercises %}

{% trans "Add new image" %}

{% endif %} {# {% trans "Images" %}:#}
{% endif %} {% endwith %} {% if perms.exercises.change_exerciseimage %} {% with images=exercise.exerciseimage_set.pending %} {% if images %}

{% trans "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 %}
{% trans "Comments for this exercise" %}:
{% endif %} {% endwith %} {% if perms.exercises.change_exercisecomment %}

{% trans "Add new comment" %}

{% endif %} {% cache cache_timeout exercise-detail-muscles exercise.id language.id %} {% with muscles=exercise.muscles.all %} {% with muscles_secondary=exercise.muscles_secondary.all %} {% if muscles %}
{% trans "Muscles" %}:

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

{% trans "Main muscles" %}
{% trans "Secondary muscles" %}
    {% for muscle in muscles %} {% if muscle.is_front %}
  • {{muscle.name}}
  • {% endif %} {% endfor %} {% for muscle in muscles_secondary %} {% if muscle.is_front %}
  • {{muscle.name}}
  • {% endif %} {% endfor %}
    {% for muscle in muscles %} {% if not muscle.is_front %}
  • {{muscle.name}}
  • {% endif %} {% endfor %} {% for muscle in muscles_secondary %} {% if not muscle.is_front %}
  • {{muscle.name}}
  • {% endif %} {% endfor %}
{% endif %} {% endwith %} {% endwith %} {# end musclelist #} {% endcache %} {% if logs %}
{% trans "Weight log" %}:
{% render_weight_log logs svg_uuid user %}
{% endif %} {% endblock %} {# #} {# Side bar #} {# #} {% block sidebar %} {% if user.is_authenticated and not user.userprofile.is_temporary and not perms.exercises %}

{% trans "Options" %}

{% trans 'Submit a correction' %} {% trans "Submit a correction" %}

{% endif %} {% if perms.exercises %}

{% trans "Options" %}

{% trans 'Edit' %} {% trans "Edit" %}

{% trans 'Delete' %} {% trans "Delete" %}

{% endif %} {% license_sidebar exercise.license exercise.license_author %} {% endblock %}