2021-07-20 12:44:23 +00:00
|
|
|
<. const DONE_ALT: &str = "sitekey copied"; .>
|
|
|
|
<. const DONE_CLASS: &str = "sitekey__copy-done-icon"; .>
|
|
|
|
<. const COPY_ALT: &str = "copy sitekey"; .>
|
|
|
|
<. const COPY_CLASS: &str = "sitekey__copy-icon"; .>
|
|
|
|
|
2021-07-15 12:37:12 +00:00
|
|
|
<. include!("../components/headers/index.html"); .> <.
|
|
|
|
include!("./navbar/index.html"); .>
|
2021-05-09 13:29:23 +00:00
|
|
|
<div class="tmp-layout">
|
2021-07-15 12:37:12 +00:00
|
|
|
<. include!("./header/index.html"); .>
|
|
|
|
<main class="panel-main">
|
|
|
|
<. include!("./help-banner/index.html"); .>
|
|
|
|
<div class="inner-container">
|
2021-06-13 08:05:09 +00:00
|
|
|
<. if sitekeys.is_empty() { .>
|
2021-08-12 03:08:09 +00:00
|
|
|
<. include!("./sitekey/list/empty-sitekey.html"); .>
|
2021-06-13 08:05:09 +00:00
|
|
|
<.} else {.>
|
2021-07-15 12:37:12 +00:00
|
|
|
<table class="sitekey__table">
|
|
|
|
<thead class="sitekey__table-heading">
|
|
|
|
<tr>
|
|
|
|
<th colspan="4" class="sitekey__table-title-text">
|
|
|
|
Your Sitekeys
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody class="sitekey__body">
|
|
|
|
<. for sitekey in sitekeys.iter() { .>
|
|
|
|
<tr class="sitekey__item">
|
|
|
|
<td class="sitekey-list__name">
|
|
|
|
<a
|
|
|
|
href="/sitekey/<.= sitekey.key .>/"
|
|
|
|
class="sitekey-list__sitekey-link"
|
|
|
|
>
|
2022-05-27 12:46:47 +00:00
|
|
|
<.= sitekey.description .>
|
2021-07-15 12:37:12 +00:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="sitekey-list__key">
|
|
|
|
<div class="sitekey__key-container">
|
2021-07-20 12:44:23 +00:00
|
|
|
<. let clipboard_data = ("sitekey", &sitekey.key); .>
|
|
|
|
<. include!("../components/clipboard/index.html"); .>
|
2021-07-15 12:37:12 +00:00
|
|
|
<a
|
|
|
|
class="sitekey__widget-link"
|
|
|
|
href="<.= crate::WIDGET_ROUTES.verification_widget .>/?sitekey=<.= sitekey.key .>"
|
|
|
|
>
|
|
|
|
<.= &sitekey.key[0..5] .>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
2021-07-16 12:20:38 +00:00
|
|
|
<td class="sitekey-list__key">
|
2021-08-12 03:08:09 +00:00
|
|
|
<div class="sitekey-list__edit">
|
2021-12-18 15:24:30 +00:00
|
|
|
<. let edit_url = crate::PAGES.panel.sitekey.get_edit_easy(&sitekey.key) ;.>
|
2021-08-12 03:08:09 +00:00
|
|
|
<. include!("./sitekey/view/__edit-sitekey-icon.html"); .>
|
|
|
|
</div>
|
2021-07-16 12:20:38 +00:00
|
|
|
</td>
|
2021-07-15 12:37:12 +00:00
|
|
|
</tr>
|
|
|
|
<. } .>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-06-13 08:05:09 +00:00
|
|
|
<.}.>
|
2021-07-15 12:37:12 +00:00
|
|
|
</div>
|
|
|
|
<. include!("../components/footers.html"); .>
|
|
|
|
</main>
|
|
|
|
</div>
|