{% extends "layout-split.html" %} {% macro sentence_case(text) %} {{text[0]|upper}}{{text[1:] }} {% endmacro %} {% block header %} Crowd.Inc - {{ project.title }}
{{project.title}}
{% if project.link != None and project.link != '' %} {% endif %}
{% 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}}
{% for tag in project.tags %} {% endfor %}
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 %}
{% endblock header %} {% block left %} {% 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 goals %}

Goal

{% 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 %}
{{sentence_case(goal.description) }}
{% if not current_user.is_authenticated %} {% elif not current_user.email_confirmed %} {% else %} {% endif %}
{{ goal.comment_count }}
{% if goal.can_delete(current_user) %} {% elif goal.can_delete_error(current_user)=='cannot' %} {% elif goal.can_delete_error(current_user)=='other' %} {% endif %} {% if current_user.id != goal.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 goal.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 goal.solutions|length == 0 %}
No solutions yet. Feel free to suggest a solution to this goal
{% else %}
{% 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 %}
{% if goal.get_user_list()|length > 5 %}
+{{goal.get_user_list()|length-5}}
{% endif %} {% for user in goal.get_user_list() %} {% if loop.index < 5 %} {% 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.attachment_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 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 }}
{% 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.attachment_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 }}
{% 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 left %} {% block right %} {% endblock right %}