{% load staticfiles %}

# Notifications

This page shows all of the recent notifications for the various people, committees, searches, bills, and events you are subscribed to.

{% if person_updates %}

### {{ CITY_VOCAB.COUNCIL_MEMBER }} Notifications

{% for update in person_updates %} {% for update_type, person in update.items %}

##### {{person.name}} - {{ update_type }}

Bill | RSS {% if 'Sponsorship' in update_type %} | Description {% else %} | Action {% endif %}
--- | --- | --- | ---
{% for bill in person.bills %}
{{bill.identifier}} |  | {% if bill.action_description %} {{ bill.action_date|date:"M j, Y"}}: {{ bill.action_description }} {% else %} {{ bill.description }} {% endif %}
{% endfor %}

{% endfor %} {% endfor %}
{% endif %} {% if committee_action_updates %}
{% for committee in committee_action_updates %}

### {{ committee.name }} Notifications

{% for bill in committee.bills %}

##### Bill actions - {{ bill.identifier }}

Date | Action | RSS
--- | --- | ---
{% for action in bill.actions %}
{{ action.date|date:"M j, Y" }} | {{ action.description }} |
{% endfor %}

{% endfor %} {% endfor %}
{% endif %} {% if committee_event_updates %}

### Committee Event Notifications

{% for committee in committee_event_updates %}

##### {{ committee.name }}

Event | Date | Description
--- | --- | ---
{% for event in committee.events %}
{{ event.name }} | {{event.start_time|date:"M j, Y fa"}} | {{ event.description }}
{% endfor %}

{% endfor %}
{% endif %} {% if bill_search_updates %}

### Bill Search Notifications

{% for search in bill_search_updates %}

##### Term: {{ search.params.term }} {% if search.params.facets %}
Selected facets: {% for facet, value in search.params.facets %} {{ facet }}: {{ value }}{% if not forloop.last %}, {% endif %} {% endfor%} {% endif %}

Bill | RSS
--- | ---
{% for bill in search.bills %}
{{bill.identifier}} |
{% endfor %}

{% endfor %}
{% endif %} {% if bill_action_updates %}

### Bill Action Notifications

Bill | Action | RSS
--- | --- | ---
{% for bill, action in bill_action_updates %}
{{bill.identifier}} | {{action.date|date:"M j, Y"}}: {{action.description}} |
{% endfor %}

{% endif %}