2018-03-13 16:59:16 +00:00
|
|
|
package editanime
|
|
|
|
|
|
|
|
import (
|
2019-06-03 09:32:43 +00:00
|
|
|
"github.com/animenotifier/notify.moe/arn"
|
2018-03-13 16:59:16 +00:00
|
|
|
"github.com/animenotifier/notify.moe/components"
|
2018-04-10 20:12:32 +00:00
|
|
|
"github.com/animenotifier/notify.moe/utils/history"
|
2018-03-13 16:59:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// History of the edits.
|
2020-11-06 21:37:41 +00:00
|
|
|
var History = history.Handler(renderHistory, "Anime", "AnimeCharacters", "AnimeRelations")
|
2018-03-13 16:59:16 +00:00
|
|
|
|
2018-04-10 20:12:32 +00:00
|
|
|
func renderHistory(obj interface{}, entries []*arn.EditLogEntry, user *arn.User) string {
|
|
|
|
return components.EditAnimeTabs(obj.(*arn.Anime)) + components.EditLog(entries, user)
|
2018-03-13 16:59:16 +00:00
|
|
|
}
|