|
|
@ -22,13 +22,13 @@ import ( |
|
|
|
func RunnersList(ctx *context.Context, tplName base.TplName, opts actions_model.FindRunnerOptions) { |
|
|
|
func RunnersList(ctx *context.Context, tplName base.TplName, opts actions_model.FindRunnerOptions) { |
|
|
|
count, err := actions_model.CountRunners(ctx, opts) |
|
|
|
count, err := actions_model.CountRunners(ctx, opts) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("AdminRunners", err) |
|
|
|
ctx.ServerError("CountRunners", err) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
runners, err := actions_model.FindRunners(ctx, opts) |
|
|
|
runners, err := actions_model.FindRunners(ctx, opts) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("AdminRunners", err) |
|
|
|
ctx.ServerError("FindRunners", err) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
if err := runners.LoadAttributes(ctx); err != nil { |
|
|
|
if err := runners.LoadAttributes(ctx); err != nil { |
|
|
|