{% extends parent_template|default:"organizer/base_organizer.html" %}

{% block title %}
{{ block.super }} - Tag List
{% endblock %}

{% block content %}
  <h2>Tag List</h2>
    <div>
      <a href="{% url 'organizer_tag_create' %}">
        Create New Tag</a>
    </div>
  <ul>
    {% for tag in tag_list %}
      <li>
        <a href="{{ tag.get_absolute_url }}">
          {{ tag.name|title }}</a>
          <ul>
            <li>
              <a href="{{ tag.get_update_url }}">
                Edit Tag</a></li>
            <li>
              <a href="{{ tag.get_delete_url }}">
                Delete Tag</a></li>
          </ul>
      </li>
    {% empty %}
      <li><em>There are currently no Tags available.</em></li>
    {% endfor %}
  </ul>
{% endblock %}

{% extends parent_template|default:"organizer/base_organizer.html" %}

{% block title %}
{{ block.super }} - Tag List
{% endblock %}

{% block content %}
  <h2>Tag List</h2>
    <div>
      <a href="{% url 'organizer_tag_create' %}">
        Create New Tag</a>
    </div>
  <ul>
    {% for tag in tag_list %}
      <li>
        <a href="{{ tag.get_absolute_url }}">
          {{ tag.name|title }}</a>
          <ul>
            <li>
              <a href="{{ tag.get_update_url }}">
                Edit Tag</a></li>
            <li>
              <a href="{{ tag.get_delete_url }}">
                Delete Tag</a></li>
          </ul>
      </li>
    {% empty %}
      <li><em>There are currently no Tags available.</em></li>
    {% endfor %}
  </ul>

  {% if is_paginated %}
    <ul>
      {% if previous_page_url %}
        <li>
          <a href="{{ previous_page_url }}">
            Previous</a>
        </li>
      {% endif %}
      <li>
        Page {{ tag_list.number}}
        of {{ paginator.num_pages }}
      </li>
      {% if next_page_url %}
        <li>
          <a href="{{ next_page_url }}">
            Next</a>
        </li>
      {% endif %}
    </ul>
  {% endif %}

{% endblock %}

Add page links to Tag List.
Ch14: Add page links to Tag List.
