Development of an internal social media platform with personalised dashboards for students
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.

logging.html 690B

12345678910111213141516171819202122232425262728
  1. {% load i18n %}
  2. {% if records %}
  3. <table>
  4. <thead>
  5. <tr>
  6. <th>{% trans "Level" %}</th>
  7. <th>{% trans "Time" %}</th>
  8. <th>{% trans "Channel" %}</th>
  9. <th>{% trans "Message" %}</th>
  10. <th>{% trans "Location" %}</th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. {% for record in records %}
  15. <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
  16. <td>{{ record.level }}</td>
  17. <td>{{ record.time|date:"h:i:s m/d/Y" }}</td>
  18. <td>{{ record.channel|default:"-" }}</td>
  19. <td>{{ record.message|linebreaksbr }}</td>
  20. <td>{{ record.file }}:{{ record.line }}</td>
  21. </tr>
  22. {% endfor %}
  23. </tbody>
  24. </table>
  25. {% else %}
  26. <p>{% trans "No messages logged" %}.</p>
  27. {% endif %}