This commit is contained in:
3
templates/layout.html
Normal file
3
templates/layout.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{define "base"}}
|
||||
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{.Title}} · ReleaseWatcher</title><link rel="stylesheet" href="/static/app.css"></head><body><header class="top"><a class="brand" href="/">ReleaseWatcher</a>{{if .User.Email}}<nav><a href="/manufacturers">Hersteller</a><a href="/software">Software</a><a href="/releases">Releases</a>{{if eq .User.Role "admin"}}<a href="/users">Benutzer</a><a href="/audit">Audit</a>{{end}}<a href="/logout">Logout</a></nav><span class="user">{{.User.DisplayName}} · {{.User.Role}}</span>{{end}}</header><main class="container">{{if .Error}}<div class="alert error">{{.Error}}</div>{{end}}{{if .Info}}<div class="alert info">{{.Info}}</div>{{end}}{{template "content" .}}</main></body></html>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user