Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
dashboard collapsable job listings
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Dec 17, 2013
1 parent e310c59 commit 03db300
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
32 changes: 22 additions & 10 deletions module/Dashboard/view/dashboard/dashboard/index.phtml
Expand Up @@ -92,10 +92,14 @@ $flash->setMessageOpenFormat('
<div class="panel panel-info">

<div class="panel-heading">
<h3 class="panel-title"><?php echo $this->translate('Running jobs') ?></h3>
<h3 class="panel-title">
<span class="glyphicon glyphicon-list"></span>
<a data-toggle="collapse" href="#collapseRunning"><?php echo $this->translate('Running jobs') ?></a>
<span class="caret"></span>
</h3>
</div>

<div class="panel-body">
<div class="panel-body panel-collapse collapse out" id="collapseRunning">

<table class="table table-striped table-hover" style="font-size: 9pt;">

Expand All @@ -106,7 +110,7 @@ $flash->setMessageOpenFormat('
<th>Type</th>
<th>Level</th>
<th>Start</th>
<th>Duration</th>
<!-- <th>Duration</th> -->
<th>Status</th>
<th>Log</th>
</tr>
Expand All @@ -121,7 +125,7 @@ $flash->setMessageOpenFormat('
<td><?php echo $this->printJobType($item->type); ?></td>
<td><?php echo $this->printJobLevel($item->level); ?></td>
<td><?php echo $this->escapeHtml($item->starttime); ?></td>
<td><?php echo $this->printJobDuration($item->starttime, $item->endtime); ?></td>
<!-- <td><?php echo $this->printJobDuration($item->starttime, $item->endtime); ?></td> -->
<td><?php echo $this->printJobStatus($item->jobstatus); ?></td>
<td><a href="<?php echo $this->url('log', array('action' => 'job', 'id' => $item->jobid)); ?>"><span class="glyphicon glyphicon-file"></a></td>

Expand Down Expand Up @@ -157,10 +161,14 @@ $flash->setMessageOpenFormat('
<div class="panel panel-default">

<div class="panel-heading">
<h3 class="panel-title"><?php echo $this->translate('Waiting jobs') ?></h3>
<h3 class="panel-title">
<span class="glyphicon glyphicon-list"></span>
<a data-toggle="collapse" href="#collapseWaiting"><?php echo $this->translate('Waiting jobs') ?></a>
<span class="caret"></span>
</h3>
</div>

<div class="panel-body">
<div class="panel-body panel-collapse collapse out" id="collapseWaiting">

<table class="table table-striped table-hover" style="font-size: 9pt;">

Expand All @@ -171,7 +179,7 @@ $flash->setMessageOpenFormat('
<th>Type</th>
<th>Level</th>
<th>Start</th>
<th>Duration</th>
<!-- <th>Duration</th> -->
<th>Status</th>
<th>Log</th>
</tr>
Expand All @@ -186,7 +194,7 @@ $flash->setMessageOpenFormat('
<td><?php echo $this->printJobType($item->type); ?></td>
<td><?php echo $this->printJobLevel($item->level); ?></td>
<td><?php echo $this->escapeHtml($item->starttime); ?></td>
<td><?php echo $this->printJobDuration($item->starttime, $item->endtime); ?></td>
<!-- <td><?php echo $this->printJobDuration($item->starttime, $item->endtime); ?></td> -->
<td><?php echo $this->printJobStatus($item->jobstatus); ?></td>
<td><a href="<?php echo $this->url('log', array('action' => 'job', 'id' => $item->jobid)); ?>"><span class="glyphicon glyphicon-file"></a></td>

Expand Down Expand Up @@ -222,10 +230,14 @@ $flash->setMessageOpenFormat('
<div class="panel panel-danger">

<div class="panel-heading">
<h3 class="panel-title"><?php echo $this->translate('Unsuccessful jobs (last 24 hours)') ?></h3>
<h3 class="panel-title">
<span class="glyphicon glyphicon-list"></span>
<a data-toggle="collapse" href="#collapseUnsuccessful"><?php echo $this->translate('Unsuccessful jobs (last 24 hours)') ?></a>
<span class="caret"></span>
</h3>
</div>

<div class="panel-body">
<div class="panel-body panel-collapse collapse out" id="collapseUnsuccessful">

<table class="table table-striped table-hover" style="font-size: 9pt;">

Expand Down
3 changes: 2 additions & 1 deletion module/Job/src/Job/Model/JobTable.php
Expand Up @@ -84,7 +84,8 @@ public function getWaitingJobs()
jobstatus = 'c' OR
jobstatus = 'd' OR
jobstatus = 't' OR
jobstatus = 'p'");
jobstatus = 'p' OR
jobstatus = 'C'");

$resultSet = $this->tableGateway->selectWith($select);

Expand Down

0 comments on commit 03db300

Please sign in to comment.