X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftips.tpl;h=f7bbd8e2fe2a36028fb892d70cc0a17c1ee6bb05;hb=5991ff1d920ff7503335d273f4c92054f9ba17d6;hp=27b2ccff5f8b72b43c7957cae4a0e3944919519e;hpb=6ce5dee4a8ab767a1a8606eee566d1ae94441275;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index 27b2ccf..f7bbd8e 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,20 +24,25 @@ {if $full}
{/if} - {icon name=lightbulb}{if !$tips.special} + {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} - {if !$nochange} -       - {icon name=resultset_next title="Astuce suivante"} - - {/if} {tidy} {$tips.text|nl2br|smarty:nodefaults} - {/tidy} + {/tidy} + {if !$nochange} + + {/if} {if $full}
{/if}