diff options
Diffstat (limited to 'routers/org/members.go')
-rw-r--r-- | routers/org/members.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/routers/org/members.go b/routers/org/members.go index 3afc6e32e5..e7f1960665 100644 --- a/routers/org/members.go +++ b/routers/org/members.go @@ -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) } |