{% extends 'base.html' %} {% block title %}PushPin{% endblock %} {% block content %}
    {% if pushpin.DateAndTime %}
  • Pinned: {{ pushpin.DateAndTime.strftime('%B %d, %Y, %I:%M %p') }} on {{ pushpin.CBTitle }}
  • {% endif %}
  • Tags: {% if tags|length() > 0 %} {{ tags|join(', ', attribute='Tag') }} {% else %} No tags! {% endif %}
  • Description: {{ pushpin.Description }}

Likes:

{% if likes|length() > 0 %} {{ likes|join(', ', attribute='Name') }} {% if likes|length() == 1 and pushpin.IsLiked or likes|length() > 1 %} like this. {% else %} likes this. {% endif %} {% else %} No one likes this yet! {% endif %}

Comments:

{% for comment in comments %}

{{ comment.Name }}: {{ comment.Text }}

{% else %} No comments yet! {% endfor %}

{% if pushpin.Email != session.get('user') %} {% if pushpin.IsLiked %} {% else %} {% endif %} {% endif %}
{% endblock %}