Website Summary Files Commits Branches @commit @diff @stats
path: root / views / archive / index.php
diff options
context:
space:
mode:
Commitd4aa1cf1a9a4051a8b962f1321e901a8d6a6589b (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-19 21:35:01 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-19 21:35:01 +0200
Files76837ff247be38a9c00444cf26622999dc44516e /views/archive/index.php
nowayforward_human-d4aa1cf1a9a4051a8b962f1321e901a8d6a6589b.tar
nowayforward_human-d4aa1cf1a9a4051a8b962f1321e901a8d6a6589b.tar.gz
nowayforward_human-d4aa1cf1a9a4051a8b962f1321e901a8d6a6589b.zip
Parent2ee3587ed2be19d2f58c9a90415371fdec4a87e2 (diff)
feat(views/archive): Better ui for archives
But not final
1 files changed, 14 insertions, 3 deletions
-rw-r--r--views/archive/index.php17
diff --git a/views/archive/index.php b/views/archive/index.php
index f96c34f..7aba050 100644
--- a/views/archive/index.php
+++ b/views/archive/index.php
@@ -5,10 +5,21 @@
?>
<?php if ($page !== null): ?>
- <iframe src="<?php echo "/archives/{$page->WID}" ?>"></iframe>
+ <iframe src="<?php echo "/archives/{$page->WID}" ?>" scrolling="no"></iframe>
+ <h2>Archives by date:</h2>
<?php foreach (Database\Webpage::allArchives($page->URL) as $page): ?>
- <section>
- <?php echo $page->Date ?>
+ <section class="item">
+ <section>
+ <div>
+ <img src="<?php echo "/archives/{$page->WID}/favicon.ico" ?>" class="favicon">
+ <a href="<?php echo "/archives/{$page->WID}" ?>"><?php echo $page->URL ?></a>
+ <span class="float-right"><?php echo $page->Date ?></span>
+ </div>
+ <div class="details">
+ <span>Visits: <?php echo $page->Visits ?></span>
+ <span class="float-right"><?php echo Database\User::fromDBuid($page->RequesterUID)->Username ?></span>
+ </div>
+ </section>
</section>
<?php endforeach; ?>