expressCart/views/partials/menu.hbs

25 lines
2.0 KiB
Handlebars
Raw Normal View History

<div class="col-sm-3">
<h2>&nbsp;</h2>
2018-01-07 04:55:48 +10:00
<ul class="list-group">
2019-12-30 22:28:37 +10:00
<li class="list-group-item"><i class="far fa-chart-bar fa-icon"></i> &nbsp; <a href="/admin/dashboard">{{ @root.__ "Dashboard" }}</a></li>
2018-01-07 04:55:48 +10:00
<li class="list-group-item"><strong>Products</strong></li>
2018-02-06 07:28:12 +10:00
{{#ifCond session.isAdmin '===' true}}
2019-12-30 22:28:37 +10:00
<li class="list-group-item"><i class="far fa-plus-square"></i> &nbsp; <a href="/admin/product/new">{{ @root.__ "New" }}</a></li>
{{/ifCond}}
2019-12-30 22:28:37 +10:00
<li class="list-group-item"><i class="fas fa-list fa-icon"></i> &nbsp; <a href="/admin/products">{{ @root.__ "List" }}</a></li>
2018-01-07 04:55:48 +10:00
<li class="list-group-item"><strong>Orders</strong></li>
2019-12-30 22:28:37 +10:00
<li class="list-group-item"><i class="fas fa-cube fa-icon"></i> &nbsp; <a href="/admin/orders">{{ @root.__ "List" }}</a></li>
2018-01-22 07:20:33 +10:00
<li class="list-group-item"><strong>Customers</strong></li>
2019-12-30 22:28:37 +10:00
<li class="list-group-item"><i class="fas fa-users fa-icon"></i> &nbsp; <a href="/admin/customers">{{ @root.__ "List" }}</a></li>
2018-01-07 04:55:48 +10:00
<li class="list-group-item"><strong>Users</strong></li>
2018-02-06 07:28:12 +10:00
{{#ifCond session.isAdmin '===' true}}
2019-12-30 22:28:37 +10:00
<li class="list-group-item"><i class="fas fa-user-plus fa-icon"></i> &nbsp; <a href="/admin/user/new">{{ @root.__ "New" }}</a></li>
<li class="list-group-item"><i class="fas fa-user fa-icon"></i> &nbsp; <a href="/admin/users">{{ @root.__ "Edit" }}</a></li>
{{/ifCond}}
2019-12-30 22:28:37 +10:00
<li class="list-group-item"><i class="fas fa-user-circle"></i> &nbsp; <a href="/admin/user/edit/{{session.userId}}">My Account</a></li>
<li class="list-group-item"><strong>{{ @root.__ "Settings" }}</strong></li>
2019-12-30 22:28:37 +10:00
<li class="list-group-item"><i class="fas fa-cog fa-icon"></i> &nbsp; <a href="/admin/settings">{{ @root.__ "General settings" }}</a></li>
<li class="list-group-item"><i class="fas fa-bars fa-icon"></i> &nbsp; <a href="/admin/settings/menu">Menu</a></li>
<li class="list-group-item"><i class="far fa-file fa-icon"></i> &nbsp; <a href="/admin/settings/pages">{{ @root.__ "Static pages" }}</a></li>
2018-01-07 04:55:48 +10:00
</ul>
</div>