X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftips.tpl;h=c96b57e9a469ebfe71db9fda691bb6b461e04c84;hb=fe5ccad978199cfbe71c583280b999769a27c9b2;hp=5231aa4a3f2846960e7d755eebc23b57fff0a2c9;hpb=3032cbd8c5126247565d5c7cf7b705903148f476;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index 5231aa4..c96b57e 100644 --- a/templates/include/tips.tpl +++ b/templates/include/tips.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2006 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,23 +20,34 @@ {* *} {**************************************************************************} -{if $tips} -{if $full} +{if t($tips)} +{if t($full)}
{/if} - {icon name=lightbulb}Astuce : {$tips.titre}      - {if !$nochange} - - {icon name=resultset_next title="Astuce suivante"} - + {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} {tidy} {$tips.text|nl2br|smarty:nodefaults} - {/tidy} -{if $full} + {/tidy} + {if !t($nochange)} + + {/if} +{if t($full)}
{/if} {/if} -{* vim:set et sw=2 sts=2 sws=2: *} +{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}