aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org/home.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-15 18:29:41 +0800
committerUnknwon <joe2010xtmf@163.com>2014-08-15 18:29:41 +0800
commit36b4c57ff13198196134b853f624fb633061734d (patch)
treee973d2aad41823e50c951a08ec8742030141d675 /templates/org/home.tmpl
parent3e32b14ad4da2db1b05eeec73936dbbe79cecc45 (diff)
downloadgitea-36b4c57ff13198196134b853f624fb633061734d.tar.gz
gitea-36b4c57ff13198196134b853f624fb633061734d.zip
Finish new organization members and invitation page
Diffstat (limited to 'templates/org/home.tmpl')
-rw-r--r--templates/org/home.tmpl9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl
index 205318b0e9..d96624010f 100644
--- a/templates/org/home.tmpl
+++ b/templates/org/home.tmpl
@@ -17,7 +17,9 @@
<div class="container">
<div id="org-home-repo-list" class="left grid-2-3">
<div class="clear">
+ {{if .IsAdminTeam}}
<a class="btn btn-green btn-large btn-link btn-radius right" href="/repo/create?org={{.Org.Id}}"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "new_repo"}}</a>
+ {{end}}
</div>
<div id="org-repo-list">
{{range .Repos}}
@@ -45,9 +47,11 @@
<a href="/{{.Name}}"><img src="{{.AvatarLink}}"></a>
{{end}}
</div>
+ {{if .IsAdminTeam}}
<div class="panel-footer">
- <a class="btn btn-medium btn-blue btn-link btn-radius" href="">{{.i18n.Tr "org.invite_someone"}}</a>
+ <a class="btn btn-medium btn-blue btn-link btn-radius" href="/org/{{.Org.LowerName}}/invitations/new">{{.i18n.Tr "org.invite_someone"}}</a>
</div>
+ {{end}}
</div>
<br>
<div class="panel panel-radius">
@@ -65,9 +69,12 @@
{{end}}
</ul>
</div>
+ {{if .IsOrganizationOwner}}
<div class="panel-footer">
<a class="btn btn-medium btn-blue btn-link btn-radius" href="/org/{{$.Org.LowerName}}/teams/new">{{.i18n.Tr "org.create_new_team"}}</a>
</div>
+
+ {{end}}
</div>
</div>
</div>