X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Finclude%2Ftips.tpl;h=334fdbf3406f8d9514ff9a0af9f14c830d818761;hb=756ff73fbb0cdd01cce2eda27ba18e1cc99bd735;hp=27b2ccff5f8b72b43c7957cae4a0e3944919519e;hpb=6ce5dee4a8ab767a1a8606eee566d1ae94441275;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index 27b2ccf..334fdbf 100644 --- a/templates/include/tips.tpl +++ b/templates/include/tips.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2008 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}