Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show.html.haml « profiles « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 65b5a5d29fce96591e413cbe8331bbf1e95ed0b4 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.profile_avatar_holder
  = image_tag gravatar_icon(@user.email, 90)
%h3.page_title
  = @user.name
  %br
  %small
    = @user.email

  .right
    = link_to destroy_user_session_path, class: "logout", method: :delete do
      %small
        %i.icon-signout
        Logout
%hr

= form_for @user, url: profile_path, method: :put, html: { class: "edit_user form-horizontal" }  do |f|
  -if @user.errors.any?
    %div.alert-message.block-message.error
      %ul
        - @user.errors.full_messages.each do |msg|
          %li= msg
  .row
    .span7
      .control-group
        = f.label :name, class: "control-label"
        .controls
          = f.text_field :name, class: "input-xlarge", required: true
          %span.help-block Enter your name, so people you know can recognize you.
      .control-group
        = f.label :email, class: "control-label"
        .controls
          = f.text_field :email, class: "input-xlarge", required: true
          %span.help-block We also use email for avatar detection.
      .control-group
        = f.label :skype, class: "control-label"
        .controls= f.text_field :skype, class: "input-xlarge"
      .control-group
        = f.label :linkedin, class: "control-label"
        .controls= f.text_field :linkedin, class: "input-xlarge"
      .control-group
        = f.label :twitter, class: "control-label"
        .controls= f.text_field :twitter, class: "input-xlarge"
      .control-group
        = f.label :bio, class: "control-label"
        .controls
          = f.text_area :bio, rows: 6, class: "input-xlarge", maxlength: 250
          %span.help-block Tell us about yourself in fewer than 250 characters.

    .span5.right
      %fieldset.tips
        %legend Tips:
        %ul
          %li
            %p You can change your password on Account page
          - if Gitlab.config.gravatar.enabled
            %li
              %p You can change your avatar at #{link_to "gravatar.com", "http://gravatar.com"}

          - if Gitlab.config.omniauth.enabled && @user.provider?
            %li
              %p
                You can login through #{@user.provider.titleize}!
                = link_to "click here to change", account_profile_path
          - if current_user.can_create_group?
            %li
              %p
                Need a group for several dependent projects?
                = link_to new_group_path, class: "btn btn-tiny" do
                  Create a group
          - if current_user.can_create_team?
            %li
              %p
                Want to share a team between projects?
                = link_to new_team_path, class: "btn btn-tiny" do
                  Create a team
      %fieldset
        %legend
          Personal projects:
          %small.right
            %span= current_user.personal_projects.count
            of
            %span= current_user.projects_limit
        .padded
          .progress
            .bar{style: "width: #{current_user.projects_limit_percent}%;"}

      %fieldset
        %legend
          SSH public keys:
          %span.right
            = link_to pluralize(current_user.keys.count, 'key'), keys_path
        .padded
          = link_to "Add Public Key", new_key_path, class: "btn btn-small"

  .form-actions
    = f.submit 'Save', class: "btn btn-save"