File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change 13
13
</div>
14
14
{{range .Emails}}
15
15
<div class="item">
16
- {{if not .IsPrimary}}
17
- <div class="right floated content">
18
- <button class="ui red tiny button delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
19
- {{$.i18n.Tr "settings.delete_key"}}
20
- </button>
21
- </div>
22
- {{if .IsActivated}}
23
- <div class="right floated content">
24
- <form action="{{$.Link}}" method="post">
25
- {{$.CsrfTokenHtml}}
26
- <input name="_method" type="hidden" value="PRIMARY">
27
- <input name="id" type="hidden" value="{{.ID}}">
28
- <button class="ui blue tiny button">{{$.i18n.Tr "settings.primary_email"}}</button>
29
- </form>
30
- </div>
31
- {{end}}
32
- {{end}}
33
- <div class="content">
34
- <strong>{{.Email}}</strong>
35
- {{if .IsPrimary}}<span class="text red">{{$.i18n.Tr "settings.primary"}}</span>{{end}}
16
+ {{if not .IsPrimary}}
17
+ <div class="right floated content">
18
+ <button class="ui red tiny button delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
19
+ {{$.i18n.Tr "settings.delete_email"}}
20
+ </button>
36
21
</div>
22
+ {{if .IsActivated}}
23
+ <div class="right floated content">
24
+ <form action="{{$.Link}}" method="post">
25
+ {{$.CsrfTokenHtml}}
26
+ <input name="_method" type="hidden" value="PRIMARY">
27
+ <input name="id" type="hidden" value="{{.ID}}">
28
+ <button class="ui blue tiny button">{{$.i18n.Tr "settings.primary_email"}}</button>
29
+ </form>
30
+ </div>
31
+ {{end}}
32
+ {{end}}
33
+ <div class="content">
34
+ <strong>{{.Email}}</strong>
35
+ {{if .IsPrimary}}<span class="text red">{{$.i18n.Tr "settings.primary"}}</span>{{end}}
36
+ </div>
37
37
</div>
38
38
{{end}}
39
39
</div>
You can’t perform that action at this time.
0 commit comments