diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-09 19:18:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 19:18:49 +0800 |
commit | b40496533bb67ac988cd89a67e70610fc895419f (patch) | |
tree | 00454cf974b3f0fe4185c7fb0468b3a3c0d73fd2 /templates/org | |
parent | d2b288130651beb9bed486a0c6bca658de0d23e6 (diff) | |
download | gitea-b40496533bb67ac988cd89a67e70610fc895419f.tar.gz gitea-b40496533bb67ac988cd89a67e70610fc895419f.zip |
fix leave team 404 (#1154)
Diffstat (limited to 'templates/org')
-rw-r--r-- | templates/org/team/sidebar.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl index 02cb8d7d21..0edfcd0148 100644 --- a/templates/org/team/sidebar.tmpl +++ b/templates/org/team/sidebar.tmpl @@ -3,7 +3,7 @@ <strong>{{.Team.Name}}</strong> <div class="ui right"> {{if .Team.IsMember $.SignedUser.ID}} - <a class="ui red tiny button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave?uid={{$.SignedUser.ID}}&page=team">{{$.i18n.Tr "org.teams.leave"}}</a> + <a class="ui red tiny button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave?uid={{$.SignedUser.ID}}&page=home">{{$.i18n.Tr "org.teams.leave"}}</a> {{else if .IsOrganizationOwner}} <a class="ui blue tiny button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/join?uid={{$.SignedUser.ID}}&page=team">{{$.i18n.Tr "org.teams.join"}}</a> {{end}} |