index.html.haml 2.62 KB
Newer Older
1 2 3 4 5
%h3.page-title
  Admin area
%p.light
  You can manage projects, users and other GitLab data from here.
%hr
randx's avatar
randx committed
6
.admin_dash.row
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
7
  .span4
8 9 10
    .light-well
      %h4 Projects
      .data
11 12 13
        = link_to admin_projects_path do
          %h1= Project.count
        %hr
14
        = link_to 'New Project', new_project_path, class: "btn btn-new"
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
15
  .span4
16 17 18
    .light-well
      %h4 Users
      .data
19 20 21
        = link_to admin_users_path do
          %h1= User.count
        %hr
22
        = link_to 'New User', new_admin_user_path, class: "btn btn-new"
23
  .span4
24 25 26
    .light-well
      %h4 Groups
      .data
27 28 29
        = link_to admin_groups_path do
          %h1= Group.count
        %hr
30
        = link_to 'New Group', new_admin_group_path, class: "btn btn-new"
31

32
.row.prepend-top-10
33 34
  .span4
    %h4 Latest projects
randx's avatar
randx committed
35 36
    %hr
    - @projects.each do |project|
randx's avatar
randx committed
37
      %p
38
        = link_to project.name_with_namespace, [:admin, project]
39
        %span.light.pull-right
40 41 42 43 44
          = time_ago_in_words project.created_at
          ago

  .span4
    %h4 Latest users
randx's avatar
randx committed
45 46
    %hr
    - @users.each do |user|
randx's avatar
randx committed
47
      %p
48
        = link_to [:admin, user] do
randx's avatar
randx committed
49
          = user.name
50
        %span.light.pull-right
51 52 53
          = time_ago_in_words user.created_at
          ago

54 55 56 57 58 59 60 61 62 63 64 65 66
  .span4
    %h4 Latest groups
    %hr
    - @groups.each do |group|
      %p
        = link_to [:admin, group] do
          = group.name
        %span.light.pull-right
          = time_ago_in_words group.created_at
          ago

%br
.row
67 68 69
  .span4
    %h4 Stats
    %hr
70 71 72 73
    %p
      Forks
      %span.light.pull-right
        = ForkedProjectLink.count
74 75
    %p
      Issues
76
      %span.light.pull-right
77 78 79
        = Issue.count
    %p
      Merge Requests
80
      %span.light.pull-right
81 82 83
        = MergeRequest.count
    %p
      Notes
84
      %span.light.pull-right
85 86 87
        = Note.count
    %p
      Snippets
88
      %span.light.pull-right
89 90 91
        = Snippet.count
    %p
      SSH Keys
92
      %span.light.pull-right
93 94 95
        = Key.count
    %p
      Milestones
96
      %span.light.pull-right
97
        = Milestone.count
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
  .span4
    %h4
      Features
    %hr
    %p
      Sign up
      %span.light.pull-right
        = boolean_to_icon gitlab_config.signup_enabled
    %p
      LDAP
      %span.light.pull-right
        = boolean_to_icon Gitlab.config.ldap.enabled
    %p
      Gravatar
      %span.light.pull-right
        = boolean_to_icon Gitlab.config.gravatar.enabled
    %p
      OmniAuth
      %span.light.pull-right
        = boolean_to_icon Gitlab.config.omniauth.enabled
  .span4
    %h4 Components
    %hr
    %p
      GitLab
      %span.pull-right
        = Gitlab::VERSION
    %p
      GitLab Shell
      %span.pull-right
        = Gitlab::Shell.new.version