mirror of https://github.com/interlegis/sigi.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1010 B
33 lines
1010 B
11 years ago
|
{% load i18n log %}
|
||
|
<div class="module" id="recent-actions-module">
|
||
|
<h2>Atividades recentes</h2>
|
||
|
<h3>Últimas atividades</h3>
|
||
|
{% 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|truncatewords_html:3 }}
|
||
|
{% 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>
|