|
From: <var...@us...> - 2009-03-22 14:04:23
|
Revision: 6684
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6684&view=rev
Author: vargenau
Date: 2009-03-22 14:04:19 +0000 (Sun, 22 Mar 2009)
Log Message:
-----------
Add ACL to PageInfo
Modified Paths:
--------------
trunk/themes/default/templates/info.tmpl
Modified: trunk/themes/default/templates/info.tmpl
===================================================================
--- trunk/themes/default/templates/info.tmpl 2009-03-22 11:31:45 UTC (rev 6683)
+++ trunk/themes/default/templates/info.tmpl 2009-03-22 14:04:19 UTC (rev 6684)
@@ -73,6 +73,15 @@
$tableSummary = fmt("Statistics about %s.", $page->getName());
$Sep = $WikiTheme->getButtonSeparator();
+$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 = _("invidual page permission");
+} elseif ($type == 'default') {
+ $type = _("default page permission");
+}
?>
<!-- FIXME: move table formatting to css -->
@@ -117,7 +126,7 @@
</tr>
<?php } ?>
<tr>
- <td align="right" valign="top" class="pageinfo"><?= $label['summary'] ?></td>
+ <td align="right" nowrap="nowrap" valign="top" class="pageinfo"><?= $label['summary'] ?></td>
<td><?= $summary ?></td>
</tr>
<?php if ($is_current) { ?>
@@ -125,6 +134,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->asAclLines() ?></td>
+ </tr>
<?php } ?>
<?php // determine page type
@@ -155,33 +172,3 @@
<?php } ?>
</table>
-
-<?php
-// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-// $Log: not supported by cvs2svn $
-// Revision 1.19 2007/01/02 13:30:36 rurban
-// bring in revision, use fixed summary height
-//
-// Revision 1.18 2005/02/02 19:02:10 rurban
-// link author
-//
-// Revision 1.17 2004/06/14 11:26:52 rurban
-// renamed global $Theme to $WikiTheme (gforge nameclash)
-//
-// Revision 1.16 2004/05/18 14:47:21 rurban
-// Simplified strings for easier translation
-//
-// 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.
-//
-?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|