template: repo: compare: display a warning if the user is not logged in

Signed-off-by: Litchi Pi <litchi.pi@proton.me>
This commit is contained in:
Litchi Pi 2024-12-16 13:44:25 +01:00 committed by litchipi
parent 6836ded397
commit dd4a1107ed
4 changed files with 46 additions and 0 deletions

View file

@ -215,6 +215,10 @@
{{ctx.Locale.Tr "repo.archive.title_date" (DateUtils.AbsoluteLong .Repository.ArchivedUnix)}}
{{end}}
</div>
{{else}}
<div class="ui warning message tw-mb-4">
{{ctx.Locale.Tr "repo.pulls.sign_in_require" .SignInLink}}
</div>
{{end}}
{{if $.IsSigned}}
<div class="pullrequest-form {{if not .Flash}}tw-hidden{{end}}">