{% extends 'base.html' %}
{% load static %}

    {% block styles %}
        <link rel="stylesheet" type="text/css" href="{% static 'assignments/style.css' %}">   
    {% endblock %}

{% block title %}{{assignment.name}} | {{assignment.course.course_code}}{% endblock %}
{% block content %}
    <h1>{{assignment.course.course_code}} | {{assignment.course.course_title}} - {{assignment.course.section}}</h1>
    <div>
        <h2>Assignment: {{assignment.name}}</h2>
        {% if assignment.assignment_image %}
                <img src = "{{ assignment.assignment_image.url }}"><br>
        {% endif %}
        <p>
            <span>Description:</span> {{assignment.description}}<br><br>
            <span>Passing Score:</span> <span class="passing">{{assignment.passing_score}}</span><br>
            <span>Perfect Score:</span> <span class="perfect">{{assignment.max_points}}</span><br>
        </p>
    </div>
{% endblock  %}