X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftips.tpl;h=532f461a6dff00ad1abdcfcf0771a30c48f0cf29;hb=9891bd15f772caef0c199a98f036e976bf4ab94a;hp=5231aa4a3f2846960e7d755eebc23b57fff0a2c9;hpb=3032cbd8c5126247565d5c7cf7b705903148f476;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index 5231aa4..532f461 100644 --- a/templates/include/tips.tpl +++ b/templates/include/tips.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2006 Polytechnique.org *} +{* Copyright (C) 2003-2009 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -24,19 +24,28 @@ {if $full}
{/if} - {icon name=lightbulb}Astuce : {$tips.titre}      - {if !$nochange} - - {icon name=resultset_next title="Astuce suivante"} - + {icon name=lightbulb} {if !$tips.special} + Astuce : {$tips.titre} + {if hasPerm('admin') && !$tips.special && !$nochange} + {icon name="page_edit" title="Editer"} + {/if} + {else} + {$tips.titre} {/if} {tidy} {$tips.text|nl2br|smarty:nodefaults} - {/tidy} + {/tidy} + {if !$nochange} + + {/if} {if $full}
{/if} {/if} -{* vim:set et sw=2 sts=2 sws=2: *} +{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}