master
ByteList 2019-02-01 11:08:59 +01:00
parent fbc77679a9
commit 20358b29b8
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,7 @@ func retrieveFeeds(ctx *context.Context, options models.GetFeedsOptions) {
} }
// Dashboard render the dashborad page // Dashboard render the dashborad page
func Dashboard(ctx *context.Context) { // showing dashboard see routes.go:417 func Dashboard(ctx *context.Context) { // showing dashboard see routes.go:417
ctxUser := getDashboardContextUser(ctx) ctxUser := getDashboardContextUser(ctx)
if ctx.Written() { if ctx.Written() {
return return
@ -132,6 +132,7 @@ func Dashboard(ctx *context.Context) { // showing dashboard see routes.go:417
} }
ctx.Data["MirrorCount"] = len(mirrors) ctx.Data["MirrorCount"] = len(mirrors)
ctx.Data["Mirrors"] = mirrors ctx.Data["Mirrors"] = mirrors
ctx.Data["Repos"] = mirrors
retrieveFeeds(ctx, models.GetFeedsOptions{ retrieveFeeds(ctx, models.GetFeedsOptions{
RequestedUser: ctxUser, RequestedUser: ctxUser,