Backport #24339 by @yardenshoham
I made it render the script even if the repo is archived
- Fixes #24324
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Yarden Shoham <git@yardenshoham.com>
git push -u origin {{.Repository.DefaultBranch}}</code></pre>
</div>
</div>
- {{template "repo/clone_script" .}}
{{end}}
{{else}}
<div class="ui segment center">
{{.locale.Tr "repo.empty_message"}}
</div>
{{end}}
+ {{template "repo/clone_script" .}}
</div>
</div>
</div>