aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-19 20:22:21 +0200
committerSyndamia <kamen@syndamia.com>2025-01-19 20:22:21 +0200
commit7fd2314b7f077e09968addd6bfac4deeb7fd0aea (patch)
tree3b08b3bf409cd5aeb41f2643f0556df562803176
parent7ac34b7dd0ec513f374786b9b5059c259bd43e92 (diff)
downloadnowayforward_human-7fd2314b7f077e09968addd6bfac4deeb7fd0aea.tar
nowayforward_human-7fd2314b7f077e09968addd6bfac4deeb7fd0aea.tar.gz
nowayforward_human-7fd2314b7f077e09968addd6bfac4deeb7fd0aea.zip
feat(views/archive): Show webpage preview
-rw-r--r--apache/sites/nowayforward_human.conf.tpl1
-rw-r--r--views/archive/index.php4
2 files changed, 2 insertions, 3 deletions
diff --git a/apache/sites/nowayforward_human.conf.tpl b/apache/sites/nowayforward_human.conf.tpl
index e94e13e..72ed808 100644
--- a/apache/sites/nowayforward_human.conf.tpl
+++ b/apache/sites/nowayforward_human.conf.tpl
@@ -1,6 +1,7 @@
<VirtualHost *:8000>
ServerName localhost
DocumentRoot "${REPOSITORY}/views"
+ Alias /archives "${ARCHIVES_DIR}"
<FilesMatch \.php$>
SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/"
diff --git a/views/archive/index.php b/views/archive/index.php
index e5146a3..f96c34f 100644
--- a/views/archive/index.php
+++ b/views/archive/index.php
@@ -5,9 +5,7 @@
?>
<?php if ($page !== null): ?>
- <iframe>
- <!-- /archives/$page->WID -->
- </iframe>
+ <iframe src="<?php echo "/archives/{$page->WID}" ?>"></iframe>
<?php foreach (Database\Webpage::allArchives($page->URL) as $page): ?>
<section>
<?php echo $page->Date ?>