{% extends "mobile-layout.html" %} {% macro sentence_case(text) %} {{ text[0]|upper}}{{text[1:] }} {% endmacro %} {% block header %} {% endblock header %} {% block content %}
{{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 %}
{% if current_user.id == project.poster.id %} {% elif not current_user.email_confirmed and current_user.id == project.poster.id %} {% endif %}
{% if project.goals|length ==0 %}
This project does not yet have any goal posted. Post goals for anything this project needs to be solved to reach its goal
{% endif %} {% for goal in project.goals %}
{{sentence_case(goal.description) }}
{% if not current_user.is_authenticated %}
{{ goal.star_count }}
{% elif current_user.id == goal.poster.id %}
{{ goal.star_count }}
{% elif not current_user.email_confirmed %}
{{ goal.star_count }}
{% elif goal.gave_star(current_user) %}
{{ goal.star_count }}
{% else %}
{{ goal.star_count }}
{% endif %}
{{ goal.comment_count }}
{% if current_user.is_authenticated %} {% else %} {% endif %}
{% if not current_user.is_authenticated %} {% elif not current_user.email_confirmed %} {% else %} {% endif %}
{% for comment in goal.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 %}
{% if current_user.is_authenticated and current_user.email_confirmed %} {% if not current_user.is_authenticated %} {% elif not current_user.email_confirmed %} {% else %} {% endif %} {% endif %}
{% if goal.solutions|length == 0 %}
No solutions yet. Feel free to suggest a solution to this goal
{% else %}

{{goal.solutions|length}}

Solutions

{% for icon,count in goal.get_solution_types_counts('light').items() recursive %} {% if count != 0 %}

{{count}}

{% endif %} {% endfor %}

{% for solution in goal.solutions %}
{% 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.type != SolutionType.Text %}
{{solution.title}}
{% endif %} {% 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 %}
{% endif %}
{{goal.poster.username}} • {{ goal.elapsed_time() }}
{% if goal.can_delete(current_user) %} {% endif %} {% if current_user.id != goal.poster.id %} {% endif %}
{% endfor %} {% for question in project.questions %}

Question

{% if not current_user.is_authenticated %}
{{ question.star_count }}
{% elif current_user.id == question.poster.id %}
{{ question.star_count }}
{% elif not current_user.email_confirmed %}
{{ question.star_count }}
{% elif question.gave_star(current_user) %}
{{ question.star_count }}
{% else %}
{{ question.star_count }}
{% endif %}
{{sentence_case(question.body) }}
{% if not current_user.is_authenticated %} {% elif not current_user.email_confirmed %} {% else %} {% endif %}
{{ question.comment_count }}
{{question.poster.username}} • {{ question.elapsed_time() }}
{% if question.can_delete(current_user) %} {% endif %} {% if current_user.id != question.poster.id %} {% endif %}
{% if current_user.is_authenticated %} {% else %} {% endif %}
{% if not current_user.is_authenticated %} {% elif not current_user.email_confirmed %} {% else %} {% endif %}
{% for comment in question.get_comments() %}

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

{% if comment.can_delete(current_user) %} {% endif %}
{% if not current_user.is_authenticated %}
{{ comment.star_count }}
{% elif current_user.id == comment.poster.id %}
{{ comment.star_count }}
{% elif not current_user.email_confirmed %}
{{ comment.star_count }}
{% elif comment.gave_star(current_user) %}
{{ comment.star_count }}
{% else %}
{{ comment.star_count }}
{% endif %}
{% endfor %}
{% if question.answers|length == 0 %}
No answers yet. Feel free to answer this question
{% else %}
{% if question.answers|length == 0 %}
No answers yet. Feel free to answer this question
{% else %}

{{question.answers|length}}

Answers

{% for icon,count in question.get_solution_types_counts('light').items() recursive %} {% if count != 0 %}

{{count}}

{% endif %} {% endfor %}
{% if question.get_user_list()|length > 5 %}
+{{question.get_user_list()|length-5}}
{% endif %} {% for user in question.get_user_list() %} {% if loop.index < 5 %} {% endif %} {% endfor %}
{% for solution in question.answers %}
{% 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.type != SolutionType.Text %}
{{solution.title}}
{% endif %} {% 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 %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %} {% for job in project.jobs %}

Job

{% if not current_user.is_authenticated %}
{{ job.star_count }}
{% elif current_user.id == job.poster.id %}
{{ job.star_count }}
{% elif not current_user.email_confirmed %}
{{ job.star_count }}
{% elif job.gave_star(current_user) %}
{{ job.star_count }}
{% else %}
{{ job.star_count }}
{% endif %}
{{sentence_case(job.title) }}
{{ job.comment_count }}
{{job.poster.username}} • {{ job.elapsed_time() }}
{% if job.can_delete(current_user) %} {% endif %} {% if current_user.id != job.poster.id %} {% endif %}
{% if current_user.is_authenticated %} {% else %} {% endif %}
{% if not current_user.is_authenticated %} {% elif not current_user.email_confirmed %} {% else %} {% endif %}
{% for comment in job.get_comments() %}

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

{% if comment.can_delete(current_user) %} {% endif %}
{% if not current_user.is_authenticated %}
{{ comment.star_count }}
{% elif current_user.id == comment.poster.id %}
{{ comment.star_count }}
{% elif not current_user.email_confirmed %}
{{ comment.star_count }}
{% elif comment.gave_star(current_user) %}
{{ comment.star_count }}
{% else %}
{{ comment.star_count }}
{% endif %}
{% endfor %}
{% endfor %} {% endblock content %}