summaryrefslogtreecommitdiff
path: root/app/views/admin
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-21 12:45:15 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-21 12:45:15 +0200
commit898d09a21ef3bf937d0b9379dd13c917b553e859 (patch)
tree437854e16263a4f167acb18077b30ffbf2db0eee /app/views/admin
parentd18e2bd59d3003e2ae38116688e350bfc2774ae7 (diff)
downloadgitlab-ce-898d09a21ef3bf937d0b9379dd13c917b553e859.tar.gz
Gitlab_meta to 3.1. Added workaround for 500 Redis error until it will be fixed
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/dashboard/index.html.haml24
1 files changed, 16 insertions, 8 deletions
diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml
index 3e26f566a2e..b0b59a46fdb 100644
--- a/app/views/admin/dashboard/index.html.haml
+++ b/app/views/admin/dashboard/index.html.haml
@@ -4,13 +4,21 @@
%h5
Resque Workers
.data.padded
- = 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
+ - 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
+
.span4
.ui-box
@@ -42,6 +50,6 @@
%hr
- @users.each do |user|
%p
- = link_to [:admin, user] do
+ = link_to [:admin, user] do
= user.name
%small= user.email