gitlab-org--gitlab-foss/app/views/admin/dashboard/index.html.haml

138 lines
2.8 KiB
Text
Raw Normal View History

2013-10-13 07:38:20 -04:00
%h3.page-title
Admin area
%p.light
You can manage projects, users and other GitLab data from here.
%hr
2012-04-20 12:41:49 -04:00
.admin_dash.row
2013-01-09 00:14:05 -05:00
.span4
2013-10-13 07:38:20 -04:00
.light-well
%h4 Projects
.data
= link_to admin_projects_path do
%h1= Project.count
%hr
2013-10-13 07:38:20 -04:00
= link_to 'New Project', new_project_path, class: "btn btn-new"
2013-01-09 00:14:05 -05:00
.span4
2013-10-13 07:38:20 -04:00
.light-well
%h4 Users
.data
= link_to admin_users_path do
%h1= User.count
%hr
2013-10-13 07:38:20 -04:00
= link_to 'New User', new_admin_user_path, class: "btn btn-new"
.span4
2013-10-13 07:38:20 -04:00
.light-well
%h4 Groups
.data
= link_to admin_groups_path do
%h1= Group.count
%hr
2013-10-13 07:38:20 -04:00
= link_to 'New Group', new_admin_group_path, class: "btn btn-new"
2013-10-13 07:38:20 -04:00
.row.prepend-top-10
.span4
%h4 Latest projects
2012-04-20 12:41:49 -04:00
%hr
- @projects.each do |project|
2012-08-25 13:31:19 -04:00
%p
= link_to project.name_with_namespace, [:admin, project]
2013-01-30 09:40:43 -05:00
%span.light.pull-right
= time_ago_in_words project.created_at
ago
.span4
%h4 Latest users
2012-04-20 12:41:49 -04:00
%hr
- @users.each do |user|
2012-08-25 13:31:19 -04:00
%p
= link_to [:admin, user] do
2012-08-25 13:31:19 -04:00
= user.name
2013-01-30 09:40:43 -05:00
%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
2013-01-30 09:40:43 -05:00
%span.light.pull-right
= Issue.count
%p
Merge Requests
2013-01-30 09:40:43 -05:00
%span.light.pull-right
= MergeRequest.count
%p
Notes
2013-01-30 09:40:43 -05:00
%span.light.pull-right
= Note.count
%p
Snippets
2013-01-30 09:40:43 -05:00
%span.light.pull-right
= Snippet.count
%p
SSH Keys
2013-01-30 09:40:43 -05:00
%span.light.pull-right
= Key.count
%p
Milestones
2013-01-30 09:40:43 -05:00
%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
2013-11-26 05:14:25 -05:00
%p
Ruby
%span.pull-right
#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
%p
Rails
%span.pull-right
#{Rails::VERSION::STRING}