Browse Source

update activity

pull/2933/head
chenshihai 2 years ago
parent
commit
0b47b007dd
2 changed files with 5 additions and 21 deletions
  1. +2
    -12
      public/home/home.js
  2. +3
    -9
      templates/user/dashboard/feeds.tmpl

+ 2
- 12
public/home/home.js View File

@@ -164,18 +164,8 @@ document.onreadystatechange = function () {
html += " <a href=\"" + getTaskLink(record) + "\" rel=\"nofollow\">" + record.RefName + "</a>"
}
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 = "<a href=\"" + getRepoLink(record) + "/datasets" + "\" rel=\"nofollow\">" + record.Content.split('|')[1] + "</a>";
actionName = actionName.replace('{dataset}', datasetLink);
html += recordPrefix + actionName;
}
else{


+ 3
- 9
templates/user/dashboard/feeds.tmpl View File

@@ -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}}
</p>
{{if or (eq .GetOpType 5) (eq .GetOpType 18)}}
@@ -147,6 +139,8 @@
<span class="text grey"><i class="ri-picture-in-picture-exit-line icon big"></i></span>
{{else if eq .GetOpType 31}}
<span class="text grey"><i class="ri-character-recognition-line icon big"></i></span>
{{else if eq .GetOpType 35}}
<span class="text grey"><i class="thumbs up outline icon big"></i></span>
{{else}}
<span class="text grey">{{svg (printf "octicon-%s" (ActionIcon .GetOpType)) 32}}</span>
{{end}}


Loading…
Cancel
Save