2019-04-15 07:45:08 +00:00
{% extends "admin/index.html" %}
{% comment %}
SPDX-License-Identifier: GPL-2.0-or-later
Copyright © 2019 Alexandre Iooss
{% endcomment %}
{% load i18n static %}
{% block content_title %}
< h1 > {% blocktrans %}Welcome to {{ name_website }}{% endblocktrans %}< / h1 >
{% endblock %}
{% block content %}
< div id = "content-main" >
< p >
2019-11-16 14:13:35 +00:00
{% blocktrans %}You are on the operator interface. Here you will be able to manage the network and users from the top left menu. You can also go read the developer documentation.{% endblocktrans %}
2019-04-15 07:45:08 +00:00
< / p >
< p >
{% blocktrans %}To go back to the main site, click "View site" button in top right menu.{% endblocktrans %}
< / p >
< / div >
{% endblock %}
{% block sidebar %}
< div id = "content-related" >
< div class = "module" id = "recent-actions-module" >
2019-11-16 14:13:35 +00:00
< h2 > {% trans "My account" %}< / h2 >
< h3 > {% trans "Recent actions" %}< / h3 >
2019-04-15 07:45:08 +00:00
{% load log %}
{% get_admin_log 10 as admin_log for_user user %}
{% if not admin_log %}
2019-11-16 14:13:35 +00:00
< p > {% trans "None available" %}< / p >
2019-04-15 07:45:08 +00:00
{% else %}
< ul class = "actionlist" >
{% for entry in admin_log %}
< li class = "{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}" >
{% if entry.is_deletion or not entry.get_admin_url %}
{{ entry.object_repr }}
{% else %}
< a href = "{{ entry.get_admin_url }}" > {{ entry.object_repr }}< / a >
{% endif %}
< br / >
{% if entry.content_type %}
< span class = "mini quiet" > {% filter capfirst %}
{{ entry.content_type }}{% endfilter %}< / span >
{% else %}
2019-11-16 14:13:35 +00:00
< span class = "mini quiet" > {% trans "Unknown content" %}< / span >
2019-04-15 07:45:08 +00:00
{% endif %}
< / li >
{% endfor %}
< / ul >
{% endif %}
< / div >
< / div >
{% endblock %}