mirror of
https://github.com/go-gitea/gitea.git
synced 2026-06-30 07:38:29 +02:00
adjustment
This commit is contained in:
parent
8b5d048cd8
commit
13b77d314d
@ -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 {
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user