{% extends "mobile-layout.html" %} {% macro sentence_case(text) %} {{text[0]|upper}}{{text[1:] }} {% endmacro %} {% block header %}
{{project.title}}

{{ project.tagline }}

{% for tag in project.tags %}
{{tag.title}}
{% endfor %}
{% if not current_user.is_authenticated %}
{{ project.star_count }}
{% elif current_user.id == project.poster.id %}
{{ project.star_count }}
{% elif not current_user.email_confirmed %}
{{ project.star_count }}
{% elif project.gave_star(current_user) %}
{{ project.star_count }}
{% else %}
{{ project.star_count }}
{% endif %}

{{project.comment_count }}

created by {{project.poster.username}}

Posts Activity Team {% if project.can_delete(current_user) %} Settings {% endif %}
{% endblock header %} {% block content %}
{% if solutions | length ==0 %}
This project does not have any solutions yet.
{% endif %} {% for solution in solutions %}
{{solution.title}}
{% if not current_user.is_authenticated %}
{{solution.star_count }}
{% elif current_user.id == solution.poster.id %}
{{solution.star_count }}
{% elif not current_user.email_confirmed %}
{{solution.star_count }}
{% elif solution.gave_star(current_user) %}
{{ 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 comment.can_delete(current_user) %} {% 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 %}