BigW Consortium Gitlab

index.html.haml 3.44 KB
Newer Older
1 2 3
.admin-dashboard
  .row
    .col-md-4
4
      %h4 Statistics
5
      %hr
randx committed
6
      %p
7
        Forks
8
        %span.light.pull-right
9
          = ForkedProjectLink.count
randx committed
10
      %p
11
        Issues
12
        %span.light.pull-right
13
          = Issue.count
14
      %p
15
        Merge Requests
16
        %span.light.pull-right
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
          = MergeRequest.count
      %p
        Notes
        %span.light.pull-right
          = Note.count
      %p
        Snippets
        %span.light.pull-right
          = Snippet.count
      %p
        SSH Keys
        %span.light.pull-right
          = Key.count
      %p
        Milestones
        %span.light.pull-right
          = Milestone.count
34
      %p
35
        Active Users
36
        %span.light.pull-right
37
          = 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 82 83 84 85
      %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
      %p
        Ruby
        %span.pull-right
          #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
86

87 88 89 90
      %p
        Rails
        %span.pull-right
          #{Rails::VERSION::STRING}
91 92 93 94 95 96
  %hr
  .row
    .col-sm-4
      .light-well
        %h4 Projects
        .data
Vinnie Okada committed
97
          = link_to admin_namespaces_projects_path do
98 99
            %h1= Project.count
          %hr
Vinnie Okada committed
100
          = link_to('New Project', new_project_path, class: "btn btn-new")
101 102
    .col-sm-4
      .light-well
103
        %h4 Users
104 105
        .data
          = link_to admin_users_path do
106
            %h1= User.count
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
          %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
            %h1= Group.count
          %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 committed
124
          = link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project], class: 'str-truncated'
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
          %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)}