|
|
@ -194,11 +194,6 @@ func Profile(ctx *middleware.Context) { |
|
|
|
ctx.Redirect(setting.AppSubUrl + "/org/" + u.Name) |
|
|
|
ctx.Redirect(setting.AppSubUrl + "/org/" + u.Name) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// For security reason, hide e-mail address for anonymous visitors.
|
|
|
|
|
|
|
|
if !ctx.IsSigned { |
|
|
|
|
|
|
|
u.Email = "" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ctx.Data["Owner"] = u |
|
|
|
ctx.Data["Owner"] = u |
|
|
|
|
|
|
|
|
|
|
|
tab := ctx.Query("tab") |
|
|
|
tab := ctx.Query("tab") |
|
|
@ -262,7 +257,7 @@ func Email2User(ctx *middleware.Context) { |
|
|
|
ctx.Redirect(setting.AppSubUrl + "/user/" + u.Name) |
|
|
|
ctx.Redirect(setting.AppSubUrl + "/user/" + u.Name) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func Issues(ctx *middleware.Context) {
|
|
|
|
func Issues(ctx *middleware.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("issues") |
|
|
|
ctx.Data["Title"] = ctx.Tr("issues") |
|
|
|
ctx.Data["PageIsDashboard"] = true |
|
|
|
ctx.Data["PageIsDashboard"] = true |
|
|
|
ctx.Data["PageIsIssues"] = true |
|
|
|
ctx.Data["PageIsIssues"] = true |
|
|
@ -389,8 +384,8 @@ func Issues(ctx *middleware.Context) { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
ctx.Data["ShowCount"] = issueStats.OpenCount |
|
|
|
ctx.Data["ShowCount"] = issueStats.OpenCount |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ctx.Data["ContextUser"] = ctx.User |
|
|
|
ctx.Data["ContextUser"] = ctx.User |
|
|
|
|
|
|
|
|
|
|
|
ctx.HTML(200, ISSUES) |
|
|
|
ctx.HTML(200, ISSUES) |
|
|
|
} |
|
|
|
} |
|
|
|