diff options
author | Yarden Shoham <git@yardenshoham.com> | 2023-04-26 09:52:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 02:52:50 -0400 |
commit | eea23bbc8ebb7589b4291d23b37106a32d81a834 (patch) | |
tree | cd4a4d5f1daa48e975d0dcb83594b51731fea6b4 /templates/admin | |
parent | fb37eefa282543fd8ce63c361cd4cf0dfac9943c (diff) | |
download | gitea-eea23bbc8ebb7589b4291d23b37106a32d81a834.tar.gz gitea-eea23bbc8ebb7589b4291d23b37106a32d81a834.zip |
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>
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/cron.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/cron.tmpl b/templates/admin/cron.tmpl index 267da00759..6ab37ca354 100644 --- a/templates/admin/cron.tmpl +++ b/templates/admin/cron.tmpl @@ -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>{{$.locale.Tr (printf "admin.dashboard.%s" .Name)}}</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>{{.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> |