{% extends "admin/index.html" %}
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load i18n static %}
{% block content %}
Welcome to procrastination heaven !
{% if app_list %}
{% for app in app_list %}
{% endfor %}
{% endif %}
{% endblock %}
{% block sidebar %}
{% if user.is_authenticated %}
{{ user.first_name }} {{ user.last_name }}
{% trans 'My profile' %}
- {% trans 'username' %} : {{ user.username }}
- {% trans 'email' %} : {{ user.email }}
- {% trans 'comment' %} : {{ user.comment }}
- {% trans 'date joined' %} : {{ user.date_joined }}
- {% trans 'last login' %} : {{ user.last_login }}
- {% trans 'address' %} : {{ user.address }}
- {% trans 'phone number' %} : {{ user.telephone }}
- {% trans 'groups' %} : {% for g in user.groups.all %}{{ g.name }} {% endfor %}
- {% trans 'maximum borrowed' %} : {{ user.maxemprunt }}
-
{% trans 'membership for current year' %} :
{% if user.is_member %}
{% trans 'yes' %}
{% else %}
{% trans 'no' %}
{% endif %}
{% trans 'Current borrowed items' %}
{% if borrowed_items %}
{% for emprunt in borrowed_items %}
- {{ emprunt.media }} ({% trans 'since' %} {{ emprunt.date_emprunt }})
{% endfor %}
{% else %}
{% trans 'No current borrowed items.' %}
{% endif %}
{% trans 'My actions' %}
{% load log %}
{% get_admin_log 10 as admin_log for_user user %}
{% if not admin_log %}
{% trans 'None available' %}
{% else %}
{% for entry in admin_log %}
-
{% if entry.is_deletion or not entry.get_admin_url %}
{{ entry.object_repr }}
{% else %}
{{ entry.object_repr }}
{% endif %}
{% if entry.content_type %}
{% filter capfirst %}
{{ entry.content_type }}{% endfilter %}
{% else %}
{% trans 'Unknown content' %}
{% endif %}
{% endfor %}
{% endif %}
{% else %}
{% trans 'You are not logged in.' %}
{% endif %}
{% endblock %}