{% else %}
{% endif %}
{{ curso.nombre }}
{% if current_user.is_authenticated and current_user.tipo == "student" and user_certificate %}{{ _('¡Curso Completado con Éxito!') }}
{{ _('Has obtenido la certificación de este curso.') }}
{{ _('Ver Certificado') }} {{ _('Descargar PDF') }}{% if descargas %} {{ _('Recursos disponibles con este curso:') }}
{% for item in descargas %} {{ tipo[item.tipo] | safe }} {{ item.nombre }}
{% endfor %} {% endif %}
{% if current_user.is_authenticated %} {% if current_user.tipo == "student" and not permitir_estudiante %}
{{ _('Puede acceder al contenido del curso pero no podrá resolver las evaluaciones u obtener un
certificado al finalizar.') }}
{{ _('Puede pagar el valor del curso antes de finalizarlo y acceder a las evaluaciones y la
certificación.') }}
{{ _('Mensajes') }}
{{ _('¿Tienes alguna pregunta sobre el curso? Contacta a tus instructores.') }}
{{ _('Foro del Curso') }}
{{ _('Participa en discusiones con otros estudiantes y compartir conocimientos.') }}
{{ _('Contenido del curso.') }}
{% if secciones %}-
{% for recurso in recursos %} {% if recurso.seccion == seccion.id %}
-
{% if current_user.tipo == "admin" or permitir_estudiante %}{{ recurso.nombre }}{% elif recurso.publico == True %}{{ recurso.nombre }}{{ _('Preview') }} {% else %}{{ recurso.nombre }}{% endif %}
{% endif %} {% endfor %} {# Show evaluations for this section #} {% set
section_evaluations = [] %} {% if evaluaciones %} {% for eval in evaluaciones %} {%
if eval.section_id == seccion.id %} {% set _ = section_evaluations.append(eval) %}
{% endif %} {% endfor %} {% endif %} {% for eval in section_evaluations %}
-
{% if current_user.tipo == "admin" or permitir_estudiante %} {% if not curso.pagado or (curso.pagado and current_user.is_authenticated and user_has_paid) %}{{ eval.title }} {% if eval.is_exam %} {{ _('Examen') }} {% else %} {{ _('Quiz') }} {% endif %}{# Show evaluation status #} {% set user_attempts = [] %} {% if evaluation_attempts %} {% for attempt in evaluation_attempts %} {% if attempt.evaluation_id == eval.id and attempt.user_id == current_user.usuario %} {% set _ = user_attempts.append(attempt) %} {% endif %} {% endfor %} {% endif %} {% if user_attempts %} {% set best_attempt = user_attempts | sort(attribute='score', reverse=True) | first %} {% if best_attempt.passed %} {{ _('Aprobado') }} ({{ "%.1f"|format(best_attempt.score) }}%) {% else %} {{ _('No Aprobado') }} ({{ "%.1f"|format(best_attempt.score) }}%) {# Show request reopen option if applicable #} {% if eval.max_attempts and user_attempts|length >= eval.max_attempts %} {% set pending_request = false %} {% if reopen_requests %} {% for req in reopen_requests %} {% if req.evaluation_id == eval.id and req.user_id == current_user.usuario and req.status == 'pending' %} {% set pending_request = true %} {% endif %} {% endfor %} {% endif %} {% if curso.modalidad == 'self_paced' %} {% if pending_request %}
{{ _('Solicitud de reapertura pendiente') }} {% else %}
{{ _('Solicitar nuevo intento') }} {% endif %} {% endif %} {% endif %} {% endif %} {% else %} {{ _('Pendiente') }} {% endif %} {% else %}{{ eval.title }} {% if eval.is_exam %} {{ _('Examen') }} {% else %} {{ _('Quiz') }} {% endif %}{{ _('Pago requerido') }} {% endif %} {% else %}{{ eval.title }} {% if eval.is_exam %} {{ _('Examen') }} {% else %} {{ _('Quiz') }} {% endif %}{% endif %}
{% endfor %}
{{ _('Este curso actualmente no cuenta con secciones disponibles.') }}
{% endif %}