content: fix non-redist message
The message indicating that a package is not redistributable is fixed so
that it is only displayed if the unit is non-redistributable and a
package.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
{{block "unit_readme" .Details}}{{end}}
{{end}}
- {{if and .Details.IsPackage .Unit.IsRedistributable}}
+ {{if .Details.IsPackage}}
+ {{if .Unit.IsRedistributable}}
{{block "unit_doc" .Details}}{{end}}
{{else}}
<div class="UnitDetails-contentEmpty">
<p>See our <a href="/license-policy">license policy</a>.</p>
</div>
{{end}}
+ {{end}}
{{if .Details.SourceFiles}}
{{block "unit_files" .Details}}{{end}}
