index.html.haml 3.76 KB
Newer Older
1 2 3
.admin-dashboard
  .row
    .col-md-4
4
      %h4 Statistics
5
      %hr
randx's avatar
randx committed
6
      %p
7
        Forks
8
        %span.light.pull-right
9
          = number_with_delimiter(ForkedProjectLink.count)
randx's avatar
randx committed
10
      %p
11
        Issues
12
        %span.light.pull-right
13
          = number_with_delimiter(Issue.count)
14
      %p
15
        Merge Requests
16
        %span.light.pull-right
17
          = number_with_delimiter(MergeRequest.count)
18 19 20
      %p
        Notes
        %span.light.pull-right
21
          = number_with_delimiter(Note.count)
22 23 24
      %p
        Snippets
        %span.light.pull-right
25
          = number_with_delimiter(Snippet.count)
26 27 28
      %p
        SSH Keys
        %span.light.pull-right
29
          = number_with_delimiter(Key.count)
30 31 32
      %p
        Milestones
        %span.light.pull-right
33
          = number_with_delimiter(Milestone.count)
34
      %p
35
        Active Users
36
        %span.light.pull-right
37
          = number_with_delimiter(User.active.count)
38 39 40 41 42 43 44
    .col-md-4
      %h4
        Features
      %hr
      %p
        Sign up
        %span.light.pull-right
45
          = boolean_to_icon signup_enabled?
46 47 48 49 50 51 52
      %p
        LDAP
        %span.light.pull-right
          = boolean_to_icon Gitlab.config.ldap.enabled
      %p
        Gravatar
        %span.light.pull-right
53
          = boolean_to_icon gravatar_enabled?
54 55 56 57
      %p
        OmniAuth
        %span.light.pull-right
          = boolean_to_icon Gitlab.config.omniauth.enabled
58 59 60
      %p
        Reply by email
        %span.light.pull-right
61
          = boolean_to_icon Gitlab::IncomingEmail.enabled?
62
    .col-md-4
63 64
      %h4
        Components
65 66 67
        - if current_application_settings.version_check_enabled
          .pull-right
            = version_status_badge
68

69 70 71 72 73 74 75 76 77 78 79 80 81
      %hr
      %p
        GitLab
        %span.pull-right
          = Gitlab::VERSION
      %p
        GitLab Shell
        %span.pull-right
          = Gitlab::Shell.new.version
      %p
        GitLab API
        %span.pull-right
          = API::API::version
82 83 84 85
      %p
        Git
        %span.pull-right
          = Gitlab::Git.version
86 87 88 89
      %p
        Ruby
        %span.pull-right
          #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
90

91 92 93 94
      %p
        Rails
        %span.pull-right
          #{Rails::VERSION::STRING}
95 96 97 98 99 100
  %hr
  .row
    .col-sm-4
      .light-well
        %h4 Projects
        .data
Vinnie Okada's avatar
Vinnie Okada committed
101
          = link_to admin_namespaces_projects_path do
102
            %h1= number_with_delimiter(Project.count)
103
          %hr
Vinnie Okada's avatar
Vinnie Okada committed
104
          = link_to('New Project', new_project_path, class: "btn btn-new")
105 106
    .col-sm-4
      .light-well
107
        %h4 Users
108 109
        .data
          = link_to admin_users_path do
110
            %h1= number_with_delimiter(User.count)
111 112 113 114 115 116 117
          %hr
          = link_to 'New User', new_admin_user_path, class: "btn btn-new"
    .col-sm-4
      .light-well
        %h4 Groups
        .data
          = link_to admin_groups_path do
118
            %h1= number_with_delimiter(Group.count)
119 120 121 122 123 124 125 126 127
          %hr
          = link_to 'New Group', new_admin_group_path, class: "btn btn-new"

  .row.prepend-top-10
    .col-md-4
      %h4 Latest projects
      %hr
      - @projects.each do |project|
        %p
Vinnie Okada's avatar
Vinnie Okada committed
128
          = link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project], class: 'str-truncated'
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
          %span.light.pull-right
            #{time_ago_with_tooltip(project.created_at)}

    .col-md-4
      %h4 Latest users
      %hr
      - @users.each do |user|
        %p
          = link_to [:admin, user], class: 'str-truncated' do
            = user.name
          %span.light.pull-right
            #{time_ago_with_tooltip(user.created_at)}

    .col-md-4
      %h4 Latest groups
      %hr
      - @groups.each do |group|
        %p
          = link_to [:admin, group], class: 'str-truncated' do
            = group.name
          %span.light.pull-right
            #{time_ago_with_tooltip(group.created_at)}