From 0b47b007ddad02a3804bbbacceec64546ebf10ff Mon Sep 17 00:00:00 2001
From: chenshihai
Date: Thu, 22 Sep 2022 16:42:43 +0800
Subject: [PATCH] update activity
---
public/home/home.js | 14 ++------------
templates/user/dashboard/feeds.tmpl | 12 +++---------
2 files changed, 5 insertions(+), 21 deletions(-)
diff --git a/public/home/home.js b/public/home/home.js
index 4127362c0..c1849b3e3 100755
--- a/public/home/home.js
+++ b/public/home/home.js
@@ -164,18 +164,8 @@ document.onreadystatechange = function () {
html += " " + record.RefName + ""
}
else if(record.OpType == "35"){
- var datasetLink = '';
- actionName.replace('{dataset}', datasetLink);
- html += recordPrefix + actionName;
- }
- else if(record.OpType == "36"){
- var imageLink = '';
- actionName.replace('{image}', imageLink);
- html += recordPrefix + actionName;
- }
- else if(record.OpType == "37"){
- var imageLink = '';
- actionName.replace('{image}', imageLink);
+ var datasetLink = "" + record.Content.split('|')[1] + "";
+ actionName = actionName.replace('{dataset}', datasetLink);
html += recordPrefix + actionName;
}
else{
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl
index f3ec10c4a..c2da66ff5 100755
--- a/templates/user/dashboard/feeds.tmpl
+++ b/templates/user/dashboard/feeds.tmpl
@@ -90,16 +90,8 @@
{{$.i18n.Tr "action.task_c2netnputrainjob" .GetRepoLink .Content .RefName | Str2html}}
{{else if eq .GetOpType 33}}
{{$.i18n.Tr "action.task_c2netgputrainjob" .GetRepoLink .Content .RefName | Str2html}}
- {{else if eq .GetOpType 34}}
- {{$.i18n.Tr "action.binded_wechat"}}
{{else if eq .GetOpType 35}}
- {{$.i18n.Tr "action.dataset_recommended" .GetRepoLink | Str2html}}
- {{else if eq .GetOpType 36}}
- {{$.i18n.Tr "action.create_image" .GetRepoLink | Str2html}}
- {{else if eq .GetOpType 37}}
- {{$.i18n.Tr "action.image_recommended" .GetRepoLink | Str2html}}
- {{else if eq .GetOpType 38}}
- {{$.i18n.Tr "action.update_user_avatar"}}
+ {{$.i18n.Tr "action.dataset_recommended" .GetRepoLink (index .GetIssueInfos 1 | RenderEmoji) | Str2html}}
{{end}}
{{if or (eq .GetOpType 5) (eq .GetOpType 18)}}
@@ -147,6 +139,8 @@
{{else if eq .GetOpType 31}}
+ {{else if eq .GetOpType 35}}
+
{{else}}
{{svg (printf "octicon-%s" (ActionIcon .GetOpType)) 32}}
{{end}}