{% extends "web/base.html" %} {% comment %} Takes in: - {{ films }} Films to watch - {{ watched_films }} Films already watched - {{ num_to_watch }} {% endcomment %} {% load humanize %} {% block secondary_nav %} Add Film {% endblock secondary_nav %} {% block content %}

Films to Watch

There are {{ num_to_watch|apnumber }} films to watch, ordered from the most to the least popular based on everyone's votes. {% if object_list %}

Most Popular

{% for film in films %} {% if forloop.counter0 == 1 %}

Less Popular

{% endif %} {% if forloop.counter0 > 1 and forloop.revcounter0 == 0 %}

Least Popular

{% endif %} {% include "votes/includes/film_card.html" with film=film only %} {% empty %}

There are no films left to watch :(

Add a film! {% endfor %} {% if watched_films %}

Already Seen

{% for film in watched_films %} {% include "votes/includes/film_card.html" with film=film only %} {% endfor %} {% endif %} {% else %}

There are no films added :(

Add a film! {% endif %} {% endblock %}