{% extends "base.html" %} {% from "icons.html" import icon, sep %} {% block title %}{{ _("Health") }} · {{ space.name }} · Synaptane{% endblock %} {% block crumbs %}{{ sep() }}{{ org.name }}{{ sep() }}{{ space.name }}{{ sep() }}{{ _("Health") }}{% endblock %} {% block content %} {% set space_tab = "health" %}{% include "space-tabs.html" %} {% set base = '/o/' ~ org.slug ~ '/' ~ space.slug %} {% set shown = 200 %} {% macro page_link(path) -%}{{ path }}{%- endmacro %} {% macro edit_link(path) -%}{% if contribute %}{{ _("Edit") }}{% endif %}{%- endmacro %} {# Column of the "Edit" button: narrow, aligned right. #} {% macro more(items) -%}{% if items|length > shown %}
{{ _("and {count} more", count=items|length - shown) }}
{% endif %}{%- endmacro %}{{ _("Check without AI, at the latest commit: broken links, pages with no incoming link, empty or untitled pages, pages to review, pages not modified for a long time.") }}
{% if report is none %}{{ _(pl(report.pages, "{n} page checked", "{n} pages checked"), n=report.pages) }} · {% if report.problems %}{{ _(pl(report.problems, "{n} item to check", "{n} items to check"), n=report.problems) }}{% else %}{{ _("Nothing to check.") }}{% endif %}{% if report.commit %} · {{ report.commit[:10] }}{% endif %}
| {{ _("Page") }} | {{ _("Link") }} | {{ _("Suggestion") }} | {% if contribute %}{{ _("Actions") }} | {% endif %}
|---|---|---|---|
| {{ page_link(item.page) }} | {{ item.link }} | {% if item.suggestion %}{{ item.suggestion }}{% else %}—{% endif %} | {% if contribute %}{{ edit_link(item.page) }} | {% endif %}
{{ _("No broken links.") }}
{% endif %}{{ _("No other page links to them (folder home pages are not counted). Add a link from the folder index or from a page about the same topic.") }}
{% if report.orphans %}| {{ page_link(path) }} | {% if contribute %}{{ edit_link(path) }} | {% endif %}
| {{ page_link(path) }} | {{ _("Empty") }} | {% if contribute %}{{ edit_link(path) }} | {% endif %}
| {{ page_link(path) }} | {{ _("No level-1 heading") }} | {% if contribute %}{{ edit_link(path) }} | {% endif %}
{{ _("Every page has a title and some content.") }}
{% endif %}{{ _(pl(report.verified, "{n} verified, up-to-date page.", "{n} verified, up-to-date pages."), n=report.verified) }} {% if report.review_every %}{{ _("Space review period: {period}.", period=period_label(report.review_every)) }}{% else %}{{ _("With no review period set for the space, only pages that have their own (review_every) become due for review.") }}{% endif %}{% if can(actor.access, Action.MANAGE_ORG, org_id=space.org_id) %} {{ _("Change", context="link") }}{% endif %}
{% if report.due %}| {{ _("Page") }} | {{ _("Owner") }} | {{ _("Due since") }} |
|---|---|---|
| {{ page_link(item.path) }} | {% if item.owner %}{{ owner_label(item.owner) }}{% else %}—{% endif %} |
{{ _("No page to review.") }}
{% endif %} {% if report.unowned %}{{ _("Nobody answers for them: choose an owner in the page's ⋮ menu.") }}
| {{ page_link(path) }} |
| {{ _("Page") }} | {{ _("Last changed") }} | {% if contribute %}{{ _("Actions") }} | {% endif %}
|---|---|---|
| {{ page_link(item.path) }} | {% if contribute %} | {{ edit_link(item.path) }} | {% endif %}
{{ _("No page that old.") }}
{% endif %}