diff options
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/welcome.html.php | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php index 70e9eb19..c0f27d3b 100644 --- a/core/views/welcome.html.php +++ b/core/views/welcome.html.php @@ -306,9 +306,25 @@ </div> <div id="access_permissions" class="activity"> - <p> - <i>Nothing yet</i> - </p> + <? if ($album_tree): ?> + <? $stack = array(1); // hardcoded to the root album ?> + <? while ($stack): ?> + <? $current = array_pop($stack); ?> + <? if ($current != "CLOSE"): ?> + <? $current = $album_tree[$current]; ?> + <ul> + <li> + <?= $current->album->title ?> + <? $stack[] = "CLOSE"; ?> + <? if ($current->children): ?> + <? $stack = array_merge($stack, $current->children) ?> + <? endif ?> + <? else: ?> + </li> + </ul> + <? endif ?> + <? endwhile ?> + <? endif ?> </div> </div> |