{% extends "utilities/_base.html" %} {% from "components/job_section.html" import job_section %} {% from "components/page_header.html" import page_header %} {% block title %}{{ _("Index Photos - Utilities - Yaffo") }}{% endblock %} {% block utility_content %}
{% set header_actions %} {# Shown by JS once the scan finds work to do. #} {% endset %} {{ page_header( _('Index Photos'), _('Compare photos on the file system with the database'), actions=header_actions, ) }} {% if warnings|length > 0 %}
{% for warning in warnings %}
{{ warning.message }} {% if warning.type == 'error' %} {{ _("Go to Settings") }} {% endif %}
{% endfor %}
{% endif %} {{ job_section(active_jobs, show_cancel=true) }} {% if media_dirs|length > 0 %}
{{ _("Total on Filesystem") }}
{{ _("Imported in Database") }}
{{ _("Indexed in Database") }}
{{ _("Not Indexed") }}
{{ _("Orphaned in DB") }}
{# JS fills this with the unindexed / orphaned tables (or an "in sync" state) once the scan stream completes. #}
{% endif %} {% if media_dirs|length == 0 %}

{{ _("No Media Directories Configured") }}

{% trans settings_url=url_for('settings_index') %} Please configure media directories in Settings to start indexing photos. {% endtrans %}

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}