|
|
@@ -62,7 +62,7 @@ type CloudbrainStopMsg struct { |
|
|
|
|
|
|
|
func (CloudbrainStopMsg) Data(ctx *TemplateContext) *DefaultWechatTemplate { |
|
|
|
return &DefaultWechatTemplate{ |
|
|
|
First: TemplateValue{Value: setting.CloudbrainStoppedTitle}, |
|
|
|
First: TemplateValue{Value: fmt.Sprintf(setting.CloudbrainStoppedTitle, ctx.Cloudbrain.Status)}, |
|
|
|
Keyword1: TemplateValue{Value: ctx.Cloudbrain.DisplayJobName}, |
|
|
|
Keyword2: TemplateValue{Value: getJobTypeDisplayName(ctx.Cloudbrain.JobType)}, |
|
|
|
Keyword3: TemplateValue{Value: time.Unix(int64(ctx.Cloudbrain.CreatedUnix), 0).Format("2006-01-02 15:04:05")}, |
|
|
|