list.html 295 B

123456789101112
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h2>Список заметок</h2>
  4. <ul>
  5. {% for note in object_list %}
  6. <li>
  7. {{ note.id }}:
  8. <a href="{% url 'notes:detail' note.slug %}"> {{ note.title }}</a>
  9. </li>
  10. {% endfor %}
  11. </ul>
  12. {% endblock content %}