diff options
author | Lauris BH <lauris@nix.lv> | 2017-10-15 05:24:24 +0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-10-15 10:24:24 +0800 |
commit | 32ca299650277829b93994eca1508f9d84a5b667 (patch) | |
tree | 65cabe4bb9d3cefb9c253b73c087b2439c13ae2c /templates/org | |
parent | f42dbdbae59600266d03357f9693c659adc9cab3 (diff) | |
download | gitea-32ca299650277829b93994eca1508f9d84a5b667.tar.gz gitea-32ca299650277829b93994eca1508f9d84a5b667.zip |
Remove direct user adding to organization members (#2641)
Diffstat (limited to 'templates/org')
-rw-r--r-- | templates/org/home.tmpl | 5 | ||||
-rw-r--r-- | templates/org/member/invite.tmpl | 22 | ||||
-rw-r--r-- | templates/org/member/members.tmpl | 6 |
3 files changed, 0 insertions, 33 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 9b8b311666..18782e3981 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -52,11 +52,6 @@ {{end}} {{end}} </div> - {{if .IsOrganizationOwner}} - <div class="ui bottom attached segment"> - <a class="ui blue small button" href="{{.OrgLink}}/invitations/new">{{.i18n.Tr "org.invite_someone"}}</a> - </div> - {{end}} {{if .IsOrganizationMember}} <div class="ui top attached header"> diff --git a/templates/org/member/invite.tmpl b/templates/org/member/invite.tmpl deleted file mode 100644 index e5d1575939..0000000000 --- a/templates/org/member/invite.tmpl +++ /dev/null @@ -1,22 +0,0 @@ -{{template "base/head" .}} -<div class="organization invite"> - {{template "org/header" .}} - <div class="ui container"> - <div id="invite-box"> - {{template "base/alert" .}} - <h2>{{.i18n.Tr "org.members.invite_desc" .Org.DisplayName}}</h2> - <form class="ui form" action="{{.Link}}" method="post"> - {{.CsrfTokenHtml}} - <div class="inline field ui left"> - <div id="search-user-box" class="ui search"> - <div class="ui input"> - <input class="prompt" name="uname" placeholder="{{.i18n.Tr "repo.settings.search_user_placeholder"}}" autocomplete="off" autofocus required> - </div> - </div> - </div> - <button class="ui blue button">{{.i18n.Tr "org.members.invite_now"}}</button> - </form> - </div> - </div> -</div> -{{template "base/footer" .}} diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index d7514d8ba7..e47008c89a 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -3,12 +3,6 @@ {{template "org/header" .}} <div class="ui container"> {{template "base/alert" .}} - {{if .IsOrganizationOwner}} - <div class="text right"> - <a class="ui blue button" href="{{.OrgLink}}/invitations/new"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "org.invite_someone"}}</a> - </div> - <div class="ui divider"></div> - {{end}} <div class="list"> {{range .Members}} |