From: Stéphane Jacob Date: Sat, 12 Jul 2008 22:07:12 +0000 (+0200) Subject: Adds anchors in multipage contacts/results so links to other pages of contacts/result... X-Git-Tag: xorg/0.9.17~37 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f8117f76ef267ba9d0d0a5c26f989fe3dee3ed67;p=platal.git 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. --- 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}