summaryrefslogtreecommitdiff
path: root/lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html
diff options
context:
space:
mode:
Diffstat (limited to 'lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html')
-rw-r--r--lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html b/lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html
new file mode 100644
index 0000000..0b7bb9e
--- /dev/null
+++ b/lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html
@@ -0,0 +1,26 @@
+{% extends "admin_tools/dashboard/module.html" %}
+{% load i18n %}
+{% block module_content %}
+{% if subindex %}
+ <div class="module actions {% for item in module.css_classes %}{{ item }} {% endfor %}">
+ <h3>{% trans 'Recent Actions' %}</h2>
+ <div class="module">
+ <h4>{% trans 'My Actions' %}</h3>
+{% else %}
+ <div class="module actions {% for item in module.css_classes %}{{ item }} {% endfor %}">
+ <h2>{% trans 'Recent Actions' %}</h2>
+ <div class="module">
+ <h3>{% trans 'My Actions' %}</h3>
+{% endif %}
+ {% if module.children %}
+ <ul>
+ {% for entry in module.children %}
+ <li class="{% if entry.is_addition %}add-link{% endif %}{% if entry.is_change %}change-link{% endif %}{% if entry.is_deletion %}delete-link{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span></li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ <p>{% trans 'None Available' %}</p>
+ {% endif %}
+ </div>
+</div>
+{% endblock %}