add sitekey helper in list sitekey page

This commit is contained in:
realaravinth
2021-08-12 08:38:09 +05:30
parent 78ebc46c64
commit 751a1046fb
6 changed files with 74 additions and 76 deletions

View File

@@ -1,14 +1,7 @@
<ul class="taskbar">
<!--
<li class="taskbar__action">Brand Name</li>
-->
<li class="taskbar__spacer"></li>
<li class="taskbar__action">
<a class="taskbar__link" href="<.= crate::PAGES.panel.sitekey.add .>">
<button class="taskbar__add-site">
+ New Site
</button>
</a>
<. include!("./new-sitekey-btn.html"); .>
</li>
<li class="taskbar__action">
<img class="taskbar__icon" src="<.=
@@ -23,7 +16,6 @@
alt="Notifications" />
</a>
</li>
<li class="taskbar__action">
<a href="<.= crate::V1_API_ROUTES.auth.logout .>">
<img class="taskbar__icon" src="<.=

View File

@@ -0,0 +1,5 @@
<a class="taskbar__link" href="<.= crate::PAGES.panel.sitekey.add .>">
<button class="taskbar__add-site">
+ New Site
</button>
</a>

View File

@@ -11,16 +11,8 @@ include!("./navbar/index.html"); .>
<. include!("./help-banner/index.html"); .>
<div class="inner-container">
<. if sitekeys.is_empty() { .>
<ul class="sitekey-list__box">
<p>
It looks like you don't have any sitekeys. Click
<a href="<.= crate::PAGES.panel.sitekey.add .>">here</a> to add new
sitekey.
</p>
</ul>
<. include!("./sitekey/list/empty-sitekey.html"); .>
<.} else {.>
<table class="sitekey__table">
<thead class="sitekey__table-heading">
<tr>
@@ -62,7 +54,6 @@ include!("./navbar/index.html"); .>
<. } .>
</tbody>
</table>
<.}.>
</div>
<. include!("../components/footers.html"); .>

View File

@@ -0,0 +1,6 @@
<ul class="sitekey-list__box">
<p>
It looks like you don't have any sitekeys. Click <.
include!("../../header/taskbar/new-sitekey-btn.html"); .> to add new sitekey.
</p>
</ul>

View File

@@ -12,6 +12,9 @@ include!("../../navbar/index.html"); .>
<!-- Main content container -->
<div class="inner-container">
<!-- Main menu/ important actions roaster -->
<. if sitekeys.is_empty() { .>
<. include!("./empty-sitekey.html"); .>
<.} else {.>
<table class="sitekey__table">
<thead class="sitekey__table-heading">
<tr>
@@ -53,6 +56,7 @@ include!("../../navbar/index.html"); .>
<. } .>
</tbody>
</table>
<.}.>
</div>
<!-- end of container -->
<. include!("../../../components/footers.html"); .>