15 lines
423 B
Go
15 lines
423 B
Go
package quote
|
|
|
|
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, "Quote")
|
|
|
|
func renderHistory(obj interface{}, entries []*arn.EditLogEntry, user *arn.User) string {
|
|
return components.QuoteTabs(obj.(*arn.Quote), user) + components.EditLog(entries, user)
|
|
}
|