Added AMV editing UI
This commit is contained in:
14
pages/amv/history.go
Normal file
14
pages/amv/history.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user