{% extends "layouts/admin.twig" %} {% block title %}Dashboard - CodePress Admin{% endblock %} {% block content %}

Dashboard

Welkom, {{ user.username }} — Ingelogd als {{ role_label(user_role) }}
{# Analytics stats - only for roles with statistics permission #} {% if has_permission('statistics') %}
Weergaven (30 dagen)

{{ (analytics_summary.totals.views|default(0))|number_format(0, ',', '.') }}

Unieke bezoekers (30 dagen)

{{ (analytics_summary.totals.uniques|default(0))|number_format(0, ',', '.') }}

Grootste land

{{ get_country_flag(analytics_summary.countries|keys|first) }} {{ get_country_name(analytics_summary.countries|keys|first) }}

Statistieken →
{% endif %} {# Content stats - only for roles with content permission #} {% if has_permission('content') %}
Pagina's

{{ stats.pages }}

Mappen

{{ stats.directories }}

Content grootte

{{ stats.content_size }}

{% endif %} {# System stats - only for admin/site-admin #} {% if has_permission('plugins') or has_permission('config') %}
{% if has_permission('plugins') %}
Plugins

{{ stats.plugins }}

{% endif %}
{% endif %}
{# Site information - only for admin #} {% if has_permission('config') %}
Site informatie
Site titel{{ site_config.site_title|default('CodePress') }}
Standaard taal{{ site_config.language.default|default('nl') }}
Auteur{{ site_config.author.name|default('-') }}
CodePress versie{{ stats.cms_version }}
PHP versie{{ stats.php_version }}
Besturingssysteem{{ stats.os }}
Config geladen{% if stats.config_exists %}Ja{% else %}Nee{% endif %}
{% endif %} {# Recent activity - only for roles with logs permission #} {% if has_permission('logs') %}
Recente activiteit Bekijk alle →
{% if recent_logs is empty %}

Geen activiteit geregistreerd.

{% else %}
    {% for log in recent_logs %}
  • {{ log.time }} {{ log.level }} {{ log.ip }} {{ log.message }}
  • {% endfor %}
{% endif %}
Recente requests Bekijk alle →
{% if recent_requests is empty %}

Geen requests geregistreerd.

{% else %}
    {% for log in recent_requests %}
  • {{ log.time }} {{ log.ip }} {{ log.page }}
    {% if log.visitor_info is not empty %} {{ log.visitor_info.label }} {% endif %}
  • {% endfor %}
{% endif %}
{% endif %} {# Quick actions - role-specific #}
Snelle acties
{% if has_permission('content') %} Nieuwe pagina Content beheren {% endif %} {% if has_permission('config') %} Configuratie bewerken {% endif %} {% if has_permission('statistics') %} Statistieken bekijken {% endif %} {% if has_permission('theme') %} Thema beheren {% endif %} {% if has_permission('plugins') %} Plugins beheren {% endif %} Website bekijken
{% endblock %}