diff --git a/public.php b/public.php index 0e936aa2..002e915e 100644 --- a/public.php +++ b/public.php @@ -40,7 +40,7 @@ if (isset($fileOwner)) { \OCP\Util::addScript('documents', 'documents'); $tmpl->assign('document', $token); } else { - // TODO: show nice 404 page + $tmpl->assign('notFound', true); } $tmpl->printPage(); diff --git a/templates/public.php b/templates/public.php index 5d5edba1..eb0e478a 100644 --- a/templates/public.php +++ b/templates/public.php @@ -1,5 +1,12 @@ +
+ +
+ +
+
t('This link has been expired or is never existed. Please contact the person who shared it with you for details.')) ?>
+