<commit_before>%h3.page-title
  Admin area
%p.light
  You can manage projects, users and other GitLab data from here.
%hr
.admin_dash.row
  .span4
    .light-well
      %h4 Projects
      .data
        = link_to admin_projects_path do
          %h1= Project.count
        %hr
        = link_to 'New Project', new_project_path, class: "btn btn-new"
  .span4
    .light-well
      %h4 Users
      .data
        = link_to admin_users_path do
          %h1= User.count
        %hr
        = link_to 'New User', new_admin_user_path, class: "btn btn-new"
  .span4
    .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
  .span4
    %h4 Latest projects
    %hr
    - @projects.each do |project|
      %p
        = link_to project.name_with_namespace, [:admin, project]
        %span.light.pull-right
          = time_ago_in_words project.created_at
          ago

  .span4
    %h4 Latest users
    %hr
    - @users.each do |user|
      %p
        = link_to [:admin, user] do
          = user.name
        %span.light.pull-right
          = time_ago_in_words user.created_at
          ago

  .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
  .span4
    %h4 Stats
    %hr
    %p
      Forks
      %span.light.pull-right
        = ForkedProjectLink.count
    %p
      Issues
      %span.light.pull-right
        = Issue.count
    %p
      Merge Requests
      %span.light.pull-right
        = 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
  .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<commit_msg>Show ruby version on admin dashboard<commit_after>%h3.page-title
  Admin area
%p.light
  You can manage projects, users and other GitLab data from here.
%hr
.admin_dash.row
  .span4
    .light-well
      %h4 Projects
      .data
        = link_to admin_projects_path do
          %h1= Project.count
        %hr
        = link_to 'New Project', new_project_path, class: "btn btn-new"
  .span4
    .light-well
      %h4 Users
      .data
        = link_to admin_users_path do
          %h1= User.count
        %hr
        = link_to 'New User', new_admin_user_path, class: "btn btn-new"
  .span4
    .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
  .span4
    %h4 Latest projects
    %hr
    - @projects.each do |project|
      %p
        = link_to project.name_with_namespace, [:admin, project]
        %span.light.pull-right
          = time_ago_in_words project.created_at
          ago

  .span4
    %h4 Latest users
    %hr
    - @users.each do |user|
      %p
        = link_to [:admin, user] do
          = user.name
        %span.light.pull-right
          = time_ago_in_words user.created_at
          ago

  .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
  .span4
    %h4 Stats
    %hr
    %p
      Forks
      %span.light.pull-right
        = ForkedProjectLink.count
    %p
      Issues
      %span.light.pull-right
        = Issue.count
    %p
      Merge Requests
      %span.light.pull-right
        = 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
  .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
    %p
      Ruby
      %span.pull-right
        #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
{'fraction_non_alphanumeric': 0.09224091155724362, 'fraction_numerical': 0.008681497558328812, 'mean_word_length': 1.613421550094518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5438286', 'n_tokens_mistral': 1946, 'n_tokens_neox': 1913, 'n_words': 406}