mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 14:31:41 +01:00
Use correct transaltion key for delete email button (#3422)
This commit is contained in:
parent
b3fd94c13d
commit
f9a5cc4d8e
1 changed files with 20 additions and 20 deletions
|
@ -13,27 +13,27 @@
|
||||||
</div>
|
</div>
|
||||||
{{range .Emails}}
|
{{range .Emails}}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
{{if not .IsPrimary}}
|
{{if not .IsPrimary}}
|
||||||
<div class="right floated content">
|
<div class="right floated content">
|
||||||
<button class="ui red tiny button delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
|
<button class="ui red tiny button delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
|
||||||
{{$.i18n.Tr "settings.delete_key"}}
|
{{$.i18n.Tr "settings.delete_email"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
{{if .IsActivated}}
|
|
||||||
<div class="right floated content">
|
|
||||||
<form action="{{$.Link}}" method="post">
|
|
||||||
{{$.CsrfTokenHtml}}
|
|
||||||
<input name="_method" type="hidden" value="PRIMARY">
|
|
||||||
<input name="id" type="hidden" value="{{.ID}}">
|
|
||||||
<button class="ui blue tiny button">{{$.i18n.Tr "settings.primary_email"}}</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
|
||||||
<div class="content">
|
|
||||||
<strong>{{.Email}}</strong>
|
|
||||||
{{if .IsPrimary}}<span class="text red">{{$.i18n.Tr "settings.primary"}}</span>{{end}}
|
|
||||||
</div>
|
</div>
|
||||||
|
{{if .IsActivated}}
|
||||||
|
<div class="right floated content">
|
||||||
|
<form action="{{$.Link}}" method="post">
|
||||||
|
{{$.CsrfTokenHtml}}
|
||||||
|
<input name="_method" type="hidden" value="PRIMARY">
|
||||||
|
<input name="id" type="hidden" value="{{.ID}}">
|
||||||
|
<button class="ui blue tiny button">{{$.i18n.Tr "settings.primary_email"}}</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
|
{{end}}
|
||||||
|
<div class="content">
|
||||||
|
<strong>{{.Email}}</strong>
|
||||||
|
{{if .IsPrimary}}<span class="text red">{{$.i18n.Tr "settings.primary"}}</span>{{end}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue