15 lines
439 B
Go

package character
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, "Character")
func renderHistory(obj interface{}, entries []*arn.EditLogEntry, user *arn.User) string {
return components.CharacterTabs(obj.(*arn.Character), user) + components.EditLog(entries, user)
}