debian-mirror-gitlab/app/views/admin/dashboard/index.html.haml

156 lines
3.9 KiB
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
.admin-dashboard.prepend-top-default
2014-09-02 18:07:02 +05:30
.row
.col-md-4
2015-04-26 12:48:37 +05:30
%h4 Statistics
2014-09-02 18:07:02 +05:30
%hr
%p
Forks
%span.light.pull-right
= number_with_delimiter(ForkedProjectLink.count)
2014-09-02 18:07:02 +05:30
%p
Issues
%span.light.pull-right
= number_with_delimiter(Issue.count)
2014-09-02 18:07:02 +05:30
%p
Merge Requests
%span.light.pull-right
= number_with_delimiter(MergeRequest.count)
2014-09-02 18:07:02 +05:30
%p
Notes
%span.light.pull-right
= number_with_delimiter(Note.count)
2014-09-02 18:07:02 +05:30
%p
Snippets
%span.light.pull-right
= number_with_delimiter(Snippet.count)
2014-09-02 18:07:02 +05:30
%p
SSH Keys
%span.light.pull-right
= number_with_delimiter(Key.count)
2014-09-02 18:07:02 +05:30
%p
Milestones
%span.light.pull-right
= number_with_delimiter(Milestone.count)
2014-09-02 18:07:02 +05:30
%p
2015-04-26 12:48:37 +05:30
Active Users
2014-09-02 18:07:02 +05:30
%span.light.pull-right
= number_with_delimiter(User.active.count)
2014-09-02 18:07:02 +05:30
.col-md-4
%h4
Features
%hr
%p
Sign up
%span.light.pull-right
2015-04-26 12:48:37 +05:30
= boolean_to_icon signup_enabled?
2014-09-02 18:07:02 +05:30
%p
LDAP
%span.light.pull-right
= boolean_to_icon Gitlab.config.ldap.enabled
%p
Gravatar
%span.light.pull-right
2015-04-26 12:48:37 +05:30
= boolean_to_icon gravatar_enabled?
2014-09-02 18:07:02 +05:30
%p
OmniAuth
%span.light.pull-right
= boolean_to_icon Gitlab.config.omniauth.enabled
2015-09-25 12:07:36 +05:30
%p
Reply by email
%span.light.pull-right
= boolean_to_icon Gitlab::IncomingEmail.enabled?
2014-09-02 18:07:02 +05:30
.col-md-4
2015-09-11 14:41:01 +05:30
%h4
Components
- if current_application_settings.version_check_enabled
.pull-right
= version_status_badge
2014-09-02 18:07:02 +05:30
%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
Git
%span.pull-right
= Gitlab::Git.version
2014-09-02 18:07:02 +05:30
%p
Ruby
%span.pull-right
#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
%p
Rails
%span.pull-right
#{Rails::VERSION::STRING}
2016-04-02 18:10:28 +05:30
%p
= Gitlab::Database.adapter_name
%span.pull-right
= Gitlab::Database.version
2015-04-26 12:48:37 +05:30
%hr
.row
.col-sm-4
.light-well
%h4 Projects
.data
= link_to admin_namespaces_projects_path do
%h1= number_with_delimiter(Project.count)
2015-04-26 12:48:37 +05:30
%hr
= link_to('New Project', new_project_path, class: "btn btn-new")
.col-sm-4
.light-well
%h4 Users
.data
= link_to admin_users_path do
%h1= number_with_delimiter(User.count)
2015-04-26 12:48:37 +05:30
%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= number_with_delimiter(Group.count)
2015-04-26 12:48:37 +05:30
%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
= link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project], class: 'str-truncated'
%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)}