diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-19 12:23:24 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-19 12:23:24 -0800 |
commit | 974d3c03e6f8b522b6db88238790497edd299561 (patch) | |
tree | 47ef2a6ca8b6e216149c16ce5cfeb30cdeac0ed7 /addons | |
parent | 268dc651e2d319f8c733f82d4d8694f01ea6030b (diff) |
adding github.com/ponzu-cms/addons/reference as addon
Diffstat (limited to 'addons')
-rw-r--r-- | addons/github.com/ponzu-cms/addons/reference/LICENSE | 29 | ||||
-rw-r--r-- | addons/github.com/ponzu-cms/addons/reference/README.md | 3 | ||||
-rw-r--r-- | addons/github.com/ponzu-cms/addons/reference/reference.go (renamed from addons/reference/reference.go) | 6 |
3 files changed, 35 insertions, 3 deletions
diff --git a/addons/github.com/ponzu-cms/addons/reference/LICENSE b/addons/github.com/ponzu-cms/addons/reference/LICENSE new file mode 100644 index 0000000..720d6cd --- /dev/null +++ b/addons/github.com/ponzu-cms/addons/reference/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2016 Boss Sauce Creative, LLC. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file diff --git a/addons/github.com/ponzu-cms/addons/reference/README.md b/addons/github.com/ponzu-cms/addons/reference/README.md new file mode 100644 index 0000000..57f008c --- /dev/null +++ b/addons/github.com/ponzu-cms/addons/reference/README.md @@ -0,0 +1,3 @@ +# Reference + +A Ponzu addon to embed a reference to a content type from within another content type in the CMS. diff --git a/addons/reference/reference.go b/addons/github.com/ponzu-cms/addons/reference/reference.go index 78e46eb..f90964c 100644 --- a/addons/reference/reference.go +++ b/addons/github.com/ponzu-cms/addons/reference/reference.go @@ -10,8 +10,8 @@ import ( "html/template" "log" - "github.com/bosssauce/ponzu/management/editor" - "github.com/bosssauce/ponzu/system/addon" + "github.com/ponzu-cms/ponzu/management/editor" + "github.com/ponzu-cms/ponzu/system/addon" ) // Select returns the []byte of a <select> HTML element plus internal <options> with a label. @@ -20,7 +20,7 @@ import ( // form of the struct field that this editor input is representing func Select(fieldName string, p interface{}, attrs map[string]string, contentType, tmplString string) []byte { // decode all content type from db into options map - // map["?type=<contentType>&id=<id>"]t.String() + // options in form of map["?type=<contentType>&id=<id>"]t.String() options := make(map[string]string) var all map[string]interface{} |