blob: 84d6a32fd668a48510fed68b8299225e3fe4341c (
plain) (
tree)
|
|
@use super::statics::*;
@use crate::notification::Notification;
@(user: Option<String>, notification: Option<Notification>, 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 let Some(username) = user {
<a href="/pin/new">create pin</a>
<form action="/logout" method="post">
<button type="submit">logout @username</button>
</form>
} else {
<a href="/login">log in</a>
}
</nav>
@if let Some(notification) = notification {
<div class="notification @notification.kind">@notification.message</div>
}
@:body()
</body>
</html>
|