a73x

src/server/http/templates/base.html

Ref:   Size: 1.5 KiB

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>{% block title %}{{ site_title }}{% endblock %}</title>
  <style>
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: monospace; font-size: 14px; line-height: 1.6; }
    a { color: #0366d6; }
    table { border-collapse: collapse; width: 100%; }
    th, td { text-align: left; padding: 4px 8px; }
    th { font-weight: normal; color: #666; }
    td { border-top: 1px solid #eee; }
    pre { padding: 8px; background: #f8f8f8; overflow-x: auto; }
    .badge { font-size: 11px; color: #666; }
    .status-open { color: green; }
    .status-closed { color: red; }
    .diff-add { color: green; }
    .diff-del { color: red; }
    .diff-hunk { color: #666; }
    .diff-file { font-weight: bold; border-top: 1px solid #ccc; padding-top: 8px; }
    .header { padding: 8px 16px; border-bottom: 1px solid #ccc; display: flex; align-items: baseline; gap: 16px; }
    .header a { text-decoration: none; }
    .header .site { font-weight: bold; }
    .header nav { display: flex; gap: 12px; }
    .header nav a.active { font-weight: bold; }
    .content { padding: 16px; max-width: 1200px; margin: 0 auto; }
  </style>
</head>
<body>
  <div class="header">
    <a class="site" href="/">{{ site_title }}</a>
    {% block nav %}{% endblock %}
  </div>
  <div class="content">
    {% block body %}{% endblock %}
  </div>
</body>
</html>