0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
postfixadmin/templates/index.tpl
2021-09-12 16:59:24 +01:00

30 lines
1.1 KiB
Smarty

{strip}
{include file="header.tpl"}
{if $smarty_template !== 'login' && $smarty_template !== 'password-recover' && $smarty_template !== 'password-change'}
{config_load file="menu.conf" section=$smarty_template}
{if $authentication_has_role.user}
{include file='users_menu.tpl'}
{else}
{include file='menu.tpl'}
{/if}
{/if}
<div class="container" style="min-width: 600px; " role="main">
{if $authentication_has_role.user && $CONF.motd_user}
<div id="motd">{$CONF.motd_user}</div>
{elseif $authentication_has_role.global_admin && $CONF.motd_superadmin}
<div id="motd">{$CONF.motd_superadmin}</div>
{elseif $authentication_has_role.admin && $CONF.motd_admin}
<div id="motd">{$CONF.motd_admin}</div>
{/if}
{include file='flash_error.tpl'}
{if $smarty_template}
{include file="$smarty_template.tpl"}
{else}
<h3>Template not found</h3>
({$smarty.server.PHP_SELF|escape:"html"})
{/if}
</div>
{include file='footer.tpl'}
{/strip}