diff --git a/models/cloudbrain_image.go b/models/cloudbrain_image.go index eb21e0d87..f72c6a27c 100644 --- a/models/cloudbrain_image.go +++ b/models/cloudbrain_image.go @@ -45,7 +45,7 @@ type ImageStar struct { } type ImageTopic struct { - ID int64 + ID int64 `xorm:"pk autoincr"` Name string `xorm:"UNIQUE VARCHAR(105)"` ImageCount int CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"` @@ -468,8 +468,13 @@ func (images ImageList) loadAttributes(e Engine, uid int64) error { } for i := range images { - images[i].UserName = users[images[i].UID].Name - images[i].RelAvatarLink = users[images[i].UID].RelAvatarLink() + if users[images[i].UID] != nil { + images[i].UserName = users[images[i].UID].Name + images[i].RelAvatarLink = users[images[i].UID].RelAvatarLink() + } else { + images[i].UserName = "" + images[i].RelAvatarLink = "" + } if uid == -1 { images[i].IsStar = false } else { diff --git a/templates/explore/datasets.tmpl b/templates/explore/datasets.tmpl index 854da4fff..5739ebb10 100644 --- a/templates/explore/datasets.tmpl +++ b/templates/explore/datasets.tmpl @@ -121,7 +121,7 @@ diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl old mode 100644 new mode 100755 index 7cd397527..e3b426d40 --- a/templates/mail/issue/default.tmpl +++ b/templates/mail/issue/default.tmpl @@ -53,6 +53,8 @@ ---
View it on {{AppName}}. +
+ 退订(TD)

diff --git a/templates/mail/notify/collaborator.tmpl b/templates/mail/notify/collaborator.tmpl old mode 100644 new mode 100755 index 947b40439..d878a0ff5 --- a/templates/mail/notify/collaborator.tmpl +++ b/templates/mail/notify/collaborator.tmpl @@ -15,6 +15,8 @@ ---
View it on {{AppName}}. +
+ 退订(TD)

diff --git a/templates/org/create.tmpl b/templates/org/create.tmpl index 607050336..872140efa 100644 --- a/templates/org/create.tmpl +++ b/templates/org/create.tmpl @@ -15,7 +15,7 @@ {{.i18n.Tr "org.org_name_helper"}} -
+
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index 228621771..03311f199 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -43,13 +43,13 @@
-
+
-
+
diff --git a/templates/repo/attachment/upload.tmpl b/templates/repo/attachment/upload.tmpl index 42aac99df..56dc52417 100644 --- a/templates/repo/attachment/upload.tmpl +++ b/templates/repo/attachment/upload.tmpl @@ -13,17 +13,15 @@ {{.CsrfTokenHtml}} - CPU/GPU - NPU - + CPU/GPU + NPU - - - + +