diff options
author | Steve <nilslice@gmail.com> | 2016-10-19 00:09:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 00:09:28 -0700 |
commit | 0c77f3e89ac26913ce4b7de68fe9f5589ae77d8f (patch) | |
tree | 859e76f6d1335133ba8f62da72f068e79331880c /management/editor/editor.go | |
parent | 2f3985491363dc0658ad8cf3a415a77c1825a67a (diff) | |
parent | c74bcc2ec1be59ded3634de1a871c73d9dffba98 (diff) |
Merge pull request #3 from bosssauce/ponzu-dev
[fundamental feature] Content type posts are sorted by time and cached in Admin, API coming soon.
Diffstat (limited to 'management/editor/editor.go')
-rw-r--r-- | management/editor/editor.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go index dc6f181..3b26adb 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -16,6 +16,13 @@ type Editable interface { MarshalEditor() ([]byte, error) } +// Sortable ensures data is sortable by time +type Sortable interface { + Time() int64 + Touch() int64 + ContentID() int +} + // Editor is a view containing fields to manage content type Editor struct { ViewBuf *bytes.Buffer @@ -45,7 +52,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) { editor.ViewBuf.Write([]byte(`<tr class="col s4 default-fields"><td>`)) publishTime := ` -<div class="row"> +<div class="row content-only __ponzu"> <div class="input-field col s6"> <label class="active">MM</label> <select class="month __ponzu browser-default"> @@ -73,7 +80,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) { </div> </div> -<div class="row"> +<div class="row content-only __ponzu"> <div class="input-field col s3"> <label class="active">HH</label> <input value="" class="hour __ponzu" maxlength="2" type="text" placeholder="HH" /> |