暫無描述

index.html 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {% extends "admin/base_site.html" %}
  2. {% load i18n static %}
  3. {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}">{% endblock %}
  4. {% block coltype %}colMS{% endblock %}
  5. {% block bodyclass %}{{ block.super }} dashboard{% endblock %}
  6. {% block breadcrumbs %}{% endblock %}
  7. {% block nav-sidebar %}{% endblock %}
  8. {% block content %}
  9. <div id="content-main">
  10. {% include "admin/app_list.html" with app_list=app_list show_changelinks=True %}
  11. </div>
  12. {% endblock %}
  13. {% block sidebar %}
  14. <div id="content-related">
  15. <div class="module" id="recent-actions-module">
  16. <h2>{% translate 'Recent actions' %}</h2>
  17. <h3>{% translate 'My actions' %}</h3>
  18. {% load log %}
  19. {% get_admin_log 10 as admin_log for_user user %}
  20. {% if not admin_log %}
  21. <p>{% translate 'None available' %}</p>
  22. {% else %}
  23. <ul class="actionlist">
  24. {% for entry in admin_log %}
  25. <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">
  26. {% if entry.is_deletion or not entry.get_admin_url %}
  27. {{ entry.object_repr }}
  28. {% else %}
  29. <a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>
  30. {% endif %}
  31. <br>
  32. {% if entry.content_type %}
  33. <span class="mini quiet">{% filter capfirst %}{{ entry.content_type.name }}{% endfilter %}</span>
  34. {% else %}
  35. <span class="mini quiet">{% translate 'Unknown content' %}</span>
  36. {% endif %}
  37. </li>
  38. {% endfor %}
  39. </ul>
  40. {% endif %}
  41. </div>
  42. </div>
  43. {% endblock %}