X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftips.tpl;h=8e06ae61bc63bd7d17d79bb722e01d78535794c0;hb=6a686adb39d65e4472497f4ce69f0314085cead3;hp=334fdbf3406f8d9514ff9a0af9f14c830d818761;hpb=08fa70684fd1332178cddb6b318151335fb4506c;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index 334fdbf..8e06ae6 100644 --- a/templates/include/tips.tpl +++ b/templates/include/tips.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,15 +20,17 @@ {* *} {**************************************************************************} -{if $tips} -{if $full} +{if t($tips)} +{if t($full)}
{/if} - {icon name=lightbulb} {if !$tips.special} - Astuce : {$tips.titre} - {if hasPerm('admin') && !$tips.special && !$nochange} + {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} @@ -36,14 +38,14 @@ {tidy} {$tips.text|nl2br|smarty:nodefaults} {/tidy} - {if !$nochange} + {if !t($nochange)} {/if} -{if $full} +{if t($full)}
{/if} {/if}