2016-12-06 10:58:31 -07:00
|
|
|
// Copyright 2016 The Gitea Authors. All rights reserved.
|
2022-11-27 11:20:29 -07:00
|
|
|
// SPDX-License-Identifier: MIT
|
2016-12-06 10:58:31 -07:00
|
|
|
|
2021-08-24 09:47:09 -07:00
|
|
|
//go:build bindata
|
|
|
|
|
2016-12-06 10:58:31 -07:00
|
|
|
package templates
|
|
|
|
|
|
|
|
import (
|
2022-01-06 19:33:17 -07:00
|
|
|
"time"
|
2016-12-06 10:58:31 -07:00
|
|
|
|
2023-04-12 03:16:45 -07:00
|
|
|
"code.gitea.io/gitea/modules/assetfs"
|
2022-01-06 19:33:17 -07:00
|
|
|
"code.gitea.io/gitea/modules/timeutil"
|
2016-12-06 10:58:31 -07:00
|
|
|
)
|
|
|
|
|
2022-01-10 02:32:37 -07:00
|
|
|
// GlobalModTime provide a global mod time for embedded asset files
|
2022-01-06 19:33:17 -07:00
|
|
|
func GlobalModTime(filename string) time.Time {
|
|
|
|
return timeutil.GetExecutableModTime()
|
|
|
|
}
|
|
|
|
|
2023-04-12 03:16:45 -07:00
|
|
|
func BuiltinAssets() *assetfs.Layer {
|
|
|
|
return assetfs.Bindata("builtin(bindata)", Assets)
|
2020-02-01 19:17:44 -07:00
|
|
|
}
|