diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-26 23:07:37 +0000 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-26 23:07:37 +0000 | 
| commit | 691faa0e83790c0dc40a937f875e3032843d91c3 (patch) | |
| tree | b2efbcc1476e4ad24dade5d856131fe2a5010c67 /core/views/welcome.html.php | |
| parent | 91b1c4cf39c0b9ac6d2a0134bfc771e46d42e3dc (diff) | |
Draw an album tree in the access -> permissions tab.
Diffstat (limited to 'core/views/welcome.html.php')
| -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> | 
