- Add comprehensive test file for internal/grpcserver package - Cover interceptors, system, engine, policy, and auth handlers - Cover pbToRule/ruleToPB conversion helpers - 37 tests total; CA/PKI/ACME and Login/Logout skipped (require live deps) Co-authored-by: Junie <junie@jetbrains.com>
26 lines
904 B
HTML
26 lines
904 B
HTML
{{define "layout"}}<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Metacrypt{{block "title" .}}{{end}}</title>
|
|
<script src="/static/htmx.min.js"></script>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
</head>
|
|
<body>
|
|
<nav class="topnav">
|
|
<a class="topnav-brand" href="/">Metacrypt</a>
|
|
<div class="topnav-right">
|
|
{{if .Username}}
|
|
<span class="topnav-user">{{.Username}}</span>
|
|
{{if .IsAdmin}}<span class="badge">admin</span>{{end}}
|
|
<a href="/login" class="btn btn-ghost btn-sm" onclick="fetch('/v1/auth/logout',{method:'POST'})">Logout</a>
|
|
{{end}}
|
|
</div>
|
|
</nav>
|
|
<div class="{{block "container-class" .}}page-container{{end}}">
|
|
{{template "content" .}}
|
|
</div>
|
|
</body>
|
|
</html>{{end}}
|