112
This commit is contained in:
parent
f349e38fd5
commit
841a7ae1f0
@ -216,7 +216,7 @@
|
|||||||
<span class="menu-title">Dashboard</span>
|
<span class="menu-title">Dashboard</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
{# <li class="nav-item">
|
||||||
<a class="nav-link" data-toggle="collapse" href="#ui-basic" aria-expanded="false" aria-controls="ui-basic">
|
<a class="nav-link" data-toggle="collapse" href="#ui-basic" aria-expanded="false" aria-controls="ui-basic">
|
||||||
<span class="icon-bg"><i class="mdi mdi-crosshairs-gps menu-icon"></i></span>
|
<span class="icon-bg"><i class="mdi mdi-crosshairs-gps menu-icon"></i></span>
|
||||||
<span class="menu-title">UI Elements</span>
|
<span class="menu-title">UI Elements</span>
|
||||||
@ -269,7 +269,7 @@
|
|||||||
<li class="nav-item"> <a class="nav-link" href="pages/samples/error-500.html"> 500 </a></li>
|
<li class="nav-item"> <a class="nav-link" href="pages/samples/error-500.html"> 500 </a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li> #}
|
||||||
<li class="nav-item sidebar-user-actions">
|
<li class="nav-item sidebar-user-actions">
|
||||||
<div class="user-details">
|
<div class="user-details">
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
@ -294,12 +294,12 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item sidebar-user-actions">
|
{# <li class="nav-item sidebar-user-actions">
|
||||||
<div class="sidebar-user-menu">
|
<div class="sidebar-user-menu">
|
||||||
<a href="#" class="nav-link"><i class="mdi mdi-speedometer menu-icon"></i>
|
<a href="#" class="nav-link"><i class="mdi mdi-speedometer menu-icon"></i>
|
||||||
<span class="menu-title">Take Tour</span></a>
|
<span class="menu-title">Take Tour</span></a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li> #}
|
||||||
<li class="nav-item sidebar-user-actions">
|
<li class="nav-item sidebar-user-actions">
|
||||||
<div class="sidebar-user-menu">
|
<div class="sidebar-user-menu">
|
||||||
<a href="/logout" class="nav-link"><i class="mdi mdi-logout menu-icon"></i>
|
<a href="/logout" class="nav-link"><i class="mdi mdi-logout menu-icon"></i>
|
||||||
|
@ -59,7 +59,6 @@ proc getUser*(db: DbConn, email, password: string): User =
|
|||||||
return user
|
return user
|
||||||
|
|
||||||
proc getUserOrdersAmount*(db: DbConn, userId: int): (int, float)=
|
proc getUserOrdersAmount*(db: DbConn, userId: int): (int, float)=
|
||||||
echo userId
|
|
||||||
var
|
var
|
||||||
row = db.getAllRows(sql"SELECT * FROM orders WHERE user_id=?", userId)
|
row = db.getAllRows(sql"SELECT * FROM orders WHERE user_id=?", userId)
|
||||||
totalQuantity = 0
|
totalQuantity = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user