blob: 89b54a9bef3bb230ab35a54271072c9f283ab1c3 [file] [log] [blame]
<!--
Copyright 2020 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
{{define "layout"}}
{{- /*gotype: golang.org/x/build/internal/relui.homeResponse*/ -}}
<!DOCTYPE html>
<html lang="en">
<title>{{with .SiteHeader.Subtitle}}{{.}}{{else}}{{.SiteHeader.Title}}{{end}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="{{baseLink "/static/styles.css"}}" />
<script async defer src="{{baseLink "/static/site.js"}}"></script>
<body class="Site">
<header class="Site-header {{.SiteHeader.CSSClass}}">
<div class="Header">
<h1 class="Header-title"><a href="{{baseLink "/"}}" class="Header-link">{{.SiteHeader.Title}}</a></h1>
</div>
</header>
<div class="Site-bodyWrapper">
<nav class="Site-navigation">
{{$name := .SiteHeader.NameParam}}
<a href="{{baseLink "/"}}" class="Site-navigationRow {{if eq $name "All Workflows"}}Site-navigationRow--active{{end}}">
<div class="Site-navigationRowName">All Workflows</div>
<div class="Site-navigationRowCount">
<div class="Site-navigationRowCountBadge">{{allWorkflowsCount}}</div>
</div>
</a>
{{range sidebarWorkflows}}
{{- /*gotype: golang.org/x/build/internal/relui/db.WorkflowSidebarRow*/ -}}
<a href="{{baseLink "/"}}?name={{.Name.String}}" class="Site-navigationRow {{if eq $name .Name.String}}Site-navigationRow--active{{end}}">
<div class="Site-navigationRowName">{{.Name.String}}</div>
<div class="Site-navigationRowCount">
<span class="Site-navigationRowCountBadge">{{.Count}}</span>
</div>
</a>
{{end}}
</nav>
<main class="Site-content">
{{block "content" .}}{{end}}
</main>
</div>
</body>
</html>
{{end}}