summaryrefslogtreecommitdiff
path: root/system/admin/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/admin/admin.go')
-rw-r--r--system/admin/admin.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go
index 9ddff84..78f607d 100644
--- a/system/admin/admin.go
+++ b/system/admin/admin.go
@@ -8,10 +8,10 @@ import (
"html/template"
"net/http"
- "github.com/bosssauce/ponzu/content"
"github.com/bosssauce/ponzu/system/admin/user"
"github.com/bosssauce/ponzu/system/api/analytics"
"github.com/bosssauce/ponzu/system/db"
+ "github.com/bosssauce/ponzu/system/item"
)
var startAdminHTML = `<!doctype html>
@@ -104,7 +104,7 @@ func Admin(view []byte) ([]byte, error) {
a := admin{
Logo: string(cfg),
- Types: content.Types,
+ Types: item.Types,
Subview: template.HTML(view),
}
@@ -169,17 +169,17 @@ var initAdminHTML = `
func Init() ([]byte, error) {
html := startAdminHTML + initAdminHTML + endAdminHTML
- cfg, err := db.Config("name")
+ name, err := db.Config("name")
if err != nil {
return nil, err
}
- if cfg == nil {
- cfg = []byte("")
+ if name == nil {
+ name = []byte("")
}
a := admin{
- Logo: string(cfg),
+ Logo: string(name),
}
buf := &bytes.Buffer{}