{% extends "layouts/blogroll.njk" %} {% block blogroll %} {% call section({ title: __("blogroll.stats.title") }) %}
{{ __("blogroll.stats.sources") }}
{{ stats.sources }}
{{ __("blogroll.stats.blogs") }}
{{ stats.blogs }}
{{ __("blogroll.stats.items") }}
{{ stats.items }}
{{ __("blogroll.stats.errors") }}
{{ stats.errors }}
{{ __("blogroll.stats.lastSync") }}
{% if syncStatus.lastSync %}{{ syncStatus.lastSync | date("PPpp") }}{% else %}{{ __("blogroll.never") }}{% endif %}
{{ button({ href: baseUrl + "/sources", text: __("blogroll.sources.manage"), classes: "button--secondary" }) }} {{ button({ href: baseUrl + "/blogs", text: __("blogroll.blogs.manage"), classes: "button--secondary" }) }}
{% endcall %} {% call section({ title: __("blogroll.actions.title") }) %}
{{ button({ type: "submit", text: __("blogroll.actions.syncNow") }) }}
{{ button({ type: "submit", text: __("blogroll.actions.clearResync"), classes: "button--secondary" }) }}
{% endcall %} {% if blogsWithErrors.length > 0 %} {% call section({ title: __("blogroll.errors.title") }) %} {% if stats.errors > blogsWithErrors.length %}

{{ __("blogroll.errors.seeAll", { count: stats.errors }) }}

{% endif %} {% endcall %} {% endif %} {% call section({ title: __("blogroll.sources.recent") }) %} {% if sources.length > 0 %} {% else %} {{ prose({ text: __("blogroll.sources.empty") }) }} {% endif %}
{{ button({ href: baseUrl + "/sources/new", text: __("blogroll.sources.add"), classes: "button--secondary button--small" }) }}
{% endcall %} {% call section({ title: __("blogroll.blogs.recent") }) %} {% if recentBlogs.length > 0 %} {% else %} {{ prose({ text: __("blogroll.blogs.empty") }) }} {% endif %}
{{ button({ href: baseUrl + "/blogs/new", text: __("blogroll.blogs.add"), classes: "button--secondary button--small" }) }}
{% endcall %} {% call section({ title: __("blogroll.api.title") }) %} {% endcall %} {% endblock %}