X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/97bc8f54b09859842e53d4886234a3b09122ea71..467fdea52c27dcf01e79cb96068134403afff660:/page.inc.php?ds=inline
diff --git a/page.inc.php b/page.inc.php
index dcb0573..afaa970 100644
--- a/page.inc.php
+++ b/page.inc.php
@@ -1,10 +1,38 @@
render();
+
+include_once 'head.inc.php';
print " ';
+ printf('%s %s',
+ '👤',
+ '/login', $User->login
+ );
+ if ($User->admin("edit {$Page->link}")) {
+ $editpage = $Page->link;
+ if (is_dir($editpage)) {
+ if (file_exists("$editpage/index.html")) {
+ $editpage .= '/index.html';
+ }
+ }
+ else {
+ $editpage .= '.html';
+ }
+ if (!file_exists($editpage) or is_writable($editpage)) {
+ print ' ✍';
+ }
+ }
+ print "