mail[Wesnoth-commits] r28517 - /trunk/utils/tests/smarty_workdir/templates/paginate.tpl


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by paniemin on August 12, 2008 - 22:10:
Author: suokko
Date: Tue Aug 12 22:10:50 2008
New Revision: 28517

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28517&view=rev
Log:
Added missing pagiante.tpl

Added:
    trunk/utils/tests/smarty_workdir/templates/paginate.tpl

Added: trunk/utils/tests/smarty_workdir/templates/paginate.tpl
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/tests/smarty_workdir/templates/paginate.tpl?rev=28517&view=auto
==============================================================================
--- trunk/utils/tests/smarty_workdir/templates/paginate.tpl (added)
+++ trunk/utils/tests/smarty_workdir/templates/paginate.tpl Tue Aug 12 
22:10:50 2008
@@ -1,0 +1,22 @@
+<div class="paginate">
+{if $paginate.page > 1}
+<a href="{$paginate.link}{$paginate.page-1}">Previous</a>
+{/if}
+{if $paginate.first_page > 1}
+<a href="{$paginate.link}1">1</a>
+{/if}
+
+{section name=pager loop=$paginate.last_page start=$paginate.first_page 
max=$paginate.visible}
+<a 
href="{$paginate.link}{$smarty.section.pager.index}">{$smarty.section.pager.index}</a>
+{if $smarty.section.pager.last == false}
+,
+{/if}
+{/section}
+
+{if $paginate.last_page < $paginate.number_of_pages}
+<a 
href="{$paginate.link}{$paginate.number_of_pages}">{$paginate.number_of_pages}</a>
+{/if}
+{if $paginate.page < $paginate.number_of_pages}
+<a href="{$paginate.link}{$paginate.page+1}">next</a>
+{/if}
+</div>




Related Messages


Powered by MHonArc, Updated Tue Aug 12 22:41:50 2008