From ac82561825ab76f2b5db5c4086541e590fcb70cb Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 11 Jan 2017 11:37:56 -0800 Subject: extending the "addon" platform within ponzu to register, present and manage addons --- system/admin/config/config.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'system/admin') diff --git a/system/admin/config/config.go b/system/admin/config/config.go index 2bc80c6..7b57dc0 100644 --- a/system/admin/config/config.go +++ b/system/admin/config/config.go @@ -8,7 +8,6 @@ import ( // Config represents the confirgurable options of the system type Config struct { item.Item - editor editor.Editor Name string `json:"name"` Domain string `json:"domain"` @@ -23,9 +22,6 @@ type Config struct { // String partially implements item.Identifiable and overrides Item's String() func (c *Config) String() string { return c.Name } -// Editor partially implements editor.Editable -func (c *Config) Editor() *editor.Editor { return &c.editor } - // MarshalEditor writes a buffer of html to edit a Post and partially implements editor.Editable func (c *Config) MarshalEditor() ([]byte, error) { view, err := editor.Form(c, @@ -90,7 +86,13 @@ func (c *Config) MarshalEditor() ([]byte, error) { return nil, err } - open := []byte(`
`) + open := []byte(` +
+
+
System Configuration
+
+ + `) close := []byte(`
`) script := []byte(`