зеркало из 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 {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<table id="reporterQuery" class="fixedTable" cellspacing="0" cellpadding="0" style="width:100%">
|
||||
<tr class="header">
|
||||
{section name=mysec loop=$column}
|
||||
<th>{if $column[mysec].url != null}<a href="{$column[mysec].url}">{/if}{$column[mysec].text}{if $column[mysec].url != null}</a>{/if}</th>
|
||||
<th>{if $column[mysec].url != null}<a href="{$column[mysec].url}">{/if}{$column[mysec].text}{if $column[mysec].url != null}</a>{/if}</th>
|
||||
{/section}
|
||||
</tr>
|
||||
{if $method == 'html'}
|
||||
|
@ -26,20 +26,20 @@
|
|||
<tr class="data{cycle values=', alt'}">
|
||||
{section name=col loop=$row[mysec2]}
|
||||
<td>
|
||||
{strip}
|
||||
{if $row[mysec2][col].url != null}
|
||||
<a href="{$base_url}/app{$row[mysec2][col].url}">
|
||||
{/if}
|
||||
{if $row[mysec2][col].col == 'report_url'}
|
||||
{$row[mysec2][col].text|truncate:50}
|
||||
{else}
|
||||
{$row[mysec2][col].text|truncate:100}
|
||||
{/if}
|
||||
{if $row[mysec2][col].url != null}
|
||||
</a>
|
||||
{/if}
|
||||
{/strip}
|
||||
</td>
|
||||
{strip}
|
||||
{if $row[mysec2][col].url != null}
|
||||
<a href="{$base_url}/app{$row[mysec2][col].url}">
|
||||
{/if}
|
||||
{if $row[mysec2][col].col == 'report_url'}
|
||||
{$row[mysec2][col].text|truncate:50}
|
||||
{else}
|
||||
{$row[mysec2][col].text|truncate:100}
|
||||
{/if}
|
||||
{if $row[mysec2][col].url != null}
|
||||
</a>
|
||||
{/if}
|
||||
{/strip}
|
||||
</td>
|
||||
{/section}
|
||||
</tr>
|
||||
{/section}
|
||||
|
@ -48,37 +48,39 @@
|
|||
{/if}
|
||||
|
||||
{if $method == 'html'}
|
||||
{if $count > $show}
|
||||
<div class="navigation">
|
||||
{strip}
|
||||
{if $page > 1}
|
||||
<a href="?{$continuity_params}&page={$page-1}"><</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>
|
||||
{/if}
|
||||
{/strip}
|
||||
<hr />
|
||||
{*
|
||||
<pre>
|
||||
Count: {$count}
|
||||
Page: {$page}
|
||||
Show: {$show}
|
||||
Start: {$start}
|
||||
Max: {$max}
|
||||
TotPage: {$pages}
|
||||
</pre>
|
||||
*}
|
||||
<br />
|
||||
<p><small>Your query returned {$count} reports</small></p>
|
||||
</div>
|
||||
{/if}
|
||||
{if $count > $show}
|
||||
<div class="navigation">
|
||||
{strip}
|
||||
{if $page > 1}
|
||||
<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={$smarty.section.pageLoop.index}" accesskey="n" >Next</a>
|
||||
{/if}
|
||||
{/strip}
|
||||
|
||||
{*
|
||||
<pre>
|
||||
Count: {$count}
|
||||
Page: {$page}
|
||||
Show: {$show}
|
||||
Start: {$start}
|
||||
Max: {$max}
|
||||
TotPage: {$pages}
|
||||
</pre>
|
||||
*}
|
||||
<br />
|
||||
<p><small>Your query returned {$count} reports</small></p>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
Загрузка…
Ссылка в новой задаче