From: <var...@us...> - 2009-03-29 17:04:09
|
Revision: 6737 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6737&view=rev Author: vargenau Date: 2009-03-29 17:04:04 +0000 (Sun, 29 Mar 2009) Log Message: ----------- Add ACL Modified Paths: -------------- trunk/themes/MonoBook/templates/info.tmpl Modified: trunk/themes/MonoBook/templates/info.tmpl =================================================================== --- trunk/themes/MonoBook/templates/info.tmpl 2009-03-28 03:07:56 UTC (rev 6736) +++ trunk/themes/MonoBook/templates/info.tmpl 2009-03-29 17:04:04 UTC (rev 6737) @@ -80,6 +80,16 @@ $tableSummary = fmt("Statistics about %s.", $page->getName()); +$perm_tree = pagePermissions($page->getName()); +list($type, $perm) = pagePermissionsAcl($perm_tree[0], $perm_tree); +if ($type == 'inherited') { + $type = sprintf(_("page permission inherited from %s"), $perm_tree[1][0]); +} elseif ($type == 'page') { + $type = _("individual page permission"); +} elseif ($type == 'default') { + $type = _("default page permission"); +} + ?> <!-- FIXME: move table formatting to css --> @@ -131,6 +141,14 @@ <td align="right"><?= $LOCKED_CB ?></td> <td class="pageinfo"><?=_("Locked")?></td> </tr> + <tr> + <td align="right" class="pageinfo">ACL type</td> + <td><?= $type ?></td> + </tr> + <tr> + <td align="right" valign="top" class="pageinfo">ACL</td> + <td><?= $perm->asAclGroupLines() ?></td> + </tr> <?php } ?> <?php // determine page type @@ -181,38 +199,4 @@ <!-- End debugging buttons --> <?php } ?> - </div> - -<?php -// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// $Log: not supported by cvs2svn $ -// Revision 1.3 2005/08/28 11:04:08 rurban -// fix Article link, reorder Discussion before admin actions, use default SEP in info, custom Sep in actionbar -// -// Revision 1.2 2004/06/14 11:26:49 rurban -// renamed global $Theme to $WikiTheme (gforge nameclash) -// -// Revision 1.1 2004/06/11 09:01:51 rurban -// new MonoBook theme (copied from mediawiki) -// -// Revision 1.2 2004/05/18 14:47:21 rurban -// Simplified strings for easier translation -// -// Revision 1.1 2004/03/01 09:38:01 rurban -// Theme with less buttons and shorter descriptions: -// More behind "Info" -// -// Revision 1.15 2003/12/11 19:38:29 carstenklapp -// Internal change: Fix PHP Warning: Call-time pass-by-reference has been deprecated -// -// Revision 1.14 2003/11/29 20:13:38 carstenklapp -// Internal change: Refactored ByteFormatter code into a new function in -// stdlib (now used by PageList too). -// -// Revision 1.13 2003/02/21 04:24:48 dairiki -// Fix <td> </td> nesting. (Was generating invalid HTML.) -// -// Revision 1.12 2003/01/11 22:54:28 carstenklapp -// Added Page type field displayed for special pages. -// -?> +</div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |