X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftips.tpl;h=cba139f70c0e17c255ac9cbcc9073311df4b219d;hb=74ce6c78a70c1eee0e90fc04fa755f30926d1493;hp=ce95b220f627e8287889e4b39e9dc18986bee1bc;hpb=dc767839c54aa6d6d2910da5b818b43c5306cfc3;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index ce95b22..cba139f 100644 --- a/templates/include/tips.tpl +++ b/templates/include/tips.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2006 Polytechnique.org *} +{* Copyright (C) 2003-2007 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -24,17 +24,28 @@ {if $full}
{/if} - {icon name=lightbulb}Astuce : {$tips.titre}      - - {icon name=resultset_next title="Astuce suivante"} - + {icon name=lightbulb} {if !$tips.special} + Astuce : {$tips.titre} + {if $smarty.session.perms->hasFlag('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: *}