mirror of https://github.com/go-gitea/gitea
Commit
This commit is contained in:
parent
4e1aed8a61
commit
2fc2f63c6c
|
@ -131,7 +131,7 @@ const (
|
|||
// 35 pr was un scheduled to auto merge when checks succeed
|
||||
CommentTypePRUnScheduledToAutoMerge
|
||||
// 36 Change plan time
|
||||
CommentTypeChangePlanTime
|
||||
CommentTypeChangeTimeEstimate
|
||||
)
|
||||
|
||||
var commentStrings = []string{
|
||||
|
|
|
@ -795,7 +795,7 @@ func ChangeIssuePlanTime(issue *Issue, doer *user_model.User, planTimeHours, pla
|
|||
}
|
||||
|
||||
opts := &CreateCommentOptions{
|
||||
Type: CommentTypeChangePlanTime,
|
||||
Type: CommentTypeChangeTimeEstimate,
|
||||
Doer: doer,
|
||||
Repo: issue.Repo,
|
||||
Issue: issue,
|
||||
|
|
|
@ -1302,8 +1302,8 @@ issues.remove_assignee_at = `was unassigned by <b>%s</b> %s`
|
|||
issues.remove_self_assignment = `removed their assignment %s`
|
||||
issues.change_title_at = `changed title from <b><strike>%s</strike></b> to <b>%s</b> %s`
|
||||
issues.tracker_estimate = `Time Estimate`
|
||||
issues.change_plan_time_at = `changed planned time to <b>%d hour %d minutes</b> %s`
|
||||
issues.remove_plan_time = `removed planned time %s`
|
||||
issues.change_time_estimate_at = `changed planned time to <b>%d hour %d minutes</b> %s`
|
||||
issues.remove_time_estimate = `removed planned time %s`
|
||||
issues.change_ref_at = `changed reference from <b><strike>%s</strike></b> to <b>%s</b> %s`
|
||||
issues.remove_ref_at = `removed reference <b>%s</b> %s`
|
||||
issues.add_ref_at = `added reference <b>%s</b> %s`
|
||||
|
|
|
@ -793,16 +793,16 @@
|
|||
{{else}}{{$.locale.Tr "repo.pulls.auto_merge_canceled_schedule_comment" $createdStr | Safe}}{{end}}
|
||||
</span>
|
||||
</div>
|
||||
{{else if eq .Type 1001}}
|
||||
{{else if eq .Type 36}}
|
||||
<div class="timeline-item event" id="{{.HashTag}}">
|
||||
<span class="badge">{{svg "octicon-clock"}}</span>
|
||||
{{template "shared/user/avatarlink" Dict "Context" $.Context "user" .Poster}}
|
||||
<span class="text grey muted-links">
|
||||
{{template "shared/user/authorlink" .Poster}}
|
||||
{{if and (eq .PlanTimeHours 0) (eq .PlanTimeMinutes 0)}}
|
||||
{{$.locale.Tr "repo.issues.remove_plan_time" $createdStr | Safe}}
|
||||
{{$.locale.Tr "repo.issues.remove_time_estimate" $createdStr | Safe}}
|
||||
{{else}}
|
||||
{{$.locale.Tr "repo.issues.change_plan_time_at" (.PlanTimeHours) (.PlanTimeMinutes) $createdStr | Safe}}
|
||||
{{$.locale.Tr "repo.issues.change_time_estimate_at" (.PlanTimeHours) (.PlanTimeMinutes) $createdStr | Safe}}
|
||||
{{end}}
|
||||
</span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue