You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.4 KiB
HTML

8 years ago
{% extends "admin/base_site.html" %}
{% load i18n static %}
8 years ago
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}">{% endblock %}
8 years ago
{% block coltype %}colMS{% endblock %}
{% block bodyclass %}{{ block.super }} dashboard{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block nav-sidebar %}{% endblock %}
8 years ago
{% block content %}
<div id="content-main">
<div class="module">
<table>
<caption>
<a href="{% url 'admin_status' %}" class="section">{% trans 'Status' %}</a>
</caption>
<tr>
<th scope="row"><a href="{% url 'admin_status' %}">{% trans 'Status' %}</a></th>
<th>&nbsp;</th>
</tr>
<tr>
<th scope="row"><a href="{% url 'admin_ref' %}">{% trans 'Referrers Stats' %}</a></th>
<th>&nbsp;</th>
</tr>
</table>
</div>
{% include "admin/app_list.html" with app_list=app_list show_changelinks=True %}
8 years ago
</div>
{% endblock %}
{% block sidebar %}
<div id="content-related">
<div class="module" id="recent-actions-module">
<h2>{% translate 'Recent actions' %}</h2>
<h3>{% translate 'My actions' %}</h3>
8 years ago
{% load log %}
{% get_admin_log 10 as admin_log for_user user %}
{% if not admin_log %}
<p>{% translate 'None available' %}</p>
8 years ago
{% 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>
8 years ago
{% if entry.content_type %}
<span class="mini quiet">{% filter capfirst %}{{ entry.content_type.name }}{% endfilter %}</span>
8 years ago
{% else %}
<span class="mini quiet">{% translate 'Unknown content' %}</span>
8 years ago
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endblock %}