{% extends "base.html" %} {% block title %}Content — {{ course.name }}{% endblock %} {% if user.is_student %}{% block nav_courses_student %}active{% endblock %} {% elif user.is_teacher %}{% block nav_teacher_courses %}active{% endblock %} {% else %}{% block nav_courses %}active{% endblock %}{% endif %} {% block content %}
Course Materials {{ materials|length }}
Add
{% if materials %}
    {% for m in materials %}
  • {{ m.title }} {{ m.get_material_type_display }} {% if m.is_published %} Published {% else %} Draft {% endif %}
    {% if m.description %}
    {{ m.description|truncatechars:80 }}
    {% endif %}
    {% csrf_token %}
    {% csrf_token %}
  • {% endfor %}
{% else %}

No materials yet.

Add First Material
{% endif %}
Quiz
{% if quiz %} {% if quiz.is_enabled %}Enabled{% else %}Disabled{% endif %} {% endif %}
{% if quiz %}
Questions
{{ quiz.question_count }}
Max Attempts
{% if quiz.max_attempts == 0 %}Unlimited{% else %}{{ quiz.max_attempts }}{% endif %}
Pass Score
{{ quiz.pass_score }}%
Manage Quiz {% else %}

No quiz set up yet. Create one to add questions.

Create Quiz {% endif %}
Assignments

Set assignments for students to submit work.

Manage Assignments

Draft vs Published: Only published materials are visible to students. Use drafts to prepare content before releasing it.

{% for m in materials %}
{% if m.material_type == 'youtube' %} {% if m.youtube_video_id %}
{{ m.title }}
Watch on YouTube
{% else %}

YouTube URL is not set or could not be parsed.

{{ m.youtube_url }}

{% endif %} {% elif m.material_type == 'upload' %} {% if m.file %} {% if m.is_pdf %} {% else %}

{{ m.title }}
{{ m.file_extension|upper }}

Download File
{% endif %} {% else %}

No file uploaded yet.

{% endif %} {% elif m.material_type == 'link' %}

External Link

{{ m.external_url }}

Open in New Tab
{% elif m.material_type == 'note' %}
{% if m.text_content %}
{{ m.text_content }}
{% else %}

No text content yet.

{% endif %}
{% endif %}
{% endfor %} {% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% endblock %}