101 lines
3.9 KiB
Handlebars
101 lines
3.9 KiB
Handlebars
<nav class="col-md-2 d-none d-md-block sidebar">
|
|
<div class="sidebar-sticky">
|
|
<ul class="nav flex-column">
|
|
<li class="nav-item">
|
|
<a href="/admin"><img class="sidebar-brand" src="/images/logo-admin.png"></a>
|
|
<a href="#" data-toggle="modal" data-target="#globalSearchModal" class="sidebar-search text-muted">{{{feather 'search'}}}</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/admin/dashboard">
|
|
{{{feather 'bar-chart'}}}
|
|
{{ @root.__ "Dashboard" }}
|
|
</a>
|
|
</li>
|
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
|
|
<span>Manage</span>
|
|
</h6>
|
|
{{#ifCond session.isAdmin '===' true}}
|
|
<li class="nav-item sidebar-addon">
|
|
<a class="nav-link sidebar-link" href="/admin/products">
|
|
{{{feather 'tag'}}}
|
|
Products
|
|
</a>
|
|
<a class="sidebar-link-addon text-muted" href="/admin/product/new">
|
|
{{{feather 'plus'}}}
|
|
</a>
|
|
</li>
|
|
{{else}}
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/admin/products">
|
|
{{{feather 'tag'}}}
|
|
Products
|
|
</a>
|
|
</li>
|
|
{{/ifCond}}
|
|
<li class="nav-item sidebar-addon">
|
|
<a class="nav-link sidebar-link" href="/admin/orders">
|
|
{{{feather 'package'}}}
|
|
Orders
|
|
</a>
|
|
<a class="sidebar-link-addon text-muted" href="/admin/order/create">
|
|
{{{feather 'plus'}}}
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/admin/customers">
|
|
{{{feather 'users'}}}
|
|
Customers
|
|
</a>
|
|
</li>
|
|
<li class="nav-item sidebar-addon">
|
|
<a class="nav-link sidebar-link" href="/admin/users">
|
|
{{{feather 'user'}}}
|
|
Users
|
|
</a>
|
|
<a class="sidebar-link-addon text-muted" href="/admin/user/new">
|
|
{{{feather 'plus'}}}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
|
|
<span>Settings</span>
|
|
</h6>
|
|
<ul class="nav flex-column mb-2">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/admin/settings">
|
|
{{{feather 'sliders'}}}
|
|
{{ @root.__ "General settings" }}
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/admin/settings/menu">
|
|
{{{feather 'menu'}}}
|
|
{{ @root.__ "Menu" }}
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/admin/settings/pages">
|
|
{{{feather 'file-text'}}}
|
|
{{ @root.__ "Static pages" }}
|
|
</a>
|
|
</li>
|
|
{{#ifCond session.isAdmin '===' true}}
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/admin/settings/discounts">
|
|
{{{feather 'code'}}}
|
|
{{ @root.__ "Discount codes" }}
|
|
</a>
|
|
</li>
|
|
{{/ifCond}}
|
|
</ul>
|
|
<ul class="nav flex-column mt-5">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/admin/logout">
|
|
{{{feather 'log-out'}}}
|
|
{{ @root.__ "Logout" }}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</nav> |