15 lines
426 B
Go
Raw Normal View History

2018-04-14 21:51:18 +00:00
package amv
import (
2019-06-03 09:32:43 +00:00
"github.com/animenotifier/notify.moe/arn"
2018-04-14 21:51:18 +00:00
"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)
}