[pirate-politics] r550 committed - Edited wiki page pp_get_solution_list through web user interface.

2 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Feb 8, 2011, 11:49:39 PM2/8/11
to pirate-poli...@googlegroups.com
Revision: 550
Author: oly.m...@gmail.com
Date: Tue Feb 8 20:43:22 2011
Log: Edited wiki page pp_get_solution_list through web user interface.
http://code.google.com/p/pirate-politics/source/detail?r=550

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 %}

}}}

Reply all
Reply to author
Forward
0 new messages