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

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

Recursively import testsuites into recusrive galleries

File size: 1.3 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                <th><?php __('Created'); ?></th>
21                <th><?php __('State'); ?></th>
22                <?php if ($access):?><th class="actions"><?php __('Actions'); ?></th><?php endif;?>
23        </tr>
24        <?php echo $this->element('gallery', array('gallery' => $gallery, 'indent' => 0)); ?>
25        </table>
26</div>
27
28<?php if ($access):?>
29        <div class="actions">
30                <ul>
31                        <li><?php echo $html->link(__('Add a document', true), array('action'=>'add_document', $gallery['Gallery']['slug'])); ?> </li>
32                        <li><?php echo $html->link(__('Edit this gallery', true), array('action'=>'edit', $gallery['Gallery']['slug'])); ?> </li>
33                        <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>
34                </ul>
35        </div>
36<?php endif;?>
Note: See TracBrowser for help on using the repository browser.