mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Remove unnecessary helper function DateFmtLong (#24343)
				
					
				
			After #24317 this function is only used in one place where it is not needed. I confirmed the timestamp still renders correctly Signed-off-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
		| @@ -141,9 +141,6 @@ func NewFuncMap() []template.FuncMap { | |||||||
| 		"TimeSinceUnix": timeutil.TimeSinceUnix, | 		"TimeSinceUnix": timeutil.TimeSinceUnix, | ||||||
| 		"DateTime":      timeutil.DateTime, | 		"DateTime":      timeutil.DateTime, | ||||||
| 		"Sec2Time":      util.SecToTime, | 		"Sec2Time":      util.SecToTime, | ||||||
| 		"DateFmtLong": func(t time.Time) string { |  | ||||||
| 			return t.Format(time.RFC3339) |  | ||||||
| 		}, |  | ||||||
| 		"LoadTimes": func(startTime time.Time) string { | 		"LoadTimes": func(startTime time.Time) string { | ||||||
| 			return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms" | 			return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms" | ||||||
| 		}, | 		}, | ||||||
|   | |||||||
| @@ -21,7 +21,7 @@ | |||||||
| 						<td><button type="submit" class="ui green button" name="op" value="{{.Name}}" title="{{$.locale.Tr "admin.dashboard.operation_run"}}">{{svg "octicon-triangle-right"}}</button></td> | 						<td><button type="submit" class="ui green button" name="op" value="{{.Name}}" title="{{$.locale.Tr "admin.dashboard.operation_run"}}">{{svg "octicon-triangle-right"}}</button></td> | ||||||
| 						<td>{{$.locale.Tr (printf "admin.dashboard.%s" .Name)}}</td> | 						<td>{{$.locale.Tr (printf "admin.dashboard.%s" .Name)}}</td> | ||||||
| 						<td>{{.Spec}}</td> | 						<td>{{.Spec}}</td> | ||||||
| 						<td>{{DateTime "full" (DateFmtLong .Next)}}</td> | 						<td>{{DateTime "full" .Next}}</td> | ||||||
| 						<td>{{if gt .Prev.Year 1}}{{DateTime "full" .Prev}}{{else}}N/A{{end}}</td> | 						<td>{{if gt .Prev.Year 1}}{{DateTime "full" .Prev}}{{else}}N/A{{end}}</td> | ||||||
| 						<td>{{.ExecTimes}}</td> | 						<td>{{.ExecTimes}}</td> | ||||||
| 						<td {{if ne .Status ""}}data-tooltip-content="{{.FormatLastMessage $.locale}}"{{end}} >{{if eq .Status ""}}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}}</td> | 						<td {{if ne .Status ""}}data-tooltip-content="{{.FormatLastMessage $.locale}}"{{end}} >{{if eq .Status ""}}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}}</td> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user