templates/master.tmpl
browsing at commit = 77397b212d0d732ef2490d1693232ba2f72a756c
<% c++ #include "content.h" %>
<% c++ #include "util.h" %>
<% skin git %>
<% view master uses content::master %>
<% template render() %><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><%= title %> · git</title>
<script src="/static/theme.js"></script>
<link rel="stylesheet" href="/static/highlight.css">
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<header class="topbar">
<a class="brand" href="/">git</a>
<a href="/repos">repos</a>
<% if (content.repo.length() == 0) %>
<a href="/about">about</a>
<% end %>
<% if (content.repo.length() > 0) %>
<span class="sep">/</span>
<a href="/repos/<%= repo %><%= query %>"><%= repo %></a>
<nav class="repo-nav">
<a href="/repos/<%= repo %>/tree/<%= query %>">files</a>
<a href="/repos/<%= repo %>/log/<%= query %>">log</a>
<a href="/repos/<%= repo %>/branches/">branches</a>
<a href="/repos/<%= repo %>/tags/">tags</a>
</nav>
<% end %>
<button type="button" class="theme-toggle<% if (content.repo.length() == 0) %> push<% end %>" aria-label="Toggle theme">🌙</button>
</header>
<main><% include content_body() %></main>
<script src="/static/highlight.min.js"></script>
<script src="/static/cmake.min.js"></script>
<script src="/static/dockerfile.min.js"></script>
<script src="/static/terraform.min.js"></script>
<script src="/static/marked.min.js"></script>
<script src="/static/purify.min.js"></script>
<script src="/static/app.js"></script>
</body>
</html><% end template %>
<% template content_body() %><% end template %>
<% end view %>
<% end skin %>