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