{% set current_theme = current_theme() %} {% set config = config() %} {% set permitir_docente = docente_asignado(id_curso=curso.codigo) %} {% set permitir_moderador = moderador_asignado(id_curso=curso.codigo) %} {% set permitir_estudiante = estudiante_asignado(id_curso=curso.codigo) %} {% set permitir_editar = current_user.tipo == "admin" or permitir_docente %} {{ current_theme.headertags() }} {{ curso.nombre | title }} {{ current_theme.local_style() }} {{ current_theme.navbar() }}
{{ current_theme.notify() }}

{% if curso.portada %} {{ _('Portada del Curso') }} {% else %} {{ curso.nombre }} {{ curso.nombre }} {% endif %}

{{ curso.nombre }}

{% if current_user.is_authenticated and current_user.tipo == "student" and user_certificate %} {% endif %} {{ markdown2html(curso.descripcion) | safe }}
{% 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 %}
{% if curso.pagado %} {% if curso.auditable %} {{ _('Auditar contenido del curso') }}

{{ _('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.') }}

{% endif %} {{ _('Proceder al pago') }} {% else %} {{ _('Inscribirse al curso') }} {% endif %}
{% endif %} {% if current_user.tipo == "student" and permitir_estudiante %}
{{ _('Mensajes') }}

{{ _('¿Tienes alguna pregunta sobre el curso? Contacta a tus instructores.') }}

{% if curso.foro_habilitado %}
{{ _('Foro del Curso') }}

{{ _('Participa en discusiones con otros estudiantes y compartir conocimientos.') }}

{{ _('Ver Foro') }} {% if curso.estado != "finalizado" %} {{ _('Nuevo Mensaje en Foro') }} {% endif %}
{% endif %} {% endif %} {% else %} {% endif %} {% if adsense_enabled() and not curso.pagado %} {% set ad_code = ad_medium_rectangle() %} {% if ad_code %}
{{ _('Publicidad') }} {{ ad_code | safe }}
{% endif %} {% endif %}

{{ _('Contenido del curso.') }}

{% if secciones %}
{% for seccion in secciones %}

{{ seccion.descripcion }}
    {% 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 %}
{% endfor %} {% else %}
{% if permitir_editar %} {{ _('Crear Nueva Sección') }} {% else %}

{{ _('Este curso actualmente no cuenta con secciones disponibles.') }}

{% endif %}
{% endif %}