Added AMV editing UI

This commit is contained in:
2018-04-14 23:51:18 +02:00
parent d19542b5aa
commit 42c72b6174
7 changed files with 82 additions and 5 deletions

14
pages/amv/history.go Normal file
View File

@ -0,0 +1,14 @@
package amv
import (
"github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils/history"
)
// History of the edits.
var History = history.Handler(renderHistory, "AMV")
func renderHistory(obj interface{}, entries []*arn.EditLogEntry, user *arn.User) string {
return components.AMVTabs(obj.(*arn.AMV), user) + components.EditLog(entries, user)
}