blob: 97dcf9bd72651b4ed34e2fb3bacb8dce1e7dd02d [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 "unit-readme"}}
<div class="UnitReadme UnitReadme--expanded js-readme">
<h2 class="UnitReadme-title" id="section-readme">
<img class="go-Icon" height="24" width="24" src="/static/shared/icon/chrome_reader_mode_gm_grey_24dp.svg" alt="">
README
<a class="UnitReadme-idLink" href="#section-readme" aria-label="Go to Readme"></a>
</h2>
{{if .Readme.String }}
<div class="UnitReadme-content" data-test-id="Unit-readmeContent">
<div class="Overview-readmeContent js-readmeContent">{{.Readme}}</div>
</div>
<button class="UnitReadme-expandLink js-readmeExpand"
data-test-id="readme-expand" data-gtmc="readme button"
aria-label="Expand Readme">Expand ▾</button>
<button class="UnitReadme-collapseLink js-readmeCollapse"
data-test-id="readme-collapse" data-gtmc="readme button"
aria-label="Expand Readme">Collapse ▴</button>
{{end}}
</div>
{{end}}