{% extends "layout-right.html" %} {% macro sentence_case(text) %} {{ text[0]|upper}}{{text[1:] }} {% endmacro %} {% block header %} {% endblock header%} {% block sidebar %} {% endblock sidebar %} {% block content %} {% for solution in solutions %}
{{solution.title}}
{% if current_user.id == solution.poster.id or not current_user.is_authenticated %}
{{solution.star_count }}
{% elif not current_user.email_confirmed %}
{{solution.star_count }}
{% else %}
{{solution.star_count }}
{% endif %}
{{solution.description}}
{% if solution.attachment_type == SolutionType.Code %}



{% elif solution.attachment_type == SolutionType.Photo %}
{% for image in solution.images %} {% endfor %}
{% elif solution.attachment_type == SolutionType.PDF %} {% elif solution.link!=None %}
{% endif %}
{% if current_user.is_authenticated %} {% else %} {% endif %}
{% for comment in solution.get_comments() %}

{{ comment.poster.username }} • {{ comment.date_posted.strftime('%d %b %H:%M') }}

{% if current_user.id == comment.poster.id %} {% endif %}
{% if current_user.id == comment.poster.id or not current_user.is_authenticated %}
{{ comment.star_count }}
{% else %}
{{ comment.star_count }}
{% endif %}
{% endfor %}
{% endfor %} {% endblock content%}