0
0
mirror of https://github.com/rls-moe/nyx synced 2024-11-22 22:12:24 +00:00

Resource Fixes

This commit is contained in:
Tim Schuster 2017-03-15 14:39:57 +01:00
parent bc23a66bb0
commit e5cdbe7211
No known key found for this signature in database
GPG Key ID: F9E27097EFB77F61
14 changed files with 9 additions and 9 deletions

View File

@ -19,7 +19,7 @@ var (
func LoadTemplates() error { func LoadTemplates() error {
var err error var err error
box, err := rice.FindBox("res/") box, err := rice.FindBox("admin_res/")
if err != nil { if err != nil {
panic(err) panic(err)
} }

View File

@ -40,8 +40,8 @@ func init() {
dir1.ChildDirs = []*embedded.EmbeddedDir{} dir1.ChildDirs = []*embedded.EmbeddedDir{}
// register embeddedBox // register embeddedBox
embedded.RegisterEmbeddedBox(`res/`, &embedded.EmbeddedBox{ embedded.RegisterEmbeddedBox(`admin_res/`, &embedded.EmbeddedBox{
Name: `res/`, Name: `admin_res/`,
Time: time.Unix(1489566364, 0), Time: time.Unix(1489566364, 0),
Dirs: map[string]*embedded.EmbeddedDir{ Dirs: map[string]*embedded.EmbeddedDir{
"": dir1, "": dir1,

View File

@ -48,7 +48,7 @@ var (
) )
func LoadTemplates() error { func LoadTemplates() error {
box, err := rice.FindBox("res/") box, err := rice.FindBox("board_res/")
if err != nil { if err != nil {
return err return err
} }

View File

@ -46,8 +46,8 @@ func init() {
dir1.ChildDirs = []*embedded.EmbeddedDir{} dir1.ChildDirs = []*embedded.EmbeddedDir{}
// register embeddedBox // register embeddedBox
embedded.RegisterEmbeddedBox(`res/`, &embedded.EmbeddedBox{ embedded.RegisterEmbeddedBox(`board_res/`, &embedded.EmbeddedBox{
Name: `res/`, Name: `board_res/`,
Time: time.Unix(1489566591, 0), Time: time.Unix(1489566591, 0),
Dirs: map[string]*embedded.EmbeddedDir{ Dirs: map[string]*embedded.EmbeddedDir{
"": dir1, "": dir1,

View File

@ -14,7 +14,7 @@ var (
) )
func LoadTemplates() error { func LoadTemplates() error {
box, err := rice.FindBox("res/") box, err := rice.FindBox("errw_res/")
if err != nil { if err != nil {
return err return err
} }

View File

@ -28,8 +28,8 @@ func init() {
dir1.ChildDirs = []*embedded.EmbeddedDir{} dir1.ChildDirs = []*embedded.EmbeddedDir{}
// register embeddedBox // register embeddedBox
embedded.RegisterEmbeddedBox(`res/`, &embedded.EmbeddedBox{ embedded.RegisterEmbeddedBox(`errw_res/`, &embedded.EmbeddedBox{
Name: `res/`, Name: `errw_res/`,
Time: time.Unix(1489240168, 0), Time: time.Unix(1489240168, 0),
Dirs: map[string]*embedded.EmbeddedDir{ Dirs: map[string]*embedded.EmbeddedDir{
"": dir1, "": dir1,