mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Remove any topbar related stuff
It's not used anywhere.
This commit is contained in:
parent
946a903a39
commit
08fd000496
@ -25,24 +25,4 @@ class LayoutController extends ActionController
|
||||
$menu = new MenuRenderer(Menu::load(), $url->getRelativeUrl());
|
||||
$this->view->menuRenderer = $menu->useCustomRenderer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the top bar
|
||||
*/
|
||||
public function topbarAction()
|
||||
{
|
||||
$topbarHtmlParts = array();
|
||||
|
||||
/** @var Hook\TopBarHook $hook */
|
||||
$hook = null;
|
||||
|
||||
foreach (Hook::all('TopBar') as $hook) {
|
||||
$topbarHtmlParts[] = $hook->getHtml($this->getRequest());
|
||||
}
|
||||
|
||||
$this->view->topbarHtmlParts = $topbarHtmlParts;
|
||||
|
||||
|
||||
$this->renderScript('parts/topbar.phtml');
|
||||
}
|
||||
}
|
||||
|
@ -1,42 +0,0 @@
|
||||
<nav class="navbar-fixed-top" id="icingatopbar" role="navigation">
|
||||
<div class="navbar-header">
|
||||
<a href="<?= $this->baseUrl('/') ?>" class="navbar-brand icinga-logo">Icinga</a>
|
||||
</div>
|
||||
|
||||
<?php if (count($this->topbarHtmlParts)): ?>
|
||||
<ul class="nav navbar-nav">
|
||||
<?php foreach ($this->topbarHtmlParts as $part): ?>
|
||||
<li><?= $part; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<?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" id="icinga_app_nav_useraction">
|
||||
<span id="icinga_app_nav_username">
|
||||
<?= $this->escape($this->auth()->getUser()->getUsername()); ?>
|
||||
</span>
|
||||
<i class="icinga-icon-user"></i>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li id="icinga_app_nav_preferences">
|
||||
<a href="<?= $this->href('/preference'); ?>"><?= $this->translate('Preferences'); ?> </a>
|
||||
</li>
|
||||
<li id="icinga_app_nav_logout">
|
||||
<a href="<?= $this->href('/authentication/logout'); ?>" title="<?= $this->translate('Logout from Icinga Web 2') ?>"><?= $this->translate('Logout'); ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<?php endif ?>
|
||||
|
||||
</nav>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
|
||||
namespace Icinga\Web\Hook;
|
||||
|
||||
use Icinga\Web\Request;
|
||||
use Zend_View;
|
||||
|
||||
/**
|
||||
* Hook to extend topbar items
|
||||
*/
|
||||
abstract class TopBarHook extends WebBaseHook
|
||||
{
|
||||
/**
|
||||
* Function to generate top bar content
|
||||
*
|
||||
* @param Request $request
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
abstract public function getHtml($request);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user