projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'xorg/maint' into xorg/master
[platal.git]
/
templates
/
platal
/
review.tpl
diff --git
a/templates/platal/review.tpl
b/templates/platal/review.tpl
index
c43d65e
..
b233c27
100644
(file)
--- a/
templates/platal/review.tpl
+++ b/
templates/platal/review.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-20
07
Polytechnique.org *}
+{* Copyright (C) 2003-20
11
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,8
+20,18
@@
{* *}
{**************************************************************************}
{* *}
{**************************************************************************}
-<div>
- {include wiki=$article}
+
+{if $cacheExists}
+{include wiki=$article}
+{if hasPerm('admin')}
+<div class="center">
+ <a href="{$article|replace:'.':'/'}?action=edit">{icon name="page_edit" title="Editer la page"} Mettre à jour la page</a>
</div>
</div>
+{/if}
+{elseif hasPerm('admin')}
+La page wiki associée n'existe pas. <a href="{$article|replace:'.':'/'}?action=edit">Il faut l'éditer</a>.
+{else}
+<p class="erreur">La page n'existe pas</p>
+{/if}
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}