content/static/html: use a single link for licenses
The header is updated so that a single link to the license tab is shown,
instead of a separate anchor link to each license.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
</span>
<span class="UnitHeader-detailItem">
<img height="16px" width="16px" src="/static/img/pkg-icon-scale_16x16.svg">
+ {{if .Licenses}}
+ <a href="{{$.CanonicalURLPath}}?tab=licenses">
{{range $i, $e := .Licenses}}
- {{if $i}}, {{end}}
- <a href="{{$.CanonicalURLPath}}?tab=licenses#{{.Anchor}}">{{$e.Type}}</a>
+ {{if $i}}, {{end}} {{$e.Type}}
+ {{end}}
+ </a>
{{else}}
<span>None detected</span>
<a href="/license-policy" class="Disclaimer-link"><em>not legal advice</em></a>
