From f8117f76ef267ba9d0d0a5c26f989fe3dee3ed67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 13 Jul 2008 00:07:12 +0200 Subject: [PATCH] Adds anchors in multipage contacts/results so links to other pages of contacts/results point to the top of list and not to the top of the page. --- templates/core/plset.tpl | 4 ++-- templates/include/plview.multipage.tpl | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/core/plset.tpl b/templates/core/plset.tpl index 75a8628..a0e4de1 100644 --- a/templates/core/plset.tpl +++ b/templates/core/plset.tpl @@ -20,7 +20,7 @@ {* *} {**************************************************************************} -
+

{$plset_mods[$plset_mod]} {if $plset_mods|@count > 1}[ @@ -28,7 +28,7 @@ {foreach from=$plset_mods key=mod item=desc name=mods} {if $mod neq $plset_mod} {if $has_prev}| {/if} - {$desc} + {$desc} {assign var=has_prev value=true} {/if} {/foreach} diff --git a/templates/include/plview.multipage.tpl b/templates/include/plview.multipage.tpl index 4a44961..a7ca6f4 100644 --- a/templates/include/plview.multipage.tpl +++ b/templates/include/plview.multipage.tpl @@ -25,8 +25,8 @@
{if $show_bounds}[{$first} - {$last}] {/if} {if $plview->page neq 1} - {icon name=resultset_first title="Première page"}{* - *}{icon name=resultset_previous title="Page précédente"} + {icon name=resultset_first title="Première page"}{* + *}{icon name=resultset_previous title="Page précédente"} {else} {icon name=null title=""}{icon name=null title=""} {/if} @@ -34,12 +34,12 @@ {if $smarty.section.page.index eq $plview->page} {$plview->page} {else} - {$smarty.section.page.index} + {$smarty.section.page.index} {/if} {/section} {if $plview->page neq $plview->pages} - {icon name=resultset_next title="Page suivante"}{* - *}{icon name=resultset_last title="Dernière page"} + {icon name=resultset_next title="Page suivante"}{* + *}{icon name=resultset_last title="Dernière page"} {else} {icon name=null title=""}{icon name=null title=""} {/if} @@ -55,12 +55,12 @@ [ {if $name eq $order} tri ascendant - {$sort.desc} + {$sort.desc} {elseif $order eq "-$name"} tri ascendant - {$sort.desc} + {$sort.desc} {else} - {$sort.desc} + {$sort.desc} {/if} ]  {/foreach} -- 2.1.4