projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote branch 'origin/xorg/1.0.2/master' into xorg/master
[platal.git]
/
templates
/
include
/
tips.tpl
diff --git
a/templates/include/tips.tpl
b/templates/include/tips.tpl
index
69b106b
..
8e06ae6
100644
(file)
--- a/
templates/include/tips.tpl
+++ b/
templates/include/tips.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-20
07
Polytechnique.org *}
+{* Copyright (C) 2003-20
10
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-20,12
+20,17
@@
{* *}
{**************************************************************************}
{* *}
{**************************************************************************}
-{if
$tips
}
-{if
$full
}
+{if
t($tips)
}
+{if
t($full)
}
<fieldset id="tod">
{/if}
<fieldset id="tod">
{/if}
- <legend>{icon name=lightbulb} {if !$tips.special}
- Astuce : {$tips.titre}
+ <legend>{icon name=lightbulb} {if !t($tips.special)}
+ Astuce : {$tips.title}
+ {if hasPerm('admin') && !t($tips.special)}
+ {if !t($nochange)}
+ <a href="admin/tips/edit/{$tips.id}">{icon name="page_edit" title="Editer"}</a>
+ {/if}
+ {/if}
{else}
<span style="color: red; font-weight: bold;">{$tips.titre}</span>
{/if}
{else}
<span style="color: red; font-weight: bold;">{$tips.titre}</span>
{/if}
@@
-33,14
+38,14
@@
{tidy}
{$tips.text|nl2br|smarty:nodefaults}
{/tidy}
{tidy}
{$tips.text|nl2br|smarty:nodefaults}
{/tidy}
- {if !
$nochange
}
+ {if !
t($nochange)
}
<div class="right">
<div class="right">
- <a href="
" onclick="Ajax.update_html('tod',
'ajax/tips/{$tips.id}'); return false" style="text-decoration: none">
+ <a href="
events" onclick="$('#tod').updateHtml(
'ajax/tips/{$tips.id}'); return false" style="text-decoration: none">
Astuce suivante {icon name=resultset_next title="Astuce suivante"}
</a>
</div>
{/if}
Astuce suivante {icon name=resultset_next title="Astuce suivante"}
</a>
</div>
{/if}
-{if
$full
}
+{if
t($full)
}
</fieldset>
{/if}
{/if}
</fieldset>
{/if}
{/if}