1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

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) {
r.Get("/:org", org.Organization)
r.Get("/:org/members", org.Members)
})
m.Group("/:username/:reponame", func(r martini.Router) {

View File

@ -1864,16 +1864,40 @@ html, body {
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 {
margin-right: 16px;
width: 100px;
height: 100px;
}
.org-nav .org-small-logo {
margin-right: 16px;
width: 50px;
height: 50px;
}
.org-nav .org-name {
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 {
font-size: 16px;
}
@ -1894,6 +1918,10 @@ html, body {
margin-left: 0;
}
.org-main {
padding-left: 0;
}
.org-sidebar {
margin-top: -100px;
}
@ -1947,4 +1975,42 @@ html, body {
.org-team a:hover .org-team-name {
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) {
ctx.Data["Title"] = "Organization Name" + params["org"]
ctx.Data["Title"] = "Organization " + params["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")
}