16 lines
444 B
Go
Raw Normal View History

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