2018-04-10 19:25:45 +00:00
|
|
|
package character
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/animenotifier/arn"
|
|
|
|
"github.com/animenotifier/notify.moe/components"
|
2018-04-10 20:12:32 +00:00
|
|
|
"github.com/animenotifier/notify.moe/utils/history"
|
2018-04-10 19:25:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// History of the edits.
|
2018-04-10 20:12:32 +00:00
|
|
|
var History = history.Handler(renderHistory, "Character")
|
2018-04-10 19:25:45 +00:00
|
|
|
|
2018-04-10 20:12:32 +00:00
|
|
|
func renderHistory(obj interface{}, entries []*arn.EditLogEntry, user *arn.User) string {
|
|
|
|
return components.CharacterTabs(obj.(*arn.Character), user) + components.EditLog(entries, user)
|
2018-04-10 19:25:45 +00:00
|
|
|
}
|