summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event
diff options
context:
space:
mode:
authorBjörn Geiger2011-07-05 18:16:39 +0200
committerBjörn Geiger2011-07-05 18:16:39 +0200
commit066a879a783a69d00c283ccc630878281cf9bddd (patch)
tree555875406b4013ee9876a6878a7754924265acce /application/views/scripts/event
parentminor (diff)
downloadpoolctrl-066a879a783a69d00c283ccc630878281cf9bddd.tar.gz
poolctrl-066a879a783a69d00c283ccc630878281cf9bddd.tar.xz
poolctrl-066a879a783a69d00c283ccc630878281cf9bddd.zip
minor
Diffstat (limited to 'application/views/scripts/event')
-rw-r--r--application/views/scripts/event/index.phtml16
1 files changed, 8 insertions, 8 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 4de3771..4f93671 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -43,15 +43,14 @@ if(count($this->eventlist)>0) {
?>
<?php
- foreach ($this->eventlist as $pool => $poolEvents):
- if(count($poolEvents)==0) {
+ foreach ($this->eventlist as $pool => $poolEvents): ?>
+ <div id='pool<?php echo $poolEvents[0]['pbs_poolID'] ?>' style='display:none;' >
+ <h2><?php echo $pool; ?></h2>
+ <?php if(count($poolEvents)==0) {
echo "This Pool hasn't events yet";
break;
- }
-?>
- <div id='pool<?php echo $poolEvents[0]['pbs_poolID'] ?>' style='display:none;' >
- <h2><?php echo $pool; ?></h2>
- <?php foreach ($poolEvents as $event): ?>
+ } else { ?>
+ <?php foreach ($poolEvents as $event): ?>
<div class='element'>
<div class='content'>
<div class='actions'>
@@ -110,7 +109,8 @@ if(count($this->eventlist)>0) {
</div>
</div>
<div class='clear'></div>
- <?php endforeach ?>
+ <?php endforeach ?>
+ <?php } ?>
</div>
<?php endforeach ?>
<?php } ?>