main git-pr / tmpl / base.html
Eric Bower  ·  2026-02-25
 1{{define "base"}}
 2<!doctype html>
 3<html lang="en">
 4  <head>
 5    <meta charset='utf-8'>
 6    <meta name="viewport" content="width=device-width, initial-scale=1" />
 7    <title>{{template "title" .}}</title>
 8
 9    <meta name="keywords" content="git, collaboration, patch, requests" />
10    {{template "meta" .}}
11
12    <link rel="stylesheet" href="/static/patchbin.css" />
13    <link rel="stylesheet" href="/static/vars.css" />
14    <link rel="stylesheet" href="/syntax.css" />
15    <script src="/static/semdiff.js" defer></script>
16  </head>
17  <body>
18    <header class="box">
19      <div class="flex flex-col">
20        <nav class="flex gap flex-wrap">
21          <a class="btn-nav {{if eq .Tab ""}}btn-active{{end}}" href="/">patchbin</a>
22          <a class="btn-nav {{if eq .Tab "active"}}btn-active{{end}}" href="/prs/active">active</a>
23          <a class="btn-nav {{if eq .Tab "draft"}}btn-active{{end}}" href="/prs/draft">drafts</a>
24          <a class="btn-nav {{if eq .Tab "inactive"}}btn-active{{end}}" href="/prs/inactive">inactive</a>
25          <a class="btn-nav flex items-center" href="/rss">rss</a>
26        </nav>
27      </div>
28    </header>
29    {{template "body" .}}
30  </body>
31</html>
32{{end}}