{% extends "layouts/panel.html" %} {% load i18n %} {% load ravix_ui %} {% block title %}{% trans "Dashboard" %}{% endblock %} {% block page_title %}{% trans "Dashboard" %}{% endblock %} {% block content %}

{% blocktrans trimmed with display_name=request.user.display_name %}Welcome, {{ display_name }} đź‘‹{% endblocktrans %}

{% blocktrans trimmed with get_role_display=request.user.get_role_display site_name=site.site_name %}You signed in to {{ site_name }} with the role “{{ get_role_display }}”.{% endblocktrans %}{% if request.user.last_login %} {% blocktrans trimmed with last_login=request.user.last_login|jalali_datetime %}Last sign-in: {{ last_login }}{% endblocktrans %}{% endif %}

{% blocktrans trimmed with profile_completeness=profile_completeness|fa_digits %}Profile completion: {{ profile_completeness }}%{% endblocktrans %}
{% if members_notice_count %}

{% trans "Members no longer enter the panel" %}

{% blocktrans trimmed with n=members_notice_count %}{{ n }} user(s) with the role “Regular user” could open the panel before. That role is now a member: it only has its own account page. Give a higher role to anyone who needs the panel.{% endblocktrans %} {% trans "Show these users" %}

{% csrf_token %}
{% endif %} {% if new_version %}

{% blocktrans trimmed with version=new_version.version %}A new version is available: {{ version }}{% endblocktrans %}

{% if new_version.notes %}

{{ new_version.notes }}

{% endif %} {% trans "See what changes and update" %}
{% endif %} {% if onboarding %}

{% blocktrans trimmed with done=onboarding.done|fa_digits total=onboarding.total|fa_digits %}Quick start — {{ done }} of {{ total }} steps done{% endblocktrans %}

{% csrf_token %}
    {% for s in onboarding.steps %}
  1. {{ s.title }}
    {{ s.hint }}
    {% if s.done %}{% trans "Done" %}{% else %}{{ s.button }}{% endif %}
  2. {% endfor %}
{% endif %} {% if has_samples %}

{% trans "Your site has one sample post and two sample pages (“About us” and “Contact us”). Edit any of them and it becomes yours; you can delete the rest at once." %}

{% csrf_token %}
{% endif %} {% if stats %}
{% icon "users" 24 %}
{{ stats.total_users|fa_digits }}{% trans "Total users" %}
{% icon "check" 24 %}
{{ stats.active_users|fa_digits }}{% trans "Active users" %}
{% icon "calendar" 24 %}
{{ stats.new_users_7d|fa_digits }}{% trans "New members in the last 7 days" %}
{% icon "lock" 24 %}
{{ stats.inactive_users|fa_digits }}{% trans "Inactive accounts" %}
{% endif %} {% if content_stats %}
{% icon "file" 24 %}
{{ content_stats.posts_total|fa_digits }}{% if content_stats.scope_own %}{% trans "My posts" %}{% else %}{% trans "Total posts" %}{% endif %}
{% icon "check" 24 %}
{{ content_stats.posts_live|fa_digits }}{% trans "Published" %}
{% icon "edit" 24 %}
{{ content_stats.posts_draft|fa_digits }}{% trans "Draft" %}
{% icon "clock" 24 %}
{{ content_stats.posts_scheduled|fa_digits }}{% trans "Awaiting publication" %}
{% endif %}
{% if latest_users %}

{% trans "Latest registered users" %}

{% trans "All users" %}
{% for u in latest_users %} {% endfor %}
{% trans "User" %}{% trans "Role" %}{% trans "Joined" %}
{% if u.avatar %}{% else %}{{ u.display_name|slice:":1"|upper }}{% endif %}{{ u.display_name }}
{{ u.get_role_display }} {{ u.date_joined|jalali }}
{% else %}

{% trans "My account" %}

{% trans "Username:" %} @{{ request.user.username }}

{% trans "Email:" %} {{ request.user.email }}

{% blocktrans trimmed with date_joined=request.user.date_joined|jalali %}Member since: {{ date_joined }}{% endblocktrans %}

{% endif %}

{% trans "Shortcuts" %}

{% if stats %}

{% trans "Role distribution" %}

{% for role in stats.roles %}
{{ role.label }}{{ role.count|fa_digits }}
{% endfor %}
{% endif %}
{% endblock %}