diff options
feat: Move single archive item code to a separate file
1 files changed, 20 insertions, 0 deletions
| -rw-r--r-- | views/archive/item.php | 20 |
diff --git a/views/archive/item.php b/views/archive/item.php new file mode 100644 index 0000000..4d3db12 --- /dev/null +++ b/views/archive/item.php @@ -0,0 +1,20 @@ +<section class="item"> + <section> + <div> + <img src="<?= '/archives/' . $page->FaviconPath ?>" class="favicon"> + <a href="<?= '/archives/' . $page->WID . '/index.php' ?>"><?= $page->URL ?></a> + <span class="float-right"><?= $page->Date ?></span> + </div> + <div class="details"> + <span>Visits: <?= $page->Visits ?></span> + <span class="float-right"><?= Database\User::fromDBuid($page->RequesterUID)->Username ?></span> + </div> + </section> + <section name="itemButton" hidden> + <form action="/list/update" method="GET"> + <input type="hidden" name="wid" value="<?= $page->WID ?>"> + <input type="submit" value="+"> + </form> + <span><!-- Delete (when admin) button --></span> + </section> +</section> |
