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

Commit

Permalink
A few minor changes
Browse files Browse the repository at this point in the history
- Displays a dashboard notification about the new restore functionality
- Displays the current director connected to in bottom bar
- Removes signed in text from top navbar
- Displays Module and current director as page title
  • Loading branch information
fbergkemper committed Sep 8, 2015
1 parent 65ae746 commit 1b476de
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 9 additions & 3 deletions module/Application/view/layout/layout.phtml
Expand Up @@ -32,7 +32,7 @@ echo $this->doctype();

<head>
<meta charset="utf-8">
<?php echo $this->headTitle('Bareos','PREPEND')->setSeparator(' - ')->setAutoEscape(false) ?>
<?php echo $this->headTitle($_SESSION['bareos']['director'],'APPEND')->setSeparator(' | ')->setAutoEscape(false) ?>

<?php echo $this->headMeta()
->appendName('viewport', 'width=device-width, initial-scale=1.0')
Expand Down Expand Up @@ -78,7 +78,6 @@ echo $this->doctype();
<div class="collapse navbar-collapse">
<?php echo $this->navigation('navigation')->menu()->setMinDepth(0)->setMaxDepth(0)->setUlClass('nav navbar-nav'); ?>
<ul class="nav navbar-nav navbar-right">
<li class="navbar-text">Signed in as:</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
Expand All @@ -99,7 +98,14 @@ echo $this->doctype();

<footer class="footer">
<div class="container">
<p class="text-muted">Bareos WebUI Version 15.2.0 &copy; 2013 - <?php echo date('Y') ?> <a href="http://www.bareos.com/" target="_blank">Bareos GmbH &amp; Co. KG</a>, GNU Affero General Public License Version 3</p>
<div class="row">
<div class="col-md-8">
<p class="text-muted">Bareos WebUI Version 15.2.0 &copy; 2013 - <?php echo date('Y') ?> <a href="http://www.bareos.com/" target="_blank">Bareos GmbH &amp; Co. KG</a>, GNU Affero General Public License Version 3</p>
</div>
<div class="col-md-4 text-right">
<p class="text-muted"><?php echo "Director: " . $_SESSION['bareos']['director']; ?></p>
</div>
</div>
</div>
</footer>

Expand Down
7 changes: 7 additions & 0 deletions module/Dashboard/view/dashboard/dashboard/index.phtml
Expand Up @@ -77,6 +77,13 @@ $this->headTitle($title);

</div>

<div class="col-md-4">
<div class="alert alert-dismissable alert-warning" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
Heads up! You are now able to <a href="<?php echo $this->url('restore', array()); ?>" class="alert-link"><?php echo $this->translate("restore"); ?></a> your files via the webui.
</div>
</div>

</div>

<script type="text/javascript">
Expand Down

0 comments on commit 1b476de

Please sign in to comment.