Administration/layouts/main/layout.panel.latte

159 lines
6.7 KiB
Plaintext
Raw Normal View History

{varType FuzeWorks\Authentication\Model\Session $session}
{varType bool $loadAsync}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{$serverName} | {$pageTitle}</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<link rel="stylesheet" href="/{$adminKey}/lte_plugins/fontawesome-free/css/all.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="/{$adminKey}/lte_dist/css/adminlte.min.css">
<!-- Google Font: Source Sans Pro -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="/{$adminKey}" class="nav-link">Dashboard</a>
</li>
</ul>
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
{if $loadAsync}
<li id="asyncWidget" class="nav-item dropdown">
<a class="nav-link" data-toggle="dropdown" href="#">
<i class="fa fa-list"></i>
<span class="badge badge-warning navbar-badge">0</span>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<span class="dropdown-item dropdown-header">Asynchronous tasks</span>
<div class="dropdown-divider"></div>
<div class="dropdown-divider"></div>
<a href="/{$adminKey}/async" class="dropdown-item dropdown-footer">See all historic tasks</a>
</div>
</li>
{/if}
<li class="nav-item dropdown user-menu">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">
<img src="/{$adminKey}/lte_dist/img/user2-160x160.jpg" class="user-image img-circle elevation-2" alt="User Image">
<span class="d-none d-md-inline">{$session->user->primaryEmail}</span>
</a>
<ul class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<!-- User image -->
<li class="user-header bg-primary">
<img src="/{$adminKey}/lte_dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
<p>
{$session->user->primaryEmail}
<small>Member since -</small>
</p>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<a href="/{$adminKey}/profile" class="btn btn-default btn-flat">Profile</a>
<a href="{$authURL}/logout" class="btn btn-default btn-flat float-right">Sign out</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="/" class="brand-link">
<img src="/{$adminKey}/lte_dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
style="opacity: .8">
<span class="brand-text font-weight-light">{$serverName}</span>
</a>
<!-- Sidebar -->
<div class="sidebar">
<!-- Sidebar Menu -->
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
{foreach $sidebar as $item}
<li class="nav-item">
<a href="/{$adminKey}/{$item['url']}" class="nav-link">
<i class="nav-icon fas fa-{$item['icon']}"></i>
<p>{$item['display']}</p>
</a>
</li>
{/foreach}
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">{$pageTitle}</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="/{$adminKey}">Home</a></li>
<li class="breadcrumb-item active">{$pageTitle}</li>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
<div class="container-fluid">
{$content|noescape}
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
<strong>Copyright &copy; 2013-{date('Y')} <a href="https://i15.nl">i15.nl</a>.</strong>
All rights reserved.
<div class="float-right d-none d-sm-inline-block">
<b>Version</b> 1.3.0
</div>
</footer>
</div>
<!-- ./wrapper -->
<!-- jQuery -->
<script src="/{$adminKey}/lte_plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="/{$adminKey}/lte_plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="/{$adminKey}/lte_dist/js/adminlte.js"></script>
{if $loadAsync}
<script src="/{$adminKey}/admin_dist/async.ts"></script>
{/if}
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
{ifset $footer}
{$footer|noescape}
{/ifset}
</body>
</html>