|
39 | 39 | {{.locale.Tr "settings.manage_emails"}}
|
40 | 40 | </h4>
|
41 | 41 | <div class="ui attached segment">
|
42 |
| - <div class="ui email list"> |
| 42 | + <div class="ui list"> |
43 | 43 | {{if $.EnableNotifyMail}}
|
44 | 44 | <div class="item">
|
| 45 | + <div class="gt-mb-3">{{.locale.Tr "settings.email_desc"}}</div> |
45 | 46 | <form action="{{AppSubUrl}}/user/settings/account/email" class="ui form" method="post">
|
46 |
| - {{.locale.Tr "settings.email_desc"}} |
47 |
| - <div class="right floated content"> |
48 |
| - <div class="field"> |
49 |
| - <button class="ui green button">{{$.locale.Tr "settings.email_notifications.submit"}}</button> |
50 |
| - </div> |
51 |
| - </div> |
52 |
| - <div class="right floated content"> |
53 |
| - {{$.CsrfTokenHtml}} |
54 |
| - <input name="_method" type="hidden" value="NOTIFICATION"> |
55 |
| - <div class="field"> |
56 |
| - <div class="ui selection dropdown" tabindex="0"> |
57 |
| - <input name="preference" type="hidden" value="{{.EmailNotificationsPreference}}"> |
58 |
| - {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
59 |
| - <div class="text"></div> |
60 |
| - <div class="menu"> |
61 |
| - <div data-value="enabled" class="{{if eq .EmailNotificationsPreference "enabled"}}active selected {{end}}item">{{$.locale.Tr "settings.email_notifications.enable"}}</div> |
62 |
| - <div data-value="andyourown" class="{{if eq .EmailNotificationsPreference "andyourown"}}active selected {{end}}item">{{$.locale.Tr "settings.email_notifications.andyourown"}}</div> |
63 |
| - <div data-value="onmention" class="{{if eq .EmailNotificationsPreference "onmention"}}active selected {{end}}item">{{$.locale.Tr "settings.email_notifications.onmention"}}</div> |
64 |
| - <div data-value="disabled" class="{{if eq .EmailNotificationsPreference "disabled"}}active selected {{end}}item">{{$.locale.Tr "settings.email_notifications.disable"}}</div> |
65 |
| - </div> |
| 47 | + {{$.CsrfTokenHtml}} |
| 48 | + <input name="_method" type="hidden" value="NOTIFICATION"> |
| 49 | + <div class="gt-df gt-fw gt-gap-3"> |
| 50 | + <div class="ui selection dropdown"> |
| 51 | + <input name="preference" type="hidden" value="{{.EmailNotificationsPreference}}"> |
| 52 | + {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
| 53 | + <div class="text"></div> |
| 54 | + <div class="menu"> |
| 55 | + <div data-value="enabled" class="{{if eq .EmailNotificationsPreference "enabled"}}active selected {{end}}item">{{$.locale.Tr "settings.email_notifications.enable"}}</div> |
| 56 | + <div data-value="andyourown" class="{{if eq .EmailNotificationsPreference "andyourown"}}active selected {{end}}item">{{$.locale.Tr "settings.email_notifications.andyourown"}}</div> |
| 57 | + <div data-value="onmention" class="{{if eq .EmailNotificationsPreference "onmention"}}active selected {{end}}item">{{$.locale.Tr "settings.email_notifications.onmention"}}</div> |
| 58 | + <div data-value="disabled" class="{{if eq .EmailNotificationsPreference "disabled"}}active selected {{end}}item">{{$.locale.Tr "settings.email_notifications.disable"}}</div> |
66 | 59 | </div>
|
67 | 60 | </div>
|
| 61 | + <button class="ui green button">{{$.locale.Tr "settings.email_notifications.submit"}}</button> |
68 | 62 | </div>
|
69 | 63 | </form>
|
70 | 64 | </div>
|
|
102 | 96 | </form>
|
103 | 97 | </div>
|
104 | 98 | {{end}}
|
105 |
| - <div class="content"> |
| 99 | + <div class="content gt-py-3"> |
106 | 100 | <strong>{{.Email}}</strong>
|
107 | 101 | {{if .IsPrimary}}
|
108 | 102 | <div class="ui primary label">{{$.locale.Tr "settings.primary"}}</div>
|
|
0 commit comments