Tweaks to login page template (Closes FS#771) [alk]
[platal.git] / templates / include / tips.tpl
index 27b2ccf..d274923 100644 (file)
 {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}
-  {if !$nochange}
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="" onclick="Ajax.update_html('tod', 'ajax/tips/{$tips.id}'); return false">
-    {icon name=resultset_next title="Astuce suivante"}
-  </a>
-  {/if}
   </legend>
   {tidy}
   {$tips.text|nl2br|smarty:nodefaults}
-  {/tidy} 
+  {/tidy}
+  {if !$nochange}
+  <div class="right">
+    <a href="" onclick="Ajax.update_html('tod', 'ajax/tips/{$tips.id}'); return false" style="text-decoration: none">
+      Astuce suivante {icon name=resultset_next title="Astuce suivante"}
+    </a>
+  </div>
+  {/if}
 {if $full}
 </fieldset>
 {/if}