Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html.haml « dashboard « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3698778e9fcec90318225a33152785fde7511ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.admin_dash.row
  .span4
    .ui-box
      %h5.title Projects
      .data.padded
        = link_to admin_projects_path do
          %h1= Project.count
        %hr
        = link_to 'New Project', new_project_path, class: "btn btn-small"
  .span4
    .ui-box
      %h5.title Groups
      .data.padded
        = link_to admin_groups_path do
          %h1= Group.count
        %hr
        = link_to 'New Group', new_admin_group_path, class: "btn btn-small"
  .span4
    .ui-box
      %h5.title Users
      .data.padded
        = link_to admin_users_path do
          %h1= User.count
        %hr
        = link_to 'New User', new_admin_user_path, class: "btn btn-small"

.row
  .span4
    %h4 Latest projects
    %hr
    - @projects.each do |project|
      %p
        = link_to project.name_with_namespace, [:admin, project]
        %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
        %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