X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fadmin%2Fwiki.tpl;h=40c645b77b695482ad8faf46bc17697fb6815778;hb=ea74d2785d9c1ff5571ebf2f73c89cbf19c8dd07;hp=70c233b5fabef2a1f06163d6637cd1cd028591b4;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/templates/admin/wiki.tpl b/templates/admin/wiki.tpl index 70c233b..40c645b 100644 --- a/templates/admin/wiki.tpl +++ b/templates/admin/wiki.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 *} @@ -35,10 +35,45 @@ } return false; } + var toggle = 0; + function replie(me, cat) { + if (toggle == 1) return; + toggle = 2; + $("tr[@id^=row_"+cat+"_]").hide(); + $(me).attr('src', 'images/k1.gif'); + } + function deplie(me, cat) { + if (toggle == 2) return; + toggle = 1; + $("tr[@id^=row_"+cat+"_]").show(); + $(me).attr('src', 'images/k2.gif'); + } + function toggle_folder() { + me = this; + if ($(this).attr("class") == "wiki_category") + me = $("../img.wiki_root", me)[0]; + var cat=$.trim($(me).parent().text().replace(/(.*)\([0-9]+\)/, "$1")); + if ($(me).attr('src') == "images/k1.gif") { + deplie(me, cat); + } + replie(me, cat); + setTimeout("toggle = 0;", 10); + } + $(document).ready(function() { + $("tr.pair img[@alt=-]").css("cursor","pointer").click(toggle_folder).each(toggle_folder); + $(".wiki_category").css("cursor","pointer").click(toggle_folder); + }); // --> {/literal} + +

+ {icon name=feed title='fil rss'} + {icon name=magnifier} Voir les changements récents +

+
+{xsrf_token_field} {foreach from=$pages item=perm key=page name=pages} - + @@ -86,13 +123,13 @@
@@ -48,7 +83,7 @@ lecture - écriture + écriture action @@ -57,19 +92,19 @@ {foreach from=$wiki_pages key=cat item=pages}
- - - {$cat} + - + {$cat} ({$pages|@count}) {icon name=magnifier title="Changements récents"}
{if $smarty.foreach.pages.last} L {else} | {/if} - {$page} {icon name=page_edit title='éditer'} + {$page}{if $perm.cached}*{/if} {icon name=page_edit title='éditer'} {$perm.read} @@ -78,6 +113,8 @@ {$perm.edit} + {icon name=book_next title='déplacer'} + {icon name=cross title='supprimer'}
{icon name=tick title='tout cocher'} - {icon name=cross title='tout décocher'} + {icon name=cross title='tout décocher'} {icon name=arrow_refresh title='toggle'}
- Attribue les permissions aux pages cochées : + Attribue les permissions aux pages cochées :
-{* vim:set et sw=2 sts=2 sws=2: *} + +

+ * : les pages marquées d'une astérisque sont actuellement disponibles en cache (accès plus rapide) +

+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}