{% extends "base.html" %} {% block content %}
User | Suggestion | Comments | Votes | Action | ||
---|---|---|---|---|---|---|
{{ suggestion.author.username }} suggests: | {{ suggestion.body }} | {% if suggestion.comment != None %} {{ urlify(suggestion.comment)|safe }} {% endif %} | {% if get_users_voted(suggestion.id) != '' %} Voted: {{ get_users_voted(suggestion.id) }} {% endif %} | {% if current_user.username != suggestion.author.username or current_user.username == admin %} {% if exists_vote(current_user.id, suggestion.id) %}{% else %} | {% endif %} {% else %} | {% endif %} |