add organization memebers page

This commit is contained in:
fuxiaohei 2014-06-22 16:53:46 +08:00
parent bf703ef617
commit 514d7e1922
3 changed files with 73 additions and 1 deletions

View file

@ -190,6 +190,7 @@ func runWeb(*cli.Context) {
m.Group("/o", func(r martini.Router) { m.Group("/o", func(r martini.Router) {
r.Get("/:org", org.Organization) r.Get("/:org", org.Organization)
r.Get("/:org/members", org.Members)
}) })
m.Group("/:username/:reponame", func(r martini.Router) { m.Group("/:username/:reponame", func(r martini.Router) {

View file

@ -1864,16 +1864,40 @@ html, body {
padding: 16px 0; padding: 16px 0;
} }
#body-nav.org-nav.org-nav-auto {
height: auto;
}
.org-nav > .container {
padding-left: 0;
padding-left: 0;
}
.org-nav .org-logo { .org-nav .org-logo {
margin-right: 16px; margin-right: 16px;
width: 100px; width: 100px;
height: 100px; height: 100px;
} }
.org-nav .org-small-logo {
margin-right: 16px;
width: 50px;
height: 50px;
}
.org-nav .org-name { .org-nav .org-name {
margin-top: 0; margin-top: 0;
} }
.org-nav-auto .org-name {
font-size: 1.4em;
line-height: 48px;
}
#body-nav.org-nav-auto .nav {
margin-top: 6px;
}
.org-description { .org-description {
font-size: 16px; font-size: 16px;
} }
@ -1894,6 +1918,10 @@ html, body {
margin-left: 0; margin-left: 0;
} }
.org-main {
padding-left: 0;
}
.org-sidebar { .org-sidebar {
margin-top: -100px; margin-top: -100px;
} }
@ -1947,4 +1975,42 @@ html, body {
.org-team a:hover .org-team-name { .org-team a:hover .org-team-name {
color: #0079bc !important; color: #0079bc !important;
}
#org-members {
margin-right: 24px;
}
#org-members .member .avatar img {
width: 50px;
height: 50px;
}
#org-members .member {
padding-bottom: 20px;
margin-bottom: 20px;
border-bottom: 1px solid #DDD;
height: 70px;
}
#org-members .member .name {
padding-top: 4px;
}
#org-members .member .nick {
display: block;
color: #888;
}
#org-members .member .name a {
color: #444;
}
#org-members .member .name strong {
font-size: 1.2em;
}
#org-members .status, #org-members .role {
line-height: 48px;
text-align: right;
} }

View file

@ -6,6 +6,11 @@ import (
) )
func Organization(ctx *middleware.Context, params martini.Params) { func Organization(ctx *middleware.Context, params martini.Params) {
ctx.Data["Title"] = "Organization Name" + params["org"] ctx.Data["Title"] = "Organization " + params["org"]
ctx.HTML(200, "org/org") ctx.HTML(200, "org/org")
} }
func Members(ctx *middleware.Context,params martini.Params){
ctx.Data["Title"] = "Organization " + params["org"]+" Members"
ctx.HTML(200,"org/members")
}