Skip to content

Commit 95ce946

Browse files
committed
handle case of 'repo notification'
1 parent 3f835c6 commit 95ce946

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/user/notification/notification_div.tmpl

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@
3838
{{range $notification := .Notifications}}
3939
<div class="notifications-item gt-df gt-ac gt-fw gt-gap-3 gt-p-3" id="notification_{{.ID}}" data-status="{{.Status}}">
4040
<div class="notifications-icon gt-ml-3 gt-mr-2 gt-self-start gt-mt-2">
41-
{{template "shared/issueicon" .Issue}}
41+
{{if .Issue}}
42+
{{template "shared/issueicon" .Issue}}
43+
{{else}}
44+
{{svg "octicon-repo" 16 "text grey"}}
45+
{{end}}
4246
</div>
4347
<a class="notifications-link gt-df gt-f1 gt-fc silenced" href="{{.Link}}">
4448
<div class="notifications-top-row gt-font-13">

0 commit comments

Comments
 (0)