source: trunk/server/www/app/views/galleries/view.ctp @ 298

Last change on this file since 298 was 298, checked in by sander, 11 years ago

Show abbreviated tree on large galleries

File size: 1.4 KB
Line 
1<div class="galleries view">
2        <h2>
3                <?php
4                        foreach ($path as $parent) {
5                                echo $html->link($parent['Gallery']['name'], array('action' => 'view', $parent['Gallery']['slug']));
6                                echo ' / ';
7                        }
8                        echo $gallery['Gallery']['name'];
9                ?>
10        </h2>
11        <?php echo $gallery['Gallery']['description_html'];?>
12</div>
13
14<div id="gallery-results" class="related">
15        <h2><?php __('Documents');?></h2>
16        <table cellpadding = "0" cellspacing = "0">
17        <tr>
18                <th><?php __('File'); ?></th>
19                <th><?php __('Validators'); ?></th>
20                <?php if ($abbreviate): ?>
21                        <th><?php __('Jobs'); ?></th>
22                <?php endif; ?>
23                <th><?php __('Created'); ?></th>
24                <th><?php __('State'); ?></th>
25                <?php if ($access):?><th class="actions"><?php __('Actions'); ?></th><?php endif;?>
26        </tr>
27        <?php echo $this->element('gallery', array('gallery' => $gallery, 'indent' => 0)); ?>
28        </table>
29</div>
30
31<?php if ($access):?>
32        <div class="actions">
33                <ul>
34                        <li><?php echo $html->link(__('Add a document', true), array('action'=>'add_document', $gallery['Gallery']['slug'])); ?> </li>
35                        <li><?php echo $html->link(__('Edit this gallery', true), array('action'=>'edit', $gallery['Gallery']['slug'])); ?> </li>
36                        <li><?php echo $html->link(__('Delete this gallery', true), array('action'=>'delete', $gallery['Gallery']['slug']), null, sprintf(__('Are you sure you want to delete "%s"?', true), $gallery['Gallery']['name'])); ?> </li>
37                </ul>
38        </div>
39<?php endif;?>
Note: See TracBrowser for help on using the repository browser.