aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-01-31 00:31:06 +0200
committerGitHub <noreply@github.com>2018-01-31 00:31:06 +0200
commitf9a5cc4d8ebc62e04a1cf4bfa955fc452e7fa269 (patch)
tree2882cde28e6172ca15ba1e272d84d719dedf9d67 /templates/user
parentb3fd94c13d00f368dbd0f9414e699077ee4a6887 (diff)
downloadgitea-f9a5cc4d8ebc62e04a1cf4bfa955fc452e7fa269.tar.gz
gitea-f9a5cc4d8ebc62e04a1cf4bfa955fc452e7fa269.zip
Use correct transaltion key for delete email button (#3422)
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/settings/email.tmpl40
1 files changed, 20 insertions, 20 deletions
diff --git a/templates/user/settings/email.tmpl b/templates/user/settings/email.tmpl
index fa67970764..62dc1d5e59 100644
--- a/templates/user/settings/email.tmpl
+++ b/templates/user/settings/email.tmpl
@@ -13,27 +13,27 @@
</div>
{{range .Emails}}
<div class="item">
- {{if not .IsPrimary}}
- <div class="right floated content">
- <button class="ui red tiny button delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
- {{$.i18n.Tr "settings.delete_key"}}
- </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}}
+ {{if not .IsPrimary}}
+ <div class="right floated content">
+ <button class="ui red tiny button delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
+ {{$.i18n.Tr "settings.delete_email"}}
+ </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>
{{end}}
</div>