mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-07 03:59:12 -04:00
style the permission tree a little tighter
This commit is contained in:
@@ -143,6 +143,11 @@
|
||||
color: red;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
ul#permissions ul {
|
||||
margin-left: -1em;
|
||||
list-style-type: none;
|
||||
}
|
||||
</style>
|
||||
<?= html::script("lib/jquery.js") ?>
|
||||
<?= html::script("lib/jquery.cookie.js") ?>
|
||||
@@ -347,10 +352,11 @@
|
||||
<? $current = array_pop($stack); ?>
|
||||
<? if ($current != "CLOSE"): ?>
|
||||
<? $current = $album_tree[$current]; ?>
|
||||
<ul>
|
||||
<ul id="permissions">
|
||||
<li>
|
||||
<span class="understate">(<?= $current->album->id ?>)</span>
|
||||
<?= html::anchor("albums/{$current->album->id}", $current->album->title) ?>
|
||||
»
|
||||
<? foreach (array("view", "edit") as $perm): ?>
|
||||
<? if (access::can(group::EVERYBODY, $perm, $current->album->id)): ?>
|
||||
<?= html::anchor("welcome/deny_perm/0/$perm/{$current->album->id}", strtoupper($perm), array("class" => "allowed")) ?>
|
||||
|
||||
Reference in New Issue
Block a user