{% load article_tags event_tags user_tags site_tags typogrify humanize %}

{{ subject }}

{% get_new_articles last_seen brief=True as news_briefs %} {% if news_briefs %} {% for brief in news_briefs %}

{% if brief.link %} {{ brief.text }} {% else %} {{ brief.text}} {% endif %}

{% endfor %} {% endif %} {% if watchlist %} {% with watchlist|length as count %}

{{ count|apnumber|capfirst }} item{{ count|pluralize }} on your watchlist {% if count == 1 %}has{% else %}have{% endif %} been updated.

{% endwith %} {% else %} {% if user.watch_set.count %}

Nothing on your watchlist has been updated lately.

{% endif %} {% endif %} {% get_events_by_date_range 21 3 3 as events %} {% if events %} {% with events.count as count %}

{{ count|apnumber|capfirst }} event{{ count|pluralize }} {% if count == 1 %} is {% else %} are {% endif %} coming up or happening now:

{% for event in events %}

{{ event.subhead }} {{ event.name }}: {% format_time event.start_date %}

{% endfor %} {% endwith %} {% else %} {% get_upcoming_events 1 0 as next_events %} {% with next_events.0 as next_event %} {% if next_event %}

{{ next_event.name }} is coming {{ next_event.start_date|date:"N j" }}.

{% endif %} {% endwith %} {% endif %} {% get_new_topics_count as new_count %} {% get_active_topics_count as active_count %}

Check out a few of the {{ new_count|apnumber|capfirst }} new topic{{ new_count|pluralize }} and {{ active_count|apnumber|capfirst }} active topic{{ active_count|pluralize }} today:

{% get_topic_list 6 top_items=True as topic_list %} {% regroup topic_list by forum as topics %} {% for forum in topics %} {{ forum.grouper }} {% endfor %} {% get_new_articles last_seen as articles %} {% if articles %} {% with articles.count as count %}

{{ count|apnumber|capfirst }} new article{{ count|pluralize }}

{% endwith %} {% endif %} {% get_birthday_list as birthday_list %} {% if birthday_list %} {% with birthday_list.count as count %}

We have {{ count|apnumber }} birthday{{ count|pluralize }} today

{% endwith %} {% endif %}

Say hello to some new people:

{% get_new_members 'today' as new_members %}