blob: beb6c6b332ed60b7f6921bfc406da7e38ae755b1 [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 "main-styles"}}
<link href="/static/frontend/unit/licenses/licenses.css?version={{.AppVersionLabel}}" rel="stylesheet">
{{end}}
{{define "main-header"}}
{{template "unit-header" .}}
{{end}}
{{define "main-content"}}
{{block "licenses" .Details}}{{end}}
{{end}}
{{define "licenses"}}
{{range .Licenses}}
<section class="License" id="{{.Anchor}}">
<h2 class="go-textTitle">
<div id="#{{.Anchor}}">{{range $i, $e := .Types}}{{if $i}}, {{end}}{{$e}}{{end}}</div>
</h2>
<p>This is not legal advice. <a href="/license-policy">Read disclaimer.</a></p>
<pre class="License-contents">{{printf "%s" .Contents}}</pre>
</section>
<div class="License-source go-textSubtle">Source: {{.Source}}</div>
{{end}}
{{end}}