X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftips.tpl;h=c96b57e9a469ebfe71db9fda691bb6b461e04c84;hb=fe5ccad978199cfbe71c583280b999769a27c9b2;hp=69b106b0108d55813f3e8d1e93985a5879928100;hpb=65de6c24c8d1707009a173c42950be30d3b9eb60;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index 69b106b..c96b57e 100644 --- a/templates/include/tips.tpl +++ b/templates/include/tips.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,12 +20,17 @@ {* *} {**************************************************************************} -{if $tips} -{if $full} +{if t($tips)} +{if t($full)}
{/if} - {icon name=lightbulb} {if !$tips.special} - Astuce : {$tips.titre} + {icon name=lightbulb} {if !t($tips.special)} + Astuce : {$tips.title} + {if hasPerm('admin') && !t($tips.special)} + {if !t($nochange)} + {icon name="page_edit" title="Editer"} + {/if} + {/if} {else} {$tips.titre} {/if} @@ -33,14 +38,14 @@ {tidy} {$tips.text|nl2br|smarty:nodefaults} {/tidy} - {if !$nochange} + {if !t($nochange)} {/if} -{if $full} +{if t($full)}
{/if} {/if}