parent
0ba27704ae
commit
dc2aad75d1
|
@ -1,17 +1,19 @@
|
|||
<?php echo $this->render('parts/topbar.phtml') ?>
|
||||
<div class="main">
|
||||
<div class="row">
|
||||
|
||||
<!-- Only required for left/right tabs -->
|
||||
<div class="tabbable tabs-left "style="height:100%;">
|
||||
<div class="col-md-2">
|
||||
<?php echo $this->render('parts/navigation.phtml') ?>
|
||||
</div>
|
||||
|
||||
<div class="layout-main-detail collapsed">
|
||||
<div id="icinga-main" container-id="icinga-main" class="icinga-container">
|
||||
<?= $this->render('inline.phtml') ?>
|
||||
</div>
|
||||
|
||||
<div id="icinga-detail" class="icinga-container " container-id="icinga-detail">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<div id="icingamain" class="col-md-8">
|
||||
<?= $this->render('inline.phtml') ?>
|
||||
</div>
|
||||
|
||||
<div id="icingadetail" class="col-md-2">
|
||||
Details
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -13,14 +13,19 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title></title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
|
||||
<!-- Bootstrap and components -->
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/vendor/bootstrap/bootstrap.min.css') ?>" media="screen">
|
||||
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/normalize.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/vendor/bootstrap.css') ?>">
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/vendor/datetimepicker/bootstrap-datetimepicker.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/vendor/ui-lightness/jquery-ui-1.10.3.custom.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/main.css') ?>">
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/vendor/jquery.qtip.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/vendor/bootstrap/datetimepicker.min.css') ?>">
|
||||
|
||||
<!--
|
||||
Not used until styling is clear (see #4550)
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css.php') ?>">
|
||||
-->
|
||||
|
||||
<script type="text/javascript">
|
||||
var base_url = '<?= $this->baseUrl() ?>';
|
||||
ICINGA_DEBUG = true;
|
||||
|
@ -30,17 +35,18 @@
|
|||
<? endif ?>
|
||||
|
||||
<script src="<?php echo $this->baseUrl('js/vendor/modernizr-2.6.2.min.js') ?>"></script>
|
||||
<link rel="stylesheet" href="<?php echo $this->baseUrl('css.php') ?>">
|
||||
<link rel="stylesheet" href="<?php echo $this->baseUrl('css/vendor/bootstrap-responsive.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?php echo $this->baseUrl('css/vendor/font-awesome.min.css') ?>">
|
||||
<!--[if IE 7]>
|
||||
<link rel="stylesheet" href="<?php echo $this->baseUrl('css/vendor/font-awesome-ie7.min.css') ?>">
|
||||
|
||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="./js/vendor/html5shiv.js"></script>
|
||||
<script src="./js/vendor/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<script data-main="<?php echo $this->baseUrl('js/main.js')?>"
|
||||
src="<?php echo $this->baseUrl('js/vendor/require.js') ?>"></script>
|
||||
|
||||
</head>
|
||||
<body class="cranberry">
|
||||
<?= $this->render('just-the-body.phtml') ?>
|
||||
<?= $this->render('body.phtml') ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -6,35 +6,37 @@ $currentKey = isset($this->navkey) ? $this->navkey : $url;
|
|||
$item = $this->navigation->keys("menu");
|
||||
?>
|
||||
<?php if ($this->auth()->isAuthenticated()): ?>
|
||||
<ul class="nav nav-tabs icinga-navigation" >
|
||||
<?php
|
||||
$activeSet = false;
|
||||
foreach ($item as $itemName) {
|
||||
if($itemName[0] == "_") {
|
||||
?>
|
||||
<li class="section-end"></li>
|
||||
<?php
|
||||
continue;
|
||||
}
|
||||
<ul class="nav nav-stacked" >
|
||||
<?php
|
||||
$activeSet = false;
|
||||
foreach ($item as $itemName) {
|
||||
if($itemName[0] == "_") {
|
||||
?>
|
||||
<li class="section-end"></li>
|
||||
<?php
|
||||
continue;
|
||||
}
|
||||
|
||||
$item = $this->navigation->menu->$itemName;
|
||||
$active = false;
|
||||
$url = "";
|
||||
$item = $this->navigation->menu->$itemName;
|
||||
$active = false;
|
||||
$url = "";
|
||||
|
||||
if (is_string($item)) {
|
||||
$active = !$activeSet && $this->baseUrl($item) == $currentKey;
|
||||
$url = $this->baseUrl($item);
|
||||
} else {
|
||||
$url = $this->baseUrl(isset($item->route) ? $item->route : "");
|
||||
$itemName = isset($item->title) ? $item->title : $itemName;
|
||||
$active = !$activeSet && (isset($item->key) ? $item->key : $url) === $currentKey;
|
||||
}
|
||||
$activeSet = $activeSet || $active;
|
||||
?>
|
||||
<li class="<?= $active ? "active" : "" ?>"><a href="<?= $url ?>"><?= $itemName ?></a></li>
|
||||
<?php
|
||||
$class = "";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
if (is_string($item)) {
|
||||
$active = !$activeSet && $this->baseUrl($item) == $currentKey;
|
||||
$url = $this->baseUrl($item);
|
||||
} else {
|
||||
$url = $this->baseUrl(isset($item->route) ? $item->route : "");
|
||||
$itemName = isset($item->title) ? $item->title : $itemName;
|
||||
$active = !$activeSet && (isset($item->key) ? $item->key : $url) === $currentKey;
|
||||
}
|
||||
$activeSet = $activeSet || $active;
|
||||
?>
|
||||
<li class="<?= $active ? "active" : "" ?>">
|
||||
<a href="<?= $url ?>"><?= $itemName ?></a>
|
||||
</li>
|
||||
<?php
|
||||
$class = "";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<? endif ?>
|
||||
|
|
|
@ -1,31 +1,33 @@
|
|||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="navbar-inner ">
|
||||
<ul class="nav pull-left">
|
||||
<li style="float:left"><a href="<?= $this->baseUrl('/') ?>" class="brand" style="margin-left:0px;">Icinga</a></li>
|
||||
</ul>
|
||||
<?php if ($this->auth()->isAuthenticated()): ?>
|
||||
<ul class="nav pull-right" >
|
||||
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||
<ul class="nav navbar-nav pull-left">
|
||||
<li>
|
||||
<a href="<?= $this->baseUrl('/') ?>" class="brand" style="margin-left:0px;">Icinga</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php if ($this->auth()->isAuthenticated()): ?>
|
||||
<ul class="nav navbar-nav pull-right" >
|
||||
<!-- Remove component as of #4583 since it's not working-->
|
||||
<!-- <li>-->
|
||||
<!-- <form class="navbar-search" style="padding-top:0.2em">-->
|
||||
<!-- <input type="text" class="search-query" placeholder="Search" style="padding-top:0.3em">-->
|
||||
<!-- </form>-->
|
||||
<!-- </li>-->
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<?= $this->escape($this->auth()->getUser()->getUsername()); ?>
|
||||
<i class="icon-user icon-white" style="margin-top:0.2em"></i>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="<?= $this->href('/preference'); ?>"><?= $this->translate('Preferences'); ?> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?= $this->href('/authentication/logout'); ?>"><?= $this->translate('Logout'); ?></a>
|
||||
</ul>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<?= $this->escape($this->auth()->getUser()->getUsername()); ?>
|
||||
<i class="icon-user icon-white" style="margin-top:0.2em"></i>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="<?= $this->href('/preference'); ?>"><?= $this->translate('Preferences'); ?> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?= $this->href('/authentication/logout'); ?>"><?= $this->translate('Logout'); ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<?php endif ?>
|
||||
|
||||
</nav>
|
||||
|
|
|
@ -19,17 +19,18 @@ $title_next = sprintf(
|
|||
$total
|
||||
);
|
||||
|
||||
?><div class="pagination pagination-mini" style="margin:0px">
|
||||
<ul>
|
||||
<!-- Previous page link -->
|
||||
?>
|
||||
<ul class="pagination pagination-sm">
|
||||
<!-- Previous page link -->
|
||||
|
||||
<?php if (isset($this->previous)): ?>
|
||||
<li><a href="<?= $this->url()->setParam('page', $this->previous) ?>" title="<?= $title_prev ?>">« <?= $this->translate('Back') ?></a></li>
|
||||
<li><a href="<?= $this->url()->setParam('page', $this->previous) ?>" title="<?= $title_prev ?>">« <?= $this->translate('Back') ?></a></li>
|
||||
<?php else: ?>
|
||||
<li class="disabled"><span>« <?= $this->translate('Back') ?></span></li>
|
||||
<li class="disabled"><span>« <?= $this->translate('Back') ?></span></li>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Numbered page links -->
|
||||
<?php
|
||||
|
||||
foreach ($this->pagesInRange as $page):
|
||||
|
||||
$start = ($page - 1) * $limit + 1;
|
||||
|
@ -43,16 +44,19 @@ foreach ($this->pagesInRange as $page):
|
|||
if ($page === '...'): ?>
|
||||
<li class="disabled"><span>...</span></li>
|
||||
<?php else: ?>
|
||||
<li<?= $class ?>><a href="<?= $this->url()->setParam('page', $page) ?>" title="<?= $title ?>"><?= $page ?></a></li>
|
||||
<li <?= $class ?>>
|
||||
<a href="<?= $this->url()->setParam('page', $page) ?>" title="<?= $title ?>">
|
||||
<?= $page ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
endforeach;
|
||||
?>
|
||||
<!-- Next page link -->
|
||||
<? if (isset($this->next)): ?>
|
||||
<li><a href="<?= $this->url()->setParam('page', $this->next) ?>" title="<?= $title_next ?>"><?= t('Next') ?> »</a></li>
|
||||
<li><a href="<?= $this->url()->setParam('page', $this->next) ?>" title="<?= $title_next ?>"><?= t('Next') ?> »</a></li>
|
||||
<? else: ?>
|
||||
<li class="disabled"><span><?= t('Next') ?> »</span></li>
|
||||
<li class="disabled"><span><?= t('Next') ?> »</span></li>
|
||||
<? endif ?>
|
||||
</ul>
|
||||
</div>
|
||||
</ul>
|
||||
|
|
|
@ -223,7 +223,7 @@ class ActionController extends ZfController
|
|||
|
||||
if ($this->_request->isXmlHttpRequest()) {
|
||||
if ($this->replaceLayout || $this->_getParam('_render') === 'body') {
|
||||
$this->_helper->layout()->setLayout('just-the-body');
|
||||
$this->_helper->layout()->setLayout('body');
|
||||
header('X-Icinga-Target: body');
|
||||
} else {
|
||||
$this->_helper->layout()->setLayout('inline');
|
||||
|
|
Loading…
Reference in New Issue