{% load staticfiles %}

<!DOCTYPE html>
<html lang="en">
<head>
    <h1>{{ movie.name }}:</h1>
    <div id="movie_detail">
        Rating: {{ movie.movielens_rating }}<br>
        By {{ movie.movielens_num_ratings }} users<br>
        IMDB: <a href="http://www.imdb.com/title/tt{{ links.imdb }}">{{ links.imdb }}</a>
    </div>
</head>
<body>

</body>
</html>
{% load staticfiles %}

<!DOCTYPE html>
<html lang="en">
<head>
    <h1>{{ movie.name }}:</h1>
    <div id="movie_detail">
        Rating: {{ movie.movielens_rating|floatformat:2 }} by {{ movie.movielens_num_ratings }} users<br>
        {% if movie.liked_or_not is True %}
        You LIKED this movie
        {% elif movie.liked_or_not is False %}
        You DISLIKED this movie
        {% else %}
        You haven't rated this movie yet
        {% endif %}<br>
        IMDB: <a href="http://www.imdb.com/title/tt{{ links.imdb }}">{{ links.imdb }}</a><br><br>
        <form id="liked_or_not" method="post" accept-charset="utf-8" action="/update/{{ movie.id }}/">
            {% csrf_token %}
            <button type="submit" name="liked">Liked it!</button>
            <button type="submit" name="disliked">Didn't like it</button>
            <button type="submit" name="reset">Reset</button>
        </form>
        <br>
        <br>
        Similar movies you have not yet watched:<br>
        {% for movie_title, movie_id in similarities %}
        <a href="/{{ movie_id }}/"> {{ movie_title }}<br>
        {% endfor %}
    </div>
</head>
<body>

</body>
</html>
Add top similar movies to detailed page
Add top similar movies to detailed page
