summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/item.go7
-rw-r--r--management/editor/editor.go1
2 files changed, 7 insertions, 1 deletions
diff --git a/content/item.go b/content/item.go
index 7bb25db..79d0197 100644
--- a/content/item.go
+++ b/content/item.go
@@ -8,7 +8,12 @@ type Item struct {
Updated int64 `json:"updated"`
}
-// Time implements the Sortable interface
+// Time partially implements the Sortable interface
func (i Item) Time() int64 {
return i.Timestamp
}
+
+// ContentID partially implements the Sortable interface
+func (i Item) ContentID() int {
+ return i.ID
+}
diff --git a/management/editor/editor.go b/management/editor/editor.go
index 9ad7690..1525ef9 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -19,6 +19,7 @@ type Editable interface {
// Sortable ensures data is sortable by time
type Sortable interface {
Time() int64
+ ContentID() int
}
// Editor is a view containing fields to manage content