1 | <?php foreach ($gallery['children'] as $child):?> |
---|
2 | <tr class="subgallery"> |
---|
3 | <td class="subgallery-name" style="padding-left: <?php echo $indent;?>em"><?php echo $html->link($child['Gallery']['name'] . '/', array('action' => 'view', $child['Gallery']['slug']));?></td> |
---|
4 | <td> </td> |
---|
5 | <?php if ($abbreviate): ?> |
---|
6 | <td>-</td> |
---|
7 | <?php endif; ?> |
---|
8 | <td>-</td> |
---|
9 | <td>-</td> |
---|
10 | <?php if ($access):?><td> </td><?php endif;?> |
---|
11 | </tr> |
---|
12 | <?php echo $this->element('gallery', array('gallery' => $child, 'indent' => $indent + 2)); ?> |
---|
13 | <?php endforeach;?> |
---|
14 | |
---|
15 | <?php if (isset($gallery['Request']) && is_array($gallery['Request'])):?> |
---|
16 | <?php foreach ($gallery['Request'] as $request):?> |
---|
17 | <tr class="request"> |
---|
18 | <td class="request-name" style="padding-left: <?php echo $indent;?>em"> |
---|
19 | <?php echo $html->link($request['filename'], array('controller'=> 'requests', 'action'=>'view', $request['id'])); ?> |
---|
20 | </td> |
---|
21 | <td><?php foreach ($request['Validator'] as $validator) { echo $validatorModel->getStateIcon($validator) . ' '; } ?></td> |
---|
22 | <?php if ($abbreviate): ?> |
---|
23 | <td> |
---|
24 | <?php echo $request['result_count'] . '/' . $request['job_count']; ?> |
---|
25 | </td> |
---|
26 | <?php endif; ?> |
---|
27 | <td><?php echo $request['created'];?></td> |
---|
28 | <td><?php echo $requestModel->getState($request); ?></td> |
---|
29 | <?php if ($access):?> |
---|
30 | <td class="actions"> |
---|
31 | <?php echo $html->link(__('Remove', true), array('action' => 'remove_document', $gallery['Gallery']['slug'], $request['id'])); ?> |
---|
32 | </td> |
---|
33 | <?php endif;?> |
---|
34 | </tr> |
---|
35 | <?php if (!$abbreviate): ?> |
---|
36 | <?php foreach ($request['Job'] as $job):?> |
---|
37 | <tr class="result<?php if (!$job['Result'] || !$job['Result']['id']) { echo ' expired'; } ?>"> |
---|
38 | <td class="job-name" style="padding-left: <?php echo $indent + 2;?>em"> |
---|
39 | <?php |
---|
40 | echo $jobModel->getFormatIcon($job); |
---|
41 | if ($job['Result'] && $job['Result']['id']) { |
---|
42 | echo $html->link($job['Application']['name'] . ' ' . $job['version'] . ' (' . $job['Platform']['name'] . ')', array('controller'=> 'results', 'action'=>'view', $job['Result']['id'])); |
---|
43 | } else { |
---|
44 | echo $job['Application']['name'] . ' ' . $job['version'] . ' (' . $job['Platform']['name'] . ')'; |
---|
45 | } |
---|
46 | ?> |
---|
47 | </td> |
---|
48 | <td> |
---|
49 | <?php |
---|
50 | if (isset($job['Result']['Validator'])) { |
---|
51 | foreach ($job['Result']['Validator'] as $validator) { |
---|
52 | echo $validatorModel->getStateIcon($validator) . ' '; |
---|
53 | } |
---|
54 | } |
---|
55 | ?> |
---|
56 | </td> |
---|
57 | <td><?php echo isset($job['Result']['created']) ? $job['Result']['created'] : $job['created']; ?></td> |
---|
58 | <td><?php echo $jobModel->getState($job, $request['state']); ?></td> |
---|
59 | <?php if ($access):?> |
---|
60 | <td class="actions"> </td> |
---|
61 | <?php endif;?> |
---|
62 | </tr> |
---|
63 | <?php endforeach; ?> |
---|
64 | <?php endif; ?> |
---|
65 | <?php endforeach; ?> |
---|
66 | <?php endif; ?> |
---|