diff options
Diffstat (limited to 'templates/org/team/teams.tmpl')
-rw-r--r-- | templates/org/team/teams.tmpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/org/team/teams.tmpl b/templates/org/team/teams.tmpl index 0d7cc06ff9..84a15e7650 100644 --- a/templates/org/team/teams.tmpl +++ b/templates/org/team/teams.tmpl @@ -5,7 +5,7 @@ {{template "base/alert" .}} {{if .IsOrganizationOwner}} <div class="text right"> - <a class="ui primary button" href="{{.OrgLink}}/teams/new">{{svg "octicon-plus"}} {{.locale.Tr "org.create_new_team"}}</a> + <a class="ui primary button" href="{{.OrgLink}}/teams/new">{{svg "octicon-plus"}} {{ctx.Locale.Tr "org.create_new_team"}}</a> </div> <div class="divider"></div> {{end}} @@ -20,12 +20,12 @@ <form> <button class="ui red tiny button delete-button" data-modal-id="leave-team" data-url="{{$.OrgLink}}/teams/{{.LowerName | PathEscape}}/action/leave" data-datauid="{{$.SignedUser.ID}}" - data-name="{{.Name}}">{{$.locale.Tr "org.teams.leave"}}</button> + data-name="{{.Name}}">{{ctx.Locale.Tr "org.teams.leave"}}</button> </form> {{else if $.IsOrganizationOwner}} <form method="post" action="{{$.OrgLink}}/teams/{{.LowerName | PathEscape}}/action/join"> {{$.CsrfTokenHtml}} - <button type="submit" class="ui primary small button" name="uid" value="{{$.SignedUser.ID}}">{{$.locale.Tr "org.teams.join"}}</button> + <button type="submit" class="ui primary small button" name="uid" value="{{$.SignedUser.ID}}">{{ctx.Locale.Tr "org.teams.join"}}</button> </form> {{end}} </div> @@ -36,7 +36,7 @@ {{end}} </div> <div class="ui bottom attached header"> - <p class="team-meta">{{.NumMembers}} {{$.locale.Tr "org.lower_members"}} · {{.NumRepos}} {{$.locale.Tr "org.lower_repositories"}}</p> + <p class="team-meta">{{.NumMembers}} {{ctx.Locale.Tr "org.lower_members"}} · {{.NumRepos}} {{ctx.Locale.Tr "org.lower_repositories"}}</p> </div> </div> {{end}} @@ -45,10 +45,10 @@ </div> <div class="ui g-modal-confirm delete modal" id="leave-team"> <div class="header"> - {{$.locale.Tr "org.teams.leave"}} + {{ctx.Locale.Tr "org.teams.leave"}} </div> <div class="content"> - <p>{{$.locale.Tr "org.teams.leave.detail" `<span class="name"></span>` | Safe}}</p> + <p>{{ctx.Locale.Tr "org.teams.leave.detail" `<span class="name"></span>` | Safe}}</p> </div> {{template "base/modal_actions_confirm" .}} </div> |