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

Commit

Permalink
Merge pull request #36 from fbergkemper/master
Browse files Browse the repository at this point in the history
some other quick fixes
  • Loading branch information
frabdev committed Aug 27, 2014
2 parents da93789 + f97eef1 commit f79f1c0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions module/Application/view/layout/layout.phtml
Expand Up @@ -90,9 +90,9 @@ echo $this->doctype();
</div>
</div>
</nav>

<div class="container">

<div class="container">

<?php echo $this->content; ?>

<hr />
Expand Down
16 changes: 12 additions & 4 deletions module/Client/view/client/client/details.phtml
Expand Up @@ -27,8 +27,19 @@ $this->headTitle($title);
<tr><td><b>Autoprune</b></td><td><?php echo $this->escapeHtml($client->autoprune); ?></td></tr>
<tr><td><b>Fileretention</b></td><td><?php echo $this->printRetention($client->fileretention) . " days"; ?></td></tr>
<tr><td><b>Jobretention</b></td><td><?php echo $this->printRetention($client->jobretention) . " days"; ?></td></tr>
<tr><td><b>Last successful backup</b></td><td><a href="<?php echo $this->url('job', array('action'=>'details', 'id' => $job->jobid)); ?>" title="<?php echo $job->endtime; ?>"><?php echo $this->printHumanReadableTimeperiod($job->endtime, "fuzzy")?> (Level: <?php echo $this->printJobLevel($job->level); ?>)</a></td></tr>

<tr>
<td><b>Last successful backup</b></td>
<td>
<?php if($job==null) : ?> never
<?php elseif($job!=null) : ?>
<a href="<?php echo $this->url('job', array('action'=>'details', 'id' => $job->jobid)); ?>" title="<?php echo $job->endtime; ?>"><?php echo $this->printHumanReadableTimeperiod($job->endtime, "fuzzy")?> (Level: <?php echo $this->printJobLevel($job->level); ?>)</a>
<?php endif; ?>
</td>
</tr>

<!-- <tr><td><b>Online status</b></td><td></td></tr> -->

</table>

</div>
Expand Down Expand Up @@ -72,6 +83,3 @@ $this->headTitle($title);
</div>
<!-- bconsoleOutput end -->

</div>

</div>
4 changes: 3 additions & 1 deletion module/Job/src/Job/Model/JobTable.php
Expand Up @@ -487,7 +487,9 @@ public function getLastSuccessfulClientJob($id)
$row = $rowset->current();

if(!$row) {
throw new \Exception("Could not find row $jobid");
// Note: If there is no record, a job for this client was never executed.
// Exception: throw new \Exception("Could not find row $jobid");
$row = null;
}

return $row;
Expand Down

0 comments on commit f79f1c0

Please sign in to comment.