You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/templates/bootstrap/menu.tpl

110 lines
4.6 KiB
Smarty

<!-- {$smarty.template} -->
{strip}
{if !empty($smarty.get) && !empty($smarty.get.domain)}
{*** zuweisung muss eleganter gehen ***}
{assign var="url_domain" value=$smarty.get.domain}
{assign var="url_domain" value="&amp;domain={$url_domain|escape:url}"}
{/if}
{/strip}
{strip}
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{*** <a class="navbar-brand" href='main.php'><img id="login_header_logo" src="{$CONF.theme_logo}" alt="Logo" /></a> ***}
<a class="navbar-brand" href='main.php'><img id="login_header_logo" src="images/postbox.png" alt="Logo" /></a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
{* list-admin *}
{if $authentication_has_role.global_admin}
{strip}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" href="{#url_list_admin#}">{$PALANG.pAdminMenu_list_admin} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{#url_list_admin#}">{$PALANG.pAdminMenu_list_admin}</a></li>
<li><a href="{#url_create_admin#}">{$PALANG.pAdminMenu_create_admin}</a></li>
</ul>
</li>
{/strip}
{else}
<li><a href="{#url_main#}">{$PALANG.pMenu_main}</a></li>
{/if}
{* list-domain *}
{strip}
<li>
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" href="{#url_list_domain#}">{$PALANG.pAdminMenu_list_domain} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{#url_list_domain#}">{$PALANG.pAdminMenu_list_domain}</a></li>
{if $authentication_has_role.global_admin}
<li><a href="{#url_edit_domain#}">{$PALANG.pAdminMenu_create_domain}</a></li>
{/if}
</ul>
</li>
{/strip}
{* list-virtual *}
{strip}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" href="{#url_list_virtual#}">{$PALANG.pAdminMenu_list_virtual} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{#url_list_virtual#}">{$PALANG.pAdminMenu_list_virtual}</a></li>
<li><a href="{#url_create_mailbox#}{$url_domain}">{$PALANG.add_mailbox}</a></li>
<li><a href="{#url_create_alias#}{$url_domain}">{$PALANG.add_alias}</a></li>
{if $boolconf_alias_domain}
<li><a href="{#url_create_alias_domain#}{$url_domain}">{$PALANG.add_alias_domain}</a></li>
{/if}
</ul>
</li>
{/strip}
{* fetchmail *}
{if $CONF.fetchmail==='YES'}
{strip}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" href="{#url_fetchmail#}">{$PALANG.pMenu_fetchmail} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{#url_fetchmail#}">{$PALANG.pMenu_fetchmail}</a></li>
<li><a href="{#url_fetchmail_new_entry#}">{$PALANG.pFetchmail_new_entry}</a></li>
</ul>
</li>
{/strip}
{/if}
{* sendmail *}
{if $CONF.sendmail==='YES'}
{strip}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" href="{#url_sendmail#}">{$PALANG.pMenu_sendmail} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{#url_sendmail#}">{$PALANG.pMenu_sendmail}</a></li>
{if $authentication_has_role.global_admin || (isset($CONF.sendmail_all_admins) && $CONF.sendmail_all_admins === 'YES') }
<li><a href="{#url_broadcast_message#}">{$PALANG.pAdminMenu_broadcast_message}</a></li>
{/if}
</ul>
</li>
{/strip}
{/if}
</ul>
<ul class="nav navbar-nav navbar-right">
{* password *}
<li><a class="btn btn-default navbar-btn btn-sm" type="button" href="{#url_password#}">{$PALANG.pMenu_password}</a></li>
{* backup *}
{if $authentication_has_role.global_admin && $CONF.database_type!=='pgsql' && $CONF.backup === 'YES'}
<li><a class="btn btn-default navbar-btn btn-sm" type="button" href="{#url_backup#}">{$PALANG.pAdminMenu_backup}</a></li>
{/if}
{* viewlog *}
{if $CONF.logging==='YES'}
<li><a class="btn btn-default navbar-btn btn-sm" type="button" href="{#url_viewlog#}">{$PALANG.pMenu_viewlog}</a></li>
{/if}
{* logout *}
<li><a class="btn btn-default navbar-btn btn-sm" type="button" href="{#url_logout#}">{$PALANG.pMenu_logout}</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
{/strip}