X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftips.tpl;h=334fdbf3406f8d9514ff9a0af9f14c830d818761;hb=43cddb05b858dfc532ae3c1a3621a0acce616f00;hp=f1a0cea77d93b093611b68a57c1f20dfd098f9af;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index f1a0cea..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,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: *}