summaryrefslogtreecommitdiff
path: root/app/views/admin/dashboard/index.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-10 08:43:25 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-10 08:43:25 +0200
commitc2982c9a3116f95036d74530f7c20c692cb983d7 (patch)
tree9064ebfb8e21c5b93a42079dd023657120afd48f /app/views/admin/dashboard/index.html.haml
parent78698698dc0cef4daa50ef89b10ff6b4352d6fc8 (diff)
downloadgitlab-ce-c2982c9a3116f95036d74530f7c20c692cb983d7.tar.gz
sidekiq.log in admin area. Improved admin dashboard
Diffstat (limited to 'app/views/admin/dashboard/index.html.haml')
-rw-r--r--app/views/admin/dashboard/index.html.haml44
1 files changed, 39 insertions, 5 deletions
diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml
index 2e572aaba79..9a5e7edea0f 100644
--- a/app/views/admin/dashboard/index.html.haml
+++ b/app/views/admin/dashboard/index.html.haml
@@ -25,17 +25,51 @@
= link_to 'New User', new_admin_user_path, class: "btn small"
.row
- .span6
- %h3 Latest projects
+ .span4
+ %h4 Latest projects
%hr
- @projects.each do |project|
%p
= link_to project.name_with_namespace, [:admin, project]
- .span6
- %h3 Latest users
+ %span.light.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
- %small= user.email
+ %span.light.right
+ = time_ago_in_words user.created_at
+ ago
+
+ .span4
+ %h4 Stats
+ %hr
+ %p
+ Issues
+ %span.light.right
+ = Issue.count
+ %p
+ Merge Requests
+ %span.light.right
+ = MergeRequest.count
+ %p
+ Notes
+ %span.light.right
+ = Note.count
+ %p
+ Snippets
+ %span.light.right
+ = Snippet.count
+ %p
+ SSH Keys
+ %span.light.right
+ = Key.count
+ %p
+ Milestones
+ %span.light.right
+ = Milestone.count