mirror of https://github.com/gogits/gogs.git
Unknwon
11 years ago
23 changed files with 434 additions and 149 deletions
@ -0,0 +1,5 @@ |
|||||||
|
{ |
||||||
|
"language.fileExtensions": { |
||||||
|
"tmpl": "html" |
||||||
|
} |
||||||
|
} |
@ -1,4 +1,4 @@ |
|||||||
<button class="btn github"><i class="fa fa-github"></i>GitHub</button> |
{{if .OauthService.GitHub}}<a class="btn github" href="/user/login/github?next=/user/sign_up"><i class="fa fa-github"></i>GitHub</a>{{end}} |
||||||
<button class="btn google"><i class="fa fa-google"></i>Google +</button> |
{{if .OauthService.Google}}<a class="btn google" href="/user/login/google?next=/user/sign_up"><i class="fa fa-google"></i>Google +</a>{{end}} |
||||||
<button class="btn weibo"><i class="fa fa-weibo"></i>新浪微博</button> |
{{if .OauthService.Weibo}}<a class="btn weibo" href="/user/login/weibo?next=/user/sign_up"><i class="fa fa-weibo"></i>新浪微博</a>{{end}} |
||||||
<button class="btn qq"><i class="fa fa-qq"></i>腾讯 QQ </button> |
{{if .OauthService.Tencent}}<a class="btn qq" href="/user/login/qq?next=/user/sign_up"><i class="fa fa-qq"></i>腾讯 QQ </a>{{end}} |
@ -1,47 +0,0 @@ |
|||||||
{{template "base/head" .}} |
|
||||||
{{template "base/navbar" .}} |
|
||||||
{{template "repo/nav" .}} |
|
||||||
{{template "repo/toolbar" .}} |
|
||||||
<div id="body" class="container"> |
|
||||||
{{template "repo/setting_nav" .}} |
|
||||||
<div id="repo-setting-container" class="col-md-10"> |
|
||||||
{{template "base/alert" .}} |
|
||||||
<div class="panel panel-default"> |
|
||||||
<div class="panel-heading"> |
|
||||||
Collaborators |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="panel-body"> |
|
||||||
<ul id="repo-collab-list" class="list-unstyled"> |
|
||||||
{{range .Collaborators}} |
|
||||||
<li class="collab"> |
|
||||||
{{if not (eq .LowerName $.Owner.LowerName)}}<a href="{{$.RepoLink}}/settings/collaboration?remove={{.Name}}" class="remove-collab pull-right"><i class="fa fa-times"></i></a>{{end}} |
|
||||||
<a class="member" href="/user/{{.Name}}"> |
|
||||||
<img alt="{{.Name}}" class="pull-left avatar" src="{{.AvatarLink}}"> |
|
||||||
<strong class="access-member-fullname">{{.FullName}}</strong><br/> |
|
||||||
{{.Name}} |
|
||||||
</a> |
|
||||||
</li> |
|
||||||
{{end}} |
|
||||||
</ul> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="panel-footer"> |
|
||||||
<form action="{{.RepoLink}}/settings/collaboration" method="post" class="form-horizontal" id="repo-collab-form"> |
|
||||||
{{.CsrfTokenHtml}} |
|
||||||
<div class="form-group" style="margin-bottom: 0"> |
|
||||||
<div class="col-md-4"> |
|
||||||
<input type="text" name="collaborator" class="form-control dropdown-toggle" id="repo-collaborator" autocomplete="off" required="required" data-toggle="dropdown"/> |
|
||||||
<div class="dropdown-menu"> |
|
||||||
<ul class="list-unstyled"></ul> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<button class="col-md-2 btn btn-primary">Add collaborator</button> |
|
||||||
</div> |
|
||||||
</form> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
</div> |
|
||||||
{{template "base/footer" .}} |
|
@ -0,0 +1,47 @@ |
|||||||
|
{{template "ng/base/head" .}} |
||||||
|
{{template "ng/base/header" .}} |
||||||
|
<div id="repo-wrapper"> |
||||||
|
{{template "repo/header" .}} |
||||||
|
<div id="setting-wrapper" class="main-wrapper"> |
||||||
|
<div id="repo-setting" class="container clear"> |
||||||
|
{{template "repo/settings/nav" .}} |
||||||
|
<div class="grid-4-5 left"> |
||||||
|
<div class="setting-content"> |
||||||
|
{{template "ng/base/alert" .}} |
||||||
|
<div id="setting-content"> |
||||||
|
<div id="user-profile-setting-content" class="panel panel-radius"> |
||||||
|
<div class="panel-header"> |
||||||
|
<strong>{{.i18n.Tr "repo.settings.collaboration"}}</strong> |
||||||
|
</div> |
||||||
|
<div class="panel-body"> |
||||||
|
<ul id="repo-collab-list"> |
||||||
|
{{range .Collaborators}} |
||||||
|
<li class="collab"> |
||||||
|
{{if not (eq .Id $.Owner.Id)}}<a href="{{$.RepoLink}}/settings/collaboration?remove={{.Name}}" class="remove-collab right"><i class="fa fa-times"></i></a>{{end}} |
||||||
|
<a class="member" href="/{{.Name}}"> |
||||||
|
<img alt="{{.Name}}" class="pull-left avatar" src="{{.AvatarLink}}"> |
||||||
|
<strong>{{.FullName}}</strong> ({{.Name}}) |
||||||
|
</a> |
||||||
|
</li> |
||||||
|
<hr> |
||||||
|
{{end}} |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
<div class="panel-footer"> |
||||||
|
<form class="form form-align" action="{{.RepoLink}}/settings/collaboration" method="post" id="repo-collab-form"> |
||||||
|
{{.CsrfTokenHtml}} |
||||||
|
<input class="ipt ipt-large ipt-radius" id="repo-collaborator" name="collaborator" autocomplete="off" required /> |
||||||
|
<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "repo.settings.add_collaborator"}}</button> |
||||||
|
<div class="repo-user-list-block"> |
||||||
|
<ul class="menu-down-show menu-vertical menu-radius switching-list user-list" id="repo-collaborator-list"></ul> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{template "ng/base/footer" .}} |
Loading…
Reference in new issue