mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 07:43:18 -05:00
Fix 500 error caused by notifications without an issue such as repo transfers (#25101)
This commit is contained in:
parent
036fb7861f
commit
379ec13030
1 changed files with 6 additions and 2 deletions
|
@ -46,7 +46,7 @@
|
||||||
</div>
|
</div>
|
||||||
<a class="notifications-link gt-df gt-f1 gt-fc silenced" href="{{.Link}}">
|
<a class="notifications-link gt-df gt-f1 gt-fc silenced" href="{{.Link}}">
|
||||||
<div class="notifications-top-row gt-font-13">
|
<div class="notifications-top-row gt-font-13">
|
||||||
{{.Repository.FullName}} <span class="text light-3">#{{.Issue.Index}}</span>
|
{{.Repository.FullName}} {{if .Issue}}<span class="text light-3">#{{.Issue.Index}}</span>{{end}}
|
||||||
{{if eq .Status 3}}
|
{{if eq .Status 3}}
|
||||||
{{svg "octicon-pin" 13 "text blue gt-mt-1 gt-ml-2"}}
|
{{svg "octicon-pin" 13 "text blue gt-mt-1 gt-ml-2"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -62,7 +62,11 @@
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div class="notifications-updated gt-ac gt-mr-3">
|
<div class="notifications-updated gt-ac gt-mr-3">
|
||||||
|
{{if .Issue}}
|
||||||
{{TimeSinceUnix .Issue.UpdatedUnix $locale}}
|
{{TimeSinceUnix .Issue.UpdatedUnix $locale}}
|
||||||
|
{{else}}
|
||||||
|
{{TimeSinceUnix .UpdatedUnix $locale}}
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="notifications-buttons gt-ac gt-je gt-gap-2 gt-px-2">
|
<div class="notifications-buttons gt-ac gt-je gt-gap-2 gt-px-2">
|
||||||
{{if ne .Status 3}}
|
{{if ne .Status 3}}
|
||||||
|
|
Loading…
Reference in a new issue