Skip to content

Commit

Permalink
webui: promote subscription approach
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper authored and pstorz committed Jan 25, 2019
1 parent 164e805 commit abb605c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
13 changes: 13 additions & 0 deletions webui/module/Application/view/layout/layout.phtml
Expand Up @@ -26,6 +26,13 @@

echo $this->doctype();

include 'version.php';

if($bareos_vendorsupport_status)
$support_status = '';
else
$support_status = '<a href="https://www.bareos.com/" title="https://www.bareos.com/en/Subscription.html" target="_blank"><span class="alert alert-info"><strong>Note: </strong>Please get a subscription for maintained and supported packages, thank you.</span></a>';

?>

<html lang="en">
Expand Down Expand Up @@ -83,6 +90,12 @@ 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="dropdown">
<?php echo $support_status; ?>
</li>
<li class="dropdown">
<a href="#" title="<?php echo $bareos_vendorsupport_message; ?>"><?php echo 'Version: ' . $bareos_full_version; ?></a>
</li>
<li class="dropdown">
<?php echo $this->UpdateAlert($_SESSION['bareos']['product-updates-status'],$_SESSION['bareos']['dird-update-available']); ?>
</li>
Expand Down
6 changes: 5 additions & 1 deletion webui/module/Application/view/layout/login.phtml
Expand Up @@ -71,7 +71,11 @@ echo $this->doctype();
<br /><br /><br />
<?php echo $this->content; ?>
<br />
<p class="text-muted">Bareos WebUI <?php echo $bareos_full_version; ?> &copy; 2013 - <?php echo date('Y') ?> <a href="http://www.bareos.com/" target="_blank">Bareos GmbH &amp; Co. KG</a>,<br />GNU Affero General Public License Version 3</p>
<p class="text-muted">
<?php echo $bareos_vendorsupport_message; ?><br />
Version <?php echo $bareos_full_version; ?> &copy; 2013 - <?php echo date('Y') ?> <a href="http://www.bareos.com/" target="_blank">Bareos GmbH &amp; Co. KG</a>,<br />
GNU Affero General Public License Version 3
</p>
</div>

<?php echo $this->inlineScript() ?>
Expand Down
4 changes: 4 additions & 0 deletions webui/version.php.in
@@ -1,3 +1,7 @@
<?php
$bareos_full_version = "@BAREOS_FULL_VERSION@";
//$bareos_vendorsupport_status = "@BAREOS_VENDORSUPPORT_STATUS@";
$bareos_vendorsupport_status = false;
//$bareos_vendorsupport_message = "@BAREOS_VENDORSUPPORT_MESSAGE@";
$bareos_vendorsupport_message = "Officially maintained, supported and packaged binaries built by Bareos GmbH & Co. KG.";
?>

0 comments on commit abb605c

Please sign in to comment.