dvd-collection / collection / templates / collection / watchlist_detail.html

{% extends "base.html" %}
{% load bootstrap %}

{% block title %}My Watchlist{% endblock %}

{% block base_content %}
<h2>My Watchlist</h2>
{% with genres=watchlist.genres.all %}
{% if genres.count > 0 %}You currently like movies which are {% for genre in genres %}{{genre|link}}{% if not forloop.last %}, {% endif %}{% endfor %}.
{% else %}You currently hate all <a href="{% url 'genre_list' %}">movie genres</a> known to man!{% endif %}
{% endwith %}
<ul class="thumbnails">
  {% for movie in watchlist.movies.all %}
  <li class="span4">
    <div class="thumbnail">
      <a href="{{movie.get_absolute_url}}"><img src="{% if movie.poster_img %}{{movie.poster_img.url}}{% endif %}" alt="{{movie.title}}"/></a>
      {% if user == watchlist.owner %}
      <p><a class="btn btn-danger" href="{% url 'movie_watchlist_remove' movie.slug %}"><i class="icon-remove"></i></a></p>
      {% endif %}
  {% endfor %}
{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.