blob: fb4a54b146f03526b2c1f9d9b4e4de3562629088 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
- page_title "电子邮箱"
- header_title page_title, profile_emails_path
.row.prepend-top-default
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
= page_title
%p
控制您帐户的电子邮件
.col-lg-9
%h4.prepend-top-0
添加电子邮箱地址
= form_for 'email', url: profile_emails_path do |f|
.form-group
= f.label :email, class: 'label-light'
= f.text_field :email, class: 'form-control'
.prepend-top-default
= f.submit '添加电子邮箱地址', class: 'btn btn-create'
%hr
%h4.prepend-top-0
联系电子邮件 (#{@emails.count + 1})
.account-well.append-bottom-default
%ul
%li
你的
%b 主要电子邮箱
将用于头像显示和在网站操作,比如:编辑和合并操作
%li
你的
%b 通知电子邮箱
将用于账号通知。
%li
你的
%b 公开电子邮箱
将显示在公开的个人资料上
%li
所有电子邮箱地址都将用于识别提交作者。
%ul.well-list
%li
= @primary
%span.pull-right
%span.label.label-success 主要电子邮箱
- if @primary === current_user.public_email
%span.label.label-info 公开电子邮箱
- if @primary === current_user.notification_email
%span.label.label-info 通知电子邮箱
- @emails.each do |email|
%li
= email.email
%span.pull-right
- if email.email === current_user.public_email
%span.label.label-info 公开电子邮箱
- if email.email === current_user.notification_email
%span.label.label-info 通知电子邮箱
= link_to '删除', profile_email_path(email), data: { confirm: '确定要继续么?'}, method: :delete, class: 'btn btn-sm btn-remove pull-right'
|