{% extends "base.html" %} {% from "components/side_panel.html" import form_side_panel %} {% from "components/dataset_card.html" import dataset_card, section_heading, owner_switch %} {% from "components.html" import breadcrumbs %} {% block title %}{{ 'Needs your attention' if full else 'Overview' }} ยท REFRNCR{% endblock %} {% block content %}
{% if full %} {% else %}{% set first_name = (current_actor.display_name or '').split()|first|default('') %}
{% if overview.today %}

{% endif %}

{{ 'Hello, ' ~ first_name if first_name else 'Overview' }}

Here's what needs your attention across your datasets.

{% endif %}
{% if not full %}{% call section_heading('Needs your attention', overview.attention|length, url_for('attention_overview', all_owners=1 if overview.all_owners else none), id='attention-heading') %} {% if overview.is_admin %}{{ owner_switch(overview.all_owners, url_for('index'), reason) }}{% endif %} {% endcall %}{% endif %} {% if full %}
{% if overview.all_owners %}{% endif %}
{% if overview.is_admin %}{{ owner_switch(overview.all_owners, url_for('attention_overview'), reason) }}{% endif %}
{% if attention_cards %}{% endif %} {% else %} {% for group in ['Needs action', 'Coming up'] %} {% set cards = overview.attention|selectattr('group', 'equalto', group)|list %} {% if cards %}

{{ group }} {{ cards|length }}

    {% for card in cards %}
  • {{ dataset_card(card, card_destination(card, card.card_reason), reason=card.card_reason) }}
  • {% endfor %}
{% endif %} {% endfor %} {% if overview.tallies|selectattr('2')|list %}

To finish

    {% for number, label, count in overview.tallies %}{% if count %}
  • {{ count }}{{ label }}
  • {% endif %}{% endfor %}
{% endif %} {% endif %} {% if not attention_cards %}
{% if not overview.has_team and not overview.all_owners %}

You're not in a team yet

Attention items from your teams will show up here.{% if overview.is_admin %} Turn on Show all owners to see attention items across all teams.{% else %} Ask an administrator to add you to a team.{% endif %}

{% elif reason %}

No datasets match this reason

View all attention items

{% else %}

Nothing needs your attention

Mappings that lag behind, missing Current versions and upcoming versions show up here.

{% endif %}
{% endif %}
{% if not full %} {% for title, cards in [('Recently visited', overview.visited), ('Recently created', overview.created)] %}
{{ section_heading(title, none if title == 'Recently visited' and not cards else cards|length, id='recent-' ~ loop.index) }} {% if cards %} {% elif title == 'Recently visited' %}

Datasets you visit will show up here. View datasets

{% else %}

{{ 'Datasets you visit will show up here.' if title == 'Recently visited' else 'New datasets will show up here.' }} View datasets

{% endif %}
{% endfor %} {% endif %} {% if not full %}{{ form_side_panel('period-export-panel', 'Export a reporting period') }}{% endif %}
{% endblock %} {% block scripts %}{% if not full %}{% endif %}{% endblock %}