{% extends "mobile-layout.html" %} {% macro sentence_case(text) %} {{ text[0]|upper}}{{text[1:] }} {% endmacro %} {% block header %} {% endblock header %} {% block content %}
{% if sorted_posts|length ==0 %}
empty state
{% endif %} {% for post in sorted_posts %}
{% if post.type== 'project' %}
{{post.poster.username}}

posted a new project

{% elif post.type== 'comment' %}

{{post.get_post().poster.username}} received a comment in {{post.get_post().project.title}}

{{post.star_count}}
"{{post.body}}"
{{post.star_count}}
{% if post.get_post().type== 'goal' %}

{{post.get_post().description}}

{% elif post.get_post().type== 'solution' %}

{{post.get_post().title}}

{% elif post.get_post().type== 'project' %}

{{post.get_post().title}}

{% endif %}
{% elif post.type== 'goal' %}

{{post.poster.username}} posted a new goal in {{post.project.title}}

{{post.star_count}}
"{{post.description}}"
{% elif post.type== 'Solution' %}
{{post.poster.username}}

posted a new solution

in {{post.project.title}}

{{post.star_count }}
{{post.title}}
{{post.description}}
{% if post.type == SolutionType.Code %}



{% elif post.type == SolutionType.Photo %}
{% for image in post.images %} {% endfor %}
{% elif post.type == SolutionType.PDF %} {% elif post.link!=None %}
{% endif %}
{% elif post.type== 'star' %}
{{post.ideate_poster.username}} received a star in {{post.project.title}}
{% if post.get_post().type== 'comment' %}
{{post.get_post().star_count}}
"{{post.get_post().body}}"
{% endif %} {% if post.get_post().type== 'goal' %}
{{post.get_post().star_count}}
{{post.get_post().description}}
{% endif %} {% if post.get_post().type== 'solution' %}
{{post.get_post().star_count}}
{{post.get_post().title}}
{% endif %} {% endif %}
{% endfor %}
{% endblock content %}