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

Commit

Permalink
[Feature] Flash messages
Browse files Browse the repository at this point in the history
Added more flash messages to dashboard.
  • Loading branch information
fbergkemper committed Nov 20, 2013
1 parent e29b7c9 commit f832fb1
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions module/Dashboard/view/dashboard/dashboard/index.phtml
Expand Up @@ -5,7 +5,7 @@ $this->headTitle($title);

?>

<h2><?php echo $title; ?></h2>
<h2><?php echo $this->translate($title); ?></h2>
<hr />

<script type="text/javascript">
Expand Down Expand Up @@ -82,6 +82,38 @@ $flash->setMessageOpenFormat('

?>

<!-- RUNNING JOBS -->
<?php if(count($this->runningJobs) > 0) : ?>

<?php
// TODO
?>

<?php elseif(count($this->runningJobs) == 0) : ?>
<div class="alert alert-dismissable alert-info">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<ul>
<li><?php echo $this->translate("Currently, there are no jobs running."); ?></li>
</ul>
</div>
<?php endif; ?>

<!-- WAITING JOBS -->
<?php if(count($this->waitingJobs) > 0) : ?>

<?php
// TODO
?>

<?php elseif(count($this->waitingJobs) == 0) : ?>
<div class="alert alert-dismissable alert-info">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<ul>
<li><?php echo $this->translate("Currently, there are no jobs waiting."); ?></li>
</ul>
</div>
<?php endif; ?>

<!-- UNSUCCESSFUL JOBS -->
<?php if(count($this->lastUnsuccessfulJobs) > 0) : ?>

Expand Down Expand Up @@ -143,7 +175,7 @@ $flash->setMessageOpenFormat('
<div class="alert alert-dismissable alert-info">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<ul>
<li>No unsuccessful jobs during the last 24 hours!</li>
<li><?php echo $this->translate("No unsuccessful jobs during the last 24 hours!"); ?></li>
</ul>
</div>

Expand Down Expand Up @@ -211,7 +243,7 @@ $flash->setMessageOpenFormat('
<div class="alert alert-dismissable alert-info">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<ul>
<li>No successful jobs during the last 24 hours!</li>
<li><?php echo $this->translate("No successful jobs during the last 24 hours!"); ?></li>
</ul>
</div>

Expand Down

0 comments on commit f832fb1

Please sign in to comment.