Permalink
Browse files

include pagination, event and listing urls

  • Loading branch information...
1 parent b15d417 commit b5e98e927f846ec7371f43b1d563da061b7a540a shaunsephton committed Mar 26, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 motswadi/templates/base.html
@@ -18,6 +18,20 @@ <h2><a href="{% url home %}">Motswadi Teacher Portal</a></h2>
<article>
{% block content %}
{% endblock %}
+
+ {% if is_paginated %}
+ Page:
+ {% for page in paginator.page_range %}
+ {% if page_obj.number == page %}
+ {{ page }}
+ {% else %}
+ <a href="?page={{ page }}">{{ page }}</a>
+ {% endif %}
+ {% if not forloop.last %}
+ |
+ {% endif %}
+ {% endfor %}
+ {% endif %}
</article>
</div>
<footer>
@@ -26,6 +40,9 @@ <h2><a href="{% url home %}">Motswadi Teacher Portal</a></h2>
<ul>
<li><a href="{% url roll_call %}">Roll Call</a></li>
<li><a href="{% url create_assessment_result %}">Create Assessment Result</a></li>
+ <li><a href="{% url update_assessment_results %}">Update Assessment Results</a></li>
+ <li><a href="{% url create_event %}">Create Event</a></li>
+ <li><a href="{% url update_events %}">Update Events</a></li>
<li><a href="{% url django.contrib.auth.views.logout %}?next=/">Log Out</a></li>
</ul>
</nav>

0 comments on commit b5e98e9

Please sign in to comment.