0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-30 07:38:29 +02:00

adjustment

This commit is contained in:
Lunny Xiao 2026-02-21 21:14:19 -08:00
parent 8b5d048cd8
commit 13b77d314d
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 5 additions and 7 deletions

View File

@ -805,15 +805,14 @@ func (c *Comment) MetaSpecialDoerTr(locale translation.Locale) template.HTML {
case SpecialDoerNameCodeOwners:
return locale.Tr("repo.issues.review.codeowners_rules")
case SpecialDoerNameProjectWorkflow:
res := locale.Tr("repo.issues.project_workflow")
if c.CommentMetaData.ProjectWorkflowID > 0 {
return locale.Tr("repo.issues.project_workflow_action",
htmlutil.HTMLFormat("<span class=\"muted text black tw-font-semibold\">%s</span>", locale.Tr(c.CommentMetaData.ProjectWorkflowEvent.LangKey())),
htmlutil.HTMLFormat("<span class=\"muted text black tw-font-semibold\">%s</span>", c.CommentMetaData.ProjectTitle),
)
res += " <span class=\"muted text black tw-font-semibold\">" + locale.Tr(c.CommentMetaData.ProjectWorkflowEvent.LangKey()) + "</span>"
}
return locale.Tr("repo.issues.project_workflow")
return res
default:
return htmlutil.HTMLFormat("%s", c.CommentMetaData.SpecialDoerName)
}
return template.HTML(c.CommentMetaData.SpecialDoerName)
}
func (c *Comment) TimelineRequestedReviewTr(locale translation.Locale, createdStr template.HTML) template.HTML {

View File

@ -1530,7 +1530,6 @@
"repo.issues.context.delete": "Delete",
"repo.issues.no_content": "No description provided.",
"repo.issues.project_workflow": "Project workflow",
"repo.issues.project_workflow_action": "Workflow %[1]s of Project %[2]s",
"repo.issues.close": "Close Issue",
"repo.issues.comment_pull_merged_at": "merged commit %[1]s into %[2]s %[3]s",
"repo.issues.comment_manually_pull_merged_at": "manually merged commit %[1]s into %[2]s %[3]s",