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 1313 </div>
1414 {{range .Emails}}
1515 <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>
3621 </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>
3737 </div>
3838 {{end}}
3939 </div>
You can’t perform that action at this time.
0 commit comments