recent_actions.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% load i18n jet_dashboard_tags %}
  2. <ul>
  3. {% if not module.children %}
  4. <li>
  5. {% trans 'None available' %}
  6. </li>
  7. {% else %}
  8. {% for entry in module.children %}
  9. <li>
  10. <span class="float-right">
  11. <span class="icon-user tooltip" title="{{ entry.user }}"></span>
  12. <span class="icon-clock tooltip" title="{{ entry.action_time }}"></span>
  13. </span>
  14. <div class="nowrap">
  15. {% if entry.is_addition %}
  16. <span class="icon-add3"></span>
  17. {% endif %}
  18. {% if entry.is_change %}
  19. <span class="icon-edit"></span>
  20. {% endif %}
  21. {% if entry.is_deletion %}
  22. <span class="icon-cross"></span>
  23. {% endif %}
  24. {% if entry.content_type %}
  25. <span>{% filter capfirst %}{{ entry.content_type }}{% endfilter %}</span>
  26. {% else %}
  27. <span>{% trans 'Unknown content' %}</span>
  28. {% endif %}
  29. {% if entry.is_deletion or not entry.get_admin_url %}
  30. <span class="tooltip" title="{{ entry|format_change_message }}">{{ entry.object_repr }}</span>
  31. {% else %}
  32. <a title="{{ entry|format_change_message }}" class="tooltip" href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>
  33. {% endif %}
  34. </div>
  35. </li>
  36. {% endfor %}
  37. {% endif %}
  38. </ul>