Merge commit 'origin/master' into fusionax
[platal.git] / templates / include / tips.tpl
index b1867bc..334fdbf 100644 (file)
@@ -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  *}
 {if $full}
 <fieldset id="tod">
 {/if}
-  <legend>{icon name=lightbulb}{if !$tips.special}
+  <legend>{icon name=lightbulb} {if !$tips.special}
     Astuce&nbsp;: {$tips.titre}
+    {if hasPerm('admin') && !$tips.special && !$nochange}
+    <a href="admin/tips/edit/{$tips.id}">{icon name="page_edit" title="Editer"}</a>
+    {/if}
   {else}
     <span style="color: red; font-weight: bold;">{$tips.titre}</span>
   {/if}