| 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 foreach($applications as $application):?> |
|---|
| 21 | <th> |
|---|
| 22 | <?php |
|---|
| 23 | if ($application['Application']['icon']) { |
|---|
| 24 | echo $html->image('/img/icons/applications/' . $application['Application']['icon']); |
|---|
| 25 | echo '<br />' . $application['Application']['version']; |
|---|
| 26 | } else { |
|---|
| 27 | echo $application['Application']['name'] . '<br />' . $application['Application']['version']; |
|---|
| 28 | } |
|---|
| 29 | ?> |
|---|
| 30 | </th> |
|---|
| 31 | <?php endforeach;?> |
|---|
| 32 | <th><?php __('Other');?></th> |
|---|
| 33 | <?php if ($access):?><th class="actions"><?php __('Actions'); ?></th><?php endif;?> |
|---|
| 34 | </tr> |
|---|
| 35 | <?php echo $this->element('testsuite', array('gallery' => $gallery, 'indent' => 0)); ?> |
|---|
| 36 | </table> |
|---|
| 37 | </div> |
|---|
| 38 | |
|---|
| 39 | <?php if ($access):?> |
|---|
| 40 | <div class="actions"> |
|---|
| 41 | <ul> |
|---|
| 42 | <li><?php echo $html->link(__('Add a document', true), array('action'=>'add_document', $gallery['Gallery']['slug'])); ?> </li> |
|---|
| 43 | <li><?php echo $html->link(__('Edit this gallery', true), array('action'=>'edit', $gallery['Gallery']['slug'])); ?> </li> |
|---|
| 44 | <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> |
|---|
| 45 | </ul> |
|---|
| 46 | </div> |
|---|
| 47 | <?php endif;?> |
|---|