From 4d71ace3ca32b7afb13d31d06695ae928f94a279 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Tue, 1 Feb 2005 16:53:05 +0000 Subject: [PATCH] at least 1000 times more readable git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-425 --- templates/include/minifiche_pvt.tpl | 69 +++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 37 deletions(-) diff --git a/templates/include/minifiche_pvt.tpl b/templates/include/minifiche_pvt.tpl index 35048b0..4008ae9 100644 --- a/templates/include/minifiche_pvt.tpl +++ b/templates/include/minifiche_pvt.tpl @@ -18,47 +18,42 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************} - -{if !$c.wasinscrit} - {min_auth level="cookie"} - {if !$c.dcd} -
- {if $show_action eq ajouter} - {* - *}Ajouter à la liste de mes surveillances - {else} - {* - *}Retirer de la liste de mes surveillances - {/if} - {perms level='admin'} - {* - *}admin - {* - *}AX - {/perms} -
- {/if} - {/min_auth} -
-{else} - {min_auth level="cookie"}
- {* - *}Afficher la fiche - {* - *}Afficher la carte de visite - {* - *}{if $show_action eq + {min_auth level="cookie"} + {if !$c.wasinscrit} + {if $show_action eq ajouter} + {* + *}Ajouter à la liste de mes surveillances + {else} + {* + *}Retirer de la liste de mes surveillances + {/if} + {elseif !$c.dcd} + {* + *}Afficher la fiche + {* + *}Afficher la carte de visite + {* + *}{if $show_action eq + {/if} + {/min_auth} + {perms level='admin'} - {* - *}admin - {* - *}AX + {if !$c.wasinscrit} + {* + *}admin + {elseif !$c.dcd} + {* + *}admin + {/if} + {* + *}AX {/perms}
- {/min_auth} +
+ {if $c.wasinscrit} {if $c.web || $c.mobile || $c.pays || $c.ville || $c.region || $c.entreprise || $c.freetext} {if $c.web} @@ -96,7 +91,7 @@ {/if}
{/if} + {/if}
-{/if} {* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4