Browse Source

Adicionado bloco de últimas atividades de todos usuários.

0.2
Guilherme Gondim 16 years ago
parent
commit
fb254154f2
  1. 38
      sigi/templates/index.html

38
sigi/templates/index.html

@ -1,5 +1,43 @@
{% extends "admin/index.html" %}
{% load i18n %}
{% block title %}Dashboard | SIGI{% endblock %}
{% block content_title %}<h1>Dashboard</h1>{% endblock %}
{% block sidebar %}
<div id="content-related">
<div class="module" id="recent-actions-module">
<h2>Atividades recentes</h2>
<h3>Últimas atividades</h3>
{% load log %}
{% get_admin_log 10 as admin_log %}
{% if not admin_log %}
<p>Não disponível.</p>
{% 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 not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}
{{ entry.object_repr|escape }}
{% if not entry.is_deletion %}</a>{% endif %}
<br />
<span class="mini quiet">
{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}, por
<i>
{% if entry.user.first_name %}
{{ entry.user.first_name }}
{% else %}
{{ entry.user.username }}
{% endif %}
</i>
</span>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endblock %}

Loading…
Cancel
Save