{% extends "mobile-layout.html" %} {% macro sentence_case(text) %} {{text[0]|upper}}{{text[1:] }} {% endmacro %} {% block header %}
{{ back }}
Share Feedback
{% endblock header %} {% block content %} {% for goal in 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 and current_user.email_confirmed %} {% elif 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 %}

{% for solution in goal.solutions %} {% if loop.index < 6 %}
{{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 }}
{% else %}
{{ solution.star_count }}
{% endif %}

{% endif %} {% endfor %} {% if goal.solutions|length > 5 %} {% endif %}
{% endif %}
{{ goal.poster.username }} ā€¢ {{ goal.elapsed_time() }}
{% if goal.can_delete(current_user) %} {% endif %} {% if current_user.id != goal.poster.id %} {% 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 %}
{% endfor %} {% endblock content %}