summaryrefslogtreecommitdiffstats
path: root/templates/base.rs.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/base.rs.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/base.rs.html b/templates/base.rs.html
new file mode 100644
index 0000000..5b1a324
--- /dev/null
+++ b/templates/base.rs.html
@@ -0,0 +1,26 @@
+@use super::statics::*;
+
+@(authenticated: bool, body: Content)
+
+<!DOCTYPE html>
+<html>
+
+<head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="stylesheet" type="text/css" href="/static/@style_css.name" />
+ <title>pinussy</title>
+</head>
+
+<body>
+ <nav>
+ @if authenticated {
+ logout
+ } else {
+ <a href="/login">log in</a>
+ }
+ </nav>
+ @:body()
+</body>
+
+</html> \ No newline at end of file