diff --git a/files.go b/files.go index 74a434c..829f26a 100644 --- a/files.go +++ b/files.go @@ -55,6 +55,7 @@ func uploadImageForm(t template.Template, data template.Data , s session.Session return } data["id"] = id + data["active"] = "upload" diff --git a/gallery.go b/gallery.go index 4972ccb..1e4e60e 100644 --- a/gallery.go +++ b/gallery.go @@ -171,6 +171,8 @@ func galleryEdit(t template.Template,data template.Data, c flamego.Context) { return } data["gallery"] = galleries[0] + data["id"] = galleries[0].Id + data["active"] = "general" t.HTML(http.StatusOK, "gallery_edit") diff --git a/templates/file_upload.tmpl b/templates/file_upload.tmpl index b338695..04ea3aa 100644 --- a/templates/file_upload.tmpl +++ b/templates/file_upload.tmpl @@ -1,11 +1,26 @@ -{{template "top" .}} + -
-
-

Dashboard

-
+ + {{template "top" .}} + + + +
+
+
+ {{template "gallery_nav" .}} +
+ +
+
+
+ +
-
+