{#- Mon fil: where to start a discussion, then the news of my communities, newest first, all of it or of one kind; what came since I last marked it read, marked new, and a rule after it. Beside it, my communities, the most active first, with how much is new in each, and the events to come. Drawn in `mockups/templates/home.html`. -#} {% extends "ads_base.html" %} {% import "calendar/_events.html" as ev with context %} {% block page_title %}{{ _("My feed") }}{% endblock %} {% block pretitle %}{{ _("Hello %(name)s", name=current_user.first_name or current_user.name) }}{% endblock %} {% block heading %}{{ _("My feed") }}{% endblock %} {% block actions %} {% if new_count %}
{{ csrf.field() }}{% if kind %}{% endif %}
{% endif %} {% endblock %} {% block body %}
{{ m.composer(communities=communities) }}
{% if new_count %}{{ ngettext("%(num)d new since %(date)s", "%(num)d new since %(date)s", new_count, date=read_until | dateformat("EEEE d MMMM")) }}{% endif %}
{% for item in items %} {% set new = item.happened_at > read_until %} {% if loop.previtem is defined and loop.previtem.happened_at > read_until and not new %}
{{ _("Read already") }}
{% endif %} {{ m.feed_entry(item, new=new) }} {% else %}
{{ _("Nothing of this kind in your communities yet.") if kind else _("Nothing has happened in your communities yet.") }}
{% endfor %}
{% endblock %}