2018-03-09 18:04:06 +00:00
|
|
|
package editlog
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/aerogo/aero"
|
|
|
|
)
|
|
|
|
|
2018-04-09 11:44:02 +00:00
|
|
|
const (
|
|
|
|
entriesFirstLoad = 120
|
2018-04-09 16:17:21 +00:00
|
|
|
entriesPerScroll = 40
|
2018-04-09 11:44:02 +00:00
|
|
|
)
|
2018-03-09 18:04:06 +00:00
|
|
|
|
2020-02-10 08:58:35 +00:00
|
|
|
// Full edit log.
|
|
|
|
func Full(ctx aero.Context) error {
|
|
|
|
return render(ctx, false)
|
|
|
|
}
|
2018-03-09 18:04:06 +00:00
|
|
|
|
2020-02-10 08:58:35 +00:00
|
|
|
// Compact edit log.
|
|
|
|
func Compact(ctx aero.Context) error {
|
|
|
|
return render(ctx, true)
|
2018-03-09 18:04:06 +00:00
|
|
|
}
|