summaryrefslogtreecommitdiff
path: root/app/views/profiles/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/profiles/show.html.haml')
-rw-r--r--app/views/profiles/show.html.haml62
1 files changed, 31 insertions, 31 deletions
diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml
index cd582ba7060..355eb224377 100644
--- a/app/views/profiles/show.html.haml
+++ b/app/views/profiles/show.html.haml
@@ -7,52 +7,52 @@
.row
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
- Public Avatar
+ 公开头像
%p
- if @user.avatar?
- You can change your avatar here
+ 在这里修改头像
- if Gitlab.config.gravatar.enabled
- or remove the current avatar to revert to #{link_to Gitlab.config.gravatar.host, "http://" + Gitlab.config.gravatar.host}
+ 或者删除当前头像使用 #{link_to Gitlab.config.gravatar.host, "http://" + Gitlab.config.gravatar.host} 头像
- else
- You can upload an avatar here
+ 在这里上传头像
- if Gitlab.config.gravatar.enabled
- or change it at #{link_to Gitlab.config.gravatar.host, "http://" + Gitlab.config.gravatar.host}
+ 或者在 #{link_to Gitlab.config.gravatar.host, "http://" + Gitlab.config.gravatar.host} 修改头像
.col-lg-9
.clearfix.avatar-image.append-bottom-default
= image_tag avatar_icon(@user, 160), alt: '', class: 'avatar s160'
%h5.prepend-top-0
- Upload new avatar
+ 上传新的头像
.prepend-top-5.append-bottom-10
%a.btn.js-choose-user-avatar-button
- Browse file...
- %span.avatar-file-name.prepend-left-default.js-avatar-filename No file chosen
+ 浏览文件...
+ %span.avatar-file-name.prepend-left-default.js-avatar-filename 没有选择文件
= f.file_field :avatar, class: "js-user-avatar-input hidden"
.help-block
- The maximum file size allowed is 200KB.
+ 允许的最大文件大小 200KB。
- if @user.avatar?
%hr
- = link_to 'Remove avatar', profile_avatar_path, data: { confirm: "Avatar will be removed. Are you sure?"}, method: :delete, class: "btn btn-gray"
+ = link_to '删除头像', profile_avatar_path, data: { confirm: "确定要删除头像么?"}, method: :delete, class: "btn btn-gray"
%hr
.row
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
- Main settings
+ 主要设置
%p
- This information will appear on your profile.
+ 此信息会显示在个人资料页面上。
- if current_user.ldap_user?
- Some options are unavailable for LDAP accounts
+ 部分设置对于 LDAP 账号无效
.col-lg-9
.form-group
- = f.label :name, class: "label-light"
+ = f.label :name, "姓名", class: "label-light"
= f.text_field :name, class: "form-control", required: true
- %span.help-block Enter your name, so people you know can recognize you.
+ %span.help-block 输入其他人能知道的名字。
.form-group
- = f.label :email, class: "label-light"
+ = f.label :email, "电子邮箱", class: "label-light"
- if @user.ldap_user? && @user.ldap_email?
= f.text_field :email, class: "form-control", required: true, readonly: true
%span.help-block.light
- Your email address was automatically set based on the LDAP server.
+ LDAP 用户的电子邮箱只读。
- else
- if @user.temp_oauth_email?
= f.text_field :email, class: "form-control", required: true, value: nil
@@ -60,37 +60,37 @@
= f.text_field :email, class: "form-control", required: true
- if @user.unconfirmed_email.present?
%span.help-block
- Please click the link in the confirmation email before continuing. It was sent to
- = succeed "." do
+ 请点击确认邮件中的链接继续操作。其已经被发送到
+ = succeed "。" do
%strong #{@user.unconfirmed_email}
%p
- = link_to "Resend confirmation e-mail", user_confirmation_path(user: { email: @user.unconfirmed_email }), method: :post
+ = link_to "重发确认邮件", user_confirmation_path(user: { email: @user.unconfirmed_email }), method: :post
- else
- %span.help-block We also use email for avatar detection if no avatar is uploaded.
+ %span.help-block 如果没有上传头像将使用邮箱头像服务。
.form-group
- = f.label :public_email, class: "label-light"
+ = f.label :public_email, '公开邮箱', class: "label-light"
= f.select :public_email, options_for_select(@user.all_emails, selected: @user.public_email), {include_blank: 'Do not show on profile'}, class: "select2"
- %span.help-block This email will be displayed on your public profile.
+ %span.help-block 此电子邮箱将显示在公开的个人资料上。
.form-group
= f.label :skype, class: "label-light"
= f.text_field :skype, class: "form-control"
.form-group
- = f.label :linkedin, class: "label-light"
+ = f.label :linkedin, '领英', class: "label-light"
= f.text_field :linkedin, class: "form-control"
.form-group
- = f.label :twitter, class: "label-light"
+ = f.label :twitter, '推特', class: "label-light"
= f.text_field :twitter, class: "form-control"
.form-group
- = f.label :website_url, 'Website', class: "label-light"
+ = f.label :website_url, '网址', class: "label-light"
= f.text_field :website_url, class: "form-control"
.form-group
- = f.label :location, 'Location', class: "label-light"
+ = f.label :location, '位置', class: "label-light"
= f.text_field :location, class: "form-control"
.form-group
- = f.label :bio, class: "label-light"
+ = f.label :bio, '简历', class: "label-light"
= f.text_area :bio, rows: 4, class: "form-control", maxlength: 250
- %span.help-block Tell us about yourself in fewer than 250 characters.
+ %span.help-block 使用少于 250 字符的文字描述自己。
.prepend-top-default.append-bottom-default
- = f.submit 'Update profile settings', class: "btn btn-success"
- = link_to "Cancel", user_path(current_user), class: "btn btn-cancel"
+ = f.submit '更新个人资料设置', class: "btn btn-success"
+ = link_to "取消", user_path(current_user), class: "btn btn-cancel"