htman/templates/layout.html

35 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/" py:strip="">
<py:match path="head" once="true">
<head py:attrs="select('@*')">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>${title}</title>
<link rel="stylesheet" href="${css_url}" type="text/css" />
<link rel="shortcut icon" href="${favicon_url}" type="image/vnd.microsoft.icon" />
<link rel="icon" href="${favicon_url}" type="image/vnd.microsoft.icon" />
</head>
</py:match>
<py:match path="body" once="true">
<body py:attrs="select('@*')">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<span class="navbar-brand mb-0 h1">Account Admin</span>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link" href="/admin/wikis">Home</a></li>
<li class="nav-item"><a class="nav-link" href="/admin/wikis/password">Passwords</a></li>
</ul>
</div>
</nav>
<div class="container" style="margin-top:20px;">
<div id="content">${select('*|text()')}</div>
</div>
</body>
</py:match>
</html>