diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-05-05 15:59:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 15:59:12 +0800 |
commit | 3ee7f273417c09c3b54ffd317184739c76f41064 (patch) | |
tree | e36bf8381223a9472370a8f4b68f83fad0f2e641 /templates | |
parent | 421840486f4f09ed3bcab98472e58d357853aae6 (diff) | |
download | gitea-3ee7f273417c09c3b54ffd317184739c76f41064.tar.gz gitea-3ee7f273417c09c3b54ffd317184739c76f41064.zip |
Revert "Prevent a user with a different email from accepting the team invite" (#24531)
Reverts go-gitea/gitea#24491
Diffstat (limited to 'templates')
-rw-r--r-- | templates/org/team/invite.tmpl | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/templates/org/team/invite.tmpl b/templates/org/team/invite.tmpl index 8d1fad0141..55ecd049b3 100644 --- a/templates/org/team/invite.tmpl +++ b/templates/org/team/invite.tmpl @@ -6,23 +6,17 @@ <div class="image"> {{avatar $.Context .Organization 140}} </div> - {{if .EmailMismatch}} - <div class="content"> - <div class="header">{{.locale.Tr "org.teams.invite.email_mismatch"}}</div> - </div> - {{else}} - <div class="content"> - <div class="header">{{.locale.Tr "org.teams.invite.title" .Team.Name .Organization.Name | Str2html}}</div> - <div class="meta">{{.locale.Tr "org.teams.invite.by" .Inviter.Name}}</div> - <div class="description">{{.locale.Tr "org.teams.invite.description"}}</div> - </div> - <div class="extra content"> - <form class="ui form" action="" method="post"> - {{.CsrfTokenHtml}} - <button class="fluid ui green button">{{.locale.Tr "org.teams.join"}}</button> - </form> - </div> - {{end}} + <div class="content"> + <div class="header">{{.locale.Tr "org.teams.invite.title" .Team.Name .Organization.Name | Str2html}}</div> + <div class="meta">{{.locale.Tr "org.teams.invite.by" .Inviter.Name}}</div> + <div class="description">{{.locale.Tr "org.teams.invite.description"}}</div> + </div> + <div class="extra content"> + <form class="ui form" action="" method="post"> + {{.CsrfTokenHtml}} + <button class="fluid ui green button">{{.locale.Tr "org.teams.join"}}</button> + </form> + </div> </div> </div> </div> |