{% extends "singlelayout-wide.html" %} {% macro sentence_case(text) %} {{text[0]|upper}}{{text[1:] }} {% endmacro %} {% block header %}
{{ back }}
Share Feedback
{% endblock header %} {% block content %} {% for goal in goals %}
{% 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 %}
{% 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('dark').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 loop.index < 6 %}
{% 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 }}
{% else %}
{{ solution.star_count }}
{% endif %} {{solution.title}}
{{solution.comment_count}}

{% endif %} {% endfor %} {% if goal.solutions|length > 5 %} {% endif %}
{% endif %}
{{ goal.comment_count }}
{{ goal.poster.username }} • {{ goal.elapsed_time() }}
{% 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 %}
{% endfor %} {% endblock content %}