Added more route tests
This commit is contained in:
14
pages/anime/editanime/history.go
Normal file
14
pages/anime/editanime/history.go
Normal file
@ -0,0 +1,14 @@
|
||||
package editanime
|
||||
|
||||
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, "Anime", "AnimeCharacters", "AnimeRelations", "AnimeEpisodes")
|
||||
|
||||
func renderHistory(obj interface{}, entries []*arn.EditLogEntry, user *arn.User) string {
|
||||
return components.EditAnimeTabs(obj.(*arn.Anime)) + components.EditLog(entries, user)
|
||||
}
|
Reference in New Issue
Block a user