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