show.html.haml 1.8 KB
Newer Older
1
%h2= @admin_user.name
G
gitlabhq 已提交
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
%table.round-borders
  %tr
    %td
      %b
        Email:
    %td
      = @admin_user.email
  %tr
    %td
      %b
        Admin:
        %td= check_box_tag "admin", 1, @admin_user.admin, :disabled => :disabled
  %tr
    %td
      %b
        Projects limit:
    %td
      = @admin_user.projects_limit
  - unless @admin_user.skype.empty?
    %tr
      %td
        %b
          Skype:
      %td
        = @admin_user.skype
  - unless @admin_user.linkedin.empty?
    %tr
      %td
        %b
          Linkedin:
      %td
        = @admin_user.linkedin
  - unless @admin_user.twitter.empty?
    %tr
      %td
        %b
          Twitter:
      %td
        = @admin_user.twitter
  %tr
    %td{:colspan => 2}
D
Dmitriy Zaporozhets 已提交
44
      = link_to 'Edit', edit_admin_user_path(@admin_user), :class => "btn"
G
gitlabhq 已提交
45 46

.span-14
N
Nihad Abbasov 已提交
47
  %h2 Projects
G
gitlabhq 已提交
48 49 50

  %table.round-borders
    %tr
51 52 53
      %thead
        %th Name
        %th Added
54 55
        %th Project Access
        %th Repository Access
56
        %th
57
        %th
G
gitlabhq 已提交
58 59 60 61 62 63

    - @admin_user.users_projects.each do |tm|
      - project = tm.project
      %tr
        %td= link_to project.name, admin_project_path(project)
        %td= time_ago_in_words(tm.updated_at) + " ago"
64 65
        %td= select_tag :project_access, options_for_select(Project.access_options, tm.project_access), :class => "project-access-select", :disabled => :disabled
        %td= select_tag :repo_access, options_for_select(Repository.access_options, tm.repo_access), :class => "repo-access-select", :disabled => :disabled
G
gitlabhq 已提交
66 67 68
        %td= link_to 'Edit', edit_admin_team_member_path(tm)
        %td= link_to 'Cancel', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete

D
Dmitriy Zaporozhets 已提交
69
  = link_to 'Add To Another Project', new_admin_team_member_path(:team_member => {:user_id => @admin_user.id}), :class => "btn"