{% extends "base.html" %} {% block title %}{{ _('status.page_title') }}{% endblock %} {% block content %}

{{ _('status.heading') }}

{{ _('status.subtitle') }}

{{ stats.page_count }} {{ _('status.stat_wiki_pages') }}
{{ stats.raw_count }} {{ _('status.stat_raw_sources') }}
{{ stats.word_count }} {{ _('status.stat_total_words') }}
{{ stats.export_count }} {{ _('status.stat_exported') }}

{{ _('status.readiness_heading') }}

{{ _('status.readiness_state') }}
{% if readiness.ready %}✅ {{ _('status.readiness_ready') }}{% else %}⚠️ {{ _('status.readiness_attention') }}{% endif %}
{{ _('status.readiness_issues') }}
{{ readiness.issues }}
{{ _('status.readiness_usage') }}
{{ readiness.usage.total_reads }}
{% if readiness.changed_sources %}

{{ readiness.changed_sources }} {{ _('status.readiness_changed_sources') }}

{% endif %}

{{ _('status.config_heading') }}

{% if config.backend == 'ollama' %} {% endif %}
{{ _('status.config_llm_backend') }}{{ config.backend }}
{{ _('status.config_ollama_model') }}{{ config.ollama_model }}
{{ _('status.config_wiki_path') }}{{ config.wiki_dir }}
{{ _('status.config_raw_dir') }}{{ config.raw_dir }}
{{ _('status.config_export_dir') }}{{ config.export_dir }}

{{ _('status.tools_heading') }}

{% for tool, status in tools.items() %} {% endfor %}
{{ tool }} {% if status %}{{ _('status.tools_installed') }} {% else %}{{ _('status.tools_missing') }}{% endif %}

{{ _('status.hubs_heading') }}

{% if analytics.hubs %} {% else %}

{{ _('status.hubs_empty') }}

{% endif %}

{{ _('status.tags_heading') }}

{% if analytics.top_tags %}
{% for tag, count in analytics.top_tags %} #{{ tag }} ({{ count }}) {% endfor %}
{% else %}

{{ _('status.tags_empty') }}

{% endif %}

{{ _('status.bridges_heading') }}

{% if analytics.bridges %} {% else %}

{{ _('status.bridges_empty') }}

{% endif %}

{{ _('status.dead_ends_heading') }}

{% if analytics.dead_ends %} {% else %}

{{ _('status.dead_ends_empty') }}

{% endif %}

{{ _('status.sync_heading') }}

{% if sync_needed %}⚠️ {{ _('status.sync_needed_text') }} {% else %}✅ {{ _('status.sync_ok_text') }}{% endif %}

{{ _('status.update_heading') }}

{{ _('status.update_version_label') }} {{ app_version }}

{% if update_available %}

{{ _('status.update_available_desc') }}

{{ _('status.update_run_button') }} {{ _('status.update_github_button') }}
{% else %}

{{ _('status.update_not_available') }}

{% endif %}
{% endblock %}