Modified:
/wiki/pp_get_solution_list.wiki
=======================================
--- /wiki/pp_get_solution_list.wiki Tue Feb 8 20:35:53 2011
+++ /wiki/pp_get_solution_list.wiki Tue Feb 8 20:43:22 2011
@@ -53,10 +53,22 @@
Each issue object needs to be referenced as `iss_obj` to take advantage of
the `{% include '_solution.html' %}`. This html file references 'iss_obj'.
{{{
{% pp_get_solution_list issue=request.object dimension=request.dimension %}
- {%for iss_obj in pp_solution.solution_list%}
- {% include '_solution.html' %}
- {% empty %}
+ {%for iss_obj in pp_solution.solution_list%}
+ {% include '_solution.html' %}
+ {% empty %}
No solutions yet! Add a solution.
- {% endfor %}
+
+ {% endfor %}
+ {% if pp_solution.count > 20 %}
+ <div class="pagination"><p><
+ {% for s,e,n in request.rangelist %}
+ {% if not s > pp_solution.count %}
+ <a href="{% pp_url template='solutions.html'
dimension=request.dimension object=request.object start=s end=e %}">
+ {% ifequal s request.start %}<b>{{n}}</b>{% else %}{{n}}{%
endifequal %}</a>
+ {% endif %}
+ {% endfor %}
+ ></p></div>
+ {% endif %}
+{% endpp_get_solution_list %}
}}}