{% extends "company_base.html" %} {% block title %}Posts - {{ employee_name }} - {{ session.company_name }}{% endblock %} {% macro render_post_card(post) %}

{{ post.topic_title or 'Untitled' }}

{{ post.created_at.strftime('%d.%m.%Y') if post.created_at else 'N/A' }}
{% if post.post_content %}

{{ post.post_content[:150] }}{% if post.post_content | length > 150 %}...{% endif %}

{% endif %}
{% endmacro %} {% block head %} {% endblock %} {% block content %}

Posts von {{ employee_name }}

Ziehe Posts zwischen den Spalten um den Status zu ändern. Die Spalte "Freigegeben" ist nur lesbar.

{% if not permissions or permissions.can_create_posts %} Neuer Post {% endif %}

Vorschlag

{{ posts | selectattr('status', 'equalto', 'draft') | list | length }}
{% for post in posts if post.status == 'draft' %} {{ render_post_card(post) }} {% else %}

Keine Vorschläge

{% endfor %}

Bearbeitet

{{ posts | selectattr('status', 'equalto', 'approved') | list | length }}
{% for post in posts if post.status == 'approved' %} {{ render_post_card(post) }} {% else %}

Keine bearbeiteten Posts

{% endfor %}

Freigegeben (Nur Ansicht)

{{ posts | selectattr('status', 'equalto', 'ready') | list | length }}
{% for post in posts if post.status == 'ready' %}

{{ post.topic_title or 'Untitled' }}

{{ post.created_at.strftime('%d.%m.%Y') if post.created_at else 'N/A' }}
{% if post.post_content %}

{{ post.post_content[:150] }}{% if post.post_content | length > 150 %}...{% endif %}

{% endif %}
{% else %}

Keine freigegebenen Posts

{% endfor %}
{% if not posts %}

Noch keine Posts

Erstelle den ersten LinkedIn Post für {{ employee_name }}.

Post erstellen
{% endif %} {% endblock %} {% block scripts %} {% endblock %}