X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftips.tpl;h=32e2d58d891116eb0c4f8274a814e9369075d72a;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=43b8b3a9d52e85be9558420533c134af89e31261;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index 43b8b3a..32e2d58 100644 --- a/templates/include/tips.tpl +++ b/templates/include/tips.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -24,16 +24,25 @@ {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.title} + {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}