index.html.haml 1.25 KB
Newer Older
randx's avatar
randx committed
1 2 3 4 5 6
.admin_dash.row
  .span4
    .ui-box
      %h5
        Resque Workers
      .data.padded
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
        - if @resque_accessible
          = link_to admin_resque_path do
            %h1{class: @workers.present? ? "cgreen" : "cred"}
              = @workers.count
          %hr
          %p
            %strong{class: @pending_jobs > 0 ? "cred" : "cgreen"}
              #{@pending_jobs} post receive jobs waiting
        - else
          = link_to admin_resque_path do
            %h1.cdark ?
          %hr
          %p
            %strong Resque status unknown

randx's avatar
randx committed
22 23 24 25 26

  .span4
    .ui-box
      %h5 Projects
      .data.padded
27
        = link_to admin_projects_path do
randx's avatar
randx committed
28 29
          %h1= Project.count
        %hr
30
        = link_to 'New Project', new_admin_project_path, class: "btn small"
randx's avatar
randx committed
31 32 33 34
  .span4
    .ui-box
      %h5 Users
      .data.padded
35
        = link_to admin_users_path do
randx's avatar
randx committed
36 37
          %h1= User.count
        %hr
38
        = link_to 'New User', new_admin_user_path, class: "btn small"
randx's avatar
randx committed
39 40 41 42 43 44 45


.row
  .span6
    %h3 Latest projects
    %hr
    - @projects.each do |project|
randx's avatar
randx committed
46
      %p
randx's avatar
randx committed
47 48 49 50 51
        = link_to project.name, [:admin, project]
  .span6
    %h3 Latest users
    %hr
    - @users.each do |user|
randx's avatar
randx committed
52
      %p
53
        = link_to [:admin, user] do
randx's avatar
randx committed
54 55
          = user.name
          %small= user.email