forked from forgejo/forgejo
Finish organization homepage
This commit is contained in:
parent
6e448b0714
commit
5dbfe3c26c
9 changed files with 179 additions and 109 deletions
|
@ -83,6 +83,12 @@ func Profile(ctx *middleware.Context, params martini.Params) {
|
|||
}
|
||||
return
|
||||
}
|
||||
|
||||
if u.IsOrganization() {
|
||||
ctx.Redirect("/org/" + u.Name)
|
||||
return
|
||||
}
|
||||
|
||||
// For security reason, hide e-mail address for anonymous visitors.
|
||||
if !ctx.IsSigned {
|
||||
u.Email = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue