mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-24 08:36:20 +00:00
- Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`. - Resolves forgejo/discussions#258 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7337 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Reviewed-by: Beowulf <beowulf@beocode.eu> Reviewed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
22 lines
465 B
Go
22 lines
465 B
Go
// Copyright 2016 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//go:build bindata
|
|
|
|
package templates
|
|
|
|
import (
|
|
"time"
|
|
|
|
"forgejo.org/modules/assetfs"
|
|
"forgejo.org/modules/timeutil"
|
|
)
|
|
|
|
// GlobalModTime provide a global mod time for embedded asset files
|
|
func GlobalModTime(filename string) time.Time {
|
|
return timeutil.GetExecutableModTime()
|
|
}
|
|
|
|
func BuiltinAssets() *assetfs.Layer {
|
|
return assetfs.Bindata("builtin(bindata)", Assets)
|
|
}
|