{% 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' %}

Posted Project {{post.poster.username}} • {{post.elapsed_time()}}

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

{{post.poster.username}} commented on {{post.get_post().poster.username}}'s {{post.category}} • {{post.elapsed_time()}}

"{{post.body}}"
{{post.star_count}}
{% if post.category == 'goal' %}

{{post.get_post().description}}

{% elif post.category == 'solution' %}

{{post.get_post().title}}

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

{{post.poster.username}} posted an Goal • {{post.elapsed_time()}}

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

{{post.poster.username}} posted a solution to "{{post.solution.description}}" • {{post.elapsed_time()}}

{{post.title}}
{{post.star_count }}
{{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 %}
{% if post.can_delete(current_user) %} {% endif %}
{% elif post.type== 'star' %}

{{post.star_giver.username}} gave a star to {{post.ideate_poster.username}}'s {{post.get_post().text()}} • {{post.elapsed_time()}} {% if post.get_post().type== 'comment' %}

"{{post.get_post().body}}"
{{post.get_post().star_count}}
{% endif %} {% if post.get_post().type== 'goal' %}
{{post.get_post().description}}
{{post.get_post().star_count}}
{% endif %} {% if post.get_post().type== 'solution' %}
{{post.get_post().title}}
{{post.get_post().star_count}}
{% endif %} {% endif %}
{% endfor %}
{% endblock content %}