mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
golint fixed for parts of routers root, dev, user and org dirs (#167)
* golint fixed for parts of routers root, dev and org dirs * add user/auth.go golint fixed * rename unnecessary exported to unexported and user dir golint fixed
This commit is contained in:
@@ -15,10 +15,13 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
MEMBERS base.TplName = "org/member/members"
|
||||
MEMBER_INVITE base.TplName = "org/member/invite"
|
||||
// tplMembers template for organization members page
|
||||
tplMembers base.TplName = "org/member/members"
|
||||
// tplMemberInvite template for orgnization invite page
|
||||
tplMemberInvite base.TplName = "org/member/invite"
|
||||
)
|
||||
|
||||
// Members render orgnization users page
|
||||
func Members(ctx *context.Context) {
|
||||
org := ctx.Org.Organization
|
||||
ctx.Data["Title"] = org.FullName
|
||||
@@ -30,9 +33,10 @@ func Members(ctx *context.Context) {
|
||||
}
|
||||
ctx.Data["Members"] = org.Members
|
||||
|
||||
ctx.HTML(200, MEMBERS)
|
||||
ctx.HTML(200, tplMembers)
|
||||
}
|
||||
|
||||
// MembersAction response for operation to a member of orgnization
|
||||
func MembersAction(ctx *context.Context) {
|
||||
uid := com.StrTo(ctx.Query("uid")).MustInt64()
|
||||
if uid == 0 {
|
||||
@@ -91,6 +95,7 @@ func MembersAction(ctx *context.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
// Invitation render organization invitation page
|
||||
func Invitation(ctx *context.Context) {
|
||||
org := ctx.Org.Organization
|
||||
ctx.Data["Title"] = org.FullName
|
||||
@@ -119,5 +124,5 @@ func Invitation(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
ctx.HTML(200, MEMBER_INVITE)
|
||||
ctx.HTML(200, tplMemberInvite)
|
||||
}
|
||||
|
Reference in New Issue
Block a user