зеркало из https://github.com/mozilla/pjs.git
Small fixes for pagination, convert some spaces to tabs, small style fix.
This commit is contained in:
Родитель
d0450153cb
Коммит
7c9800806f
|
@ -24,6 +24,7 @@ body {
|
|||
/**************** Pagination Navigation */
|
||||
#reporter-content .navigation {
|
||||
text-align: center;
|
||||
margin-top: 4em;
|
||||
}
|
||||
|
||||
#reporter-content .navigation .currentPage {
|
||||
|
|
|
@ -52,21 +52,23 @@
|
|||
<div class="navigation">
|
||||
{strip}
|
||||
{if $page > 1}
|
||||
<a href="?{$continuity_params}&page={$page-1}"><</a>
|
||||
<a href="?{$continuity_params}&page={$page-1}" accesskey="p" >Previous</a>
|
||||
{/if}
|
||||
{/strip}
|
||||
|
||||
{section name=pageLoop start=$start loop=$start+$amt step=$step}
|
||||
{strip} <a href="{$base_url}/app/query/?{$continuity_params}&page={$smarty.section.pageLoop.index}"
|
||||
{if $smarty.section.pageLoop.index == $page}class="currentPage"{/if}
|
||||
> {$smarty.section.pageLoop.index}</a>
|
||||
{/strip}
|
||||
{/section}
|
||||
|
||||
{strip}
|
||||
{if $page < $pages}
|
||||
<a href="{$base_url}/app/query/?{$continuity_params}&page={$page+1}">></a>
|
||||
<a href="{$base_url}/app/query/?{$continuity_params}&page={$smarty.section.pageLoop.index}" accesskey="n" >Next</a>
|
||||
{/if}
|
||||
{/strip}
|
||||
<hr />
|
||||
|
||||
{*
|
||||
<pre>
|
||||
Count: {$count}
|
||||
|
|
Загрузка…
Ссылка в новой задаче