mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Fix layout for install and login pages
This commit is contained in:
parent
5d13afd8f6
commit
bc024c3253
@ -54,7 +54,7 @@ class UsersController extends AbstractController
|
||||
|
||||
$page = array_merge($page, prepare_menu($operator));
|
||||
|
||||
$page['showMenu'] = !$request->query->has('nomenu');
|
||||
$page['hideMenu'] = (bool)$request->query->has('nomenu');
|
||||
|
||||
// Attach files of the client side application and start it
|
||||
$this->getAssetManager()->attachJs('js/compiled/users_app.js');
|
||||
|
@ -686,7 +686,6 @@ function prepare_menu($operator, $has_right = true)
|
||||
{
|
||||
$result = array();
|
||||
|
||||
$result['showMenu'] = true;
|
||||
$result['operator'] = get_operator_name($operator);
|
||||
if ($has_right) {
|
||||
$result['showban'] = Settings::get('enableban') == "1";
|
||||
|
@ -62,7 +62,7 @@
|
||||
<div class="content-div">
|
||||
|
||||
{{#ifOverridden "menu"}}
|
||||
<div id="content" class="{{#if showMenu}}content-inner{{else}}content-no-menu{{/if}}">
|
||||
<div id="content" class="{{#if hideMenu}}content-no-menu{{else}}content-inner{{/if}}">
|
||||
{{else}}
|
||||
<div id="content" class="content-no-menu">
|
||||
{{/ifOverridden}}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div id="sidebar"{{#unless showMenu}} class="sidebar-hidden"{{/unless}}>
|
||||
<div id="sidebar"{{#if hideMenu}} class="sidebar-hidden"{{/if}}>
|
||||
<ul>
|
||||
{{#if warnOffline}}
|
||||
{{#unless isOnline}}
|
||||
|
@ -8,7 +8,7 @@
|
||||
{{#override "content"}}
|
||||
<div>
|
||||
<div id="toggle-menu">
|
||||
<a href="#">{{#if showMenu}}{{l10n "Hide menu"}}{{else}}{{l10n "Show menu"}}{{/if}}</a>
|
||||
<a href="#">{{#if hideMenu}}{{l10n "Show menu"}}{{else}}{{l10n "Hide menu"}}{{/if}}</a>
|
||||
</div>
|
||||
<div>
|
||||
{{l10n "This page displays a list of visitors who are waiting."}}
|
||||
|
Loading…
Reference in New Issue
Block a user