{% extends "base.html" %} {% block content %}

Hi, {{ current_user.username }}!

{% for suggestion in suggestions %} {% if current_user.username != suggestion.author.username %} {% if exists_vote(current_user.id, suggestion.id) %} {% else %} {% endif %} {% endif %} {% if current_user.username == suggestion.author.username %} {% endif %} {% endfor %}
{{ suggestion.author.username }} suggests: {{ suggestion.body }} {% if get_users_voted(suggestion.id) != '' %} Voted: {{ get_users_voted(suggestion.id) }} {% endif %}
Add a film:
{% endblock %}