mirror of
https://github.com/rls-moe/nyx
synced 2024-12-24 12:17:16 +00:00
Resource Fixes
This commit is contained in:
parent
bc23a66bb0
commit
e5cdbe7211
@ -19,7 +19,7 @@ var (
|
||||
|
||||
func LoadTemplates() error {
|
||||
var err error
|
||||
box, err := rice.FindBox("res/")
|
||||
box, err := rice.FindBox("admin_res/")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
@ -40,8 +40,8 @@ func init() {
|
||||
dir1.ChildDirs = []*embedded.EmbeddedDir{}
|
||||
|
||||
// register embeddedBox
|
||||
embedded.RegisterEmbeddedBox(`res/`, &embedded.EmbeddedBox{
|
||||
Name: `res/`,
|
||||
embedded.RegisterEmbeddedBox(`admin_res/`, &embedded.EmbeddedBox{
|
||||
Name: `admin_res/`,
|
||||
Time: time.Unix(1489566364, 0),
|
||||
Dirs: map[string]*embedded.EmbeddedDir{
|
||||
"": dir1,
|
||||
|
@ -48,7 +48,7 @@ var (
|
||||
)
|
||||
|
||||
func LoadTemplates() error {
|
||||
box, err := rice.FindBox("res/")
|
||||
box, err := rice.FindBox("board_res/")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -46,8 +46,8 @@ func init() {
|
||||
dir1.ChildDirs = []*embedded.EmbeddedDir{}
|
||||
|
||||
// register embeddedBox
|
||||
embedded.RegisterEmbeddedBox(`res/`, &embedded.EmbeddedBox{
|
||||
Name: `res/`,
|
||||
embedded.RegisterEmbeddedBox(`board_res/`, &embedded.EmbeddedBox{
|
||||
Name: `board_res/`,
|
||||
Time: time.Unix(1489566591, 0),
|
||||
Dirs: map[string]*embedded.EmbeddedDir{
|
||||
"": dir1,
|
||||
|
@ -14,7 +14,7 @@ var (
|
||||
)
|
||||
|
||||
func LoadTemplates() error {
|
||||
box, err := rice.FindBox("res/")
|
||||
box, err := rice.FindBox("errw_res/")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -28,8 +28,8 @@ func init() {
|
||||
dir1.ChildDirs = []*embedded.EmbeddedDir{}
|
||||
|
||||
// register embeddedBox
|
||||
embedded.RegisterEmbeddedBox(`res/`, &embedded.EmbeddedBox{
|
||||
Name: `res/`,
|
||||
embedded.RegisterEmbeddedBox(`errw_res/`, &embedded.EmbeddedBox{
|
||||
Name: `errw_res/`,
|
||||
Time: time.Unix(1489240168, 0),
|
||||
Dirs: map[string]*embedded.EmbeddedDir{
|
||||
"": dir1,
|
||||
|
Loading…
Reference in New Issue
Block a user