diff options
author | Takuya Noguchi <tak.noguchi.iridge@gmail.com> | 2017-06-26 17:29:17 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-26 17:29:17 +0000 |
commit | 102a17743ee6efd38f3afacf98a6a53599c93044 (patch) | |
tree | d123e9faccd29d66fa2e5334c3af6aaf23fd06fa /app/views/admin | |
parent | db8ad8638a6f1dd06b1342da72105b8fe0ac0687 (diff) | |
download | gitlab-ce-102a17743ee6efd38f3afacf98a6a53599c93044.tar.gz |
Add explicit message when no runners on admin
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/runners/index.html.haml | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/app/views/admin/runners/index.html.haml b/app/views/admin/runners/index.html.haml index e242e851b4d..2da8f615470 100644 --- a/app/views/admin/runners/index.html.haml +++ b/app/views/admin/runners/index.html.haml @@ -58,20 +58,23 @@ %br - .table-holder - %table.table - %thead - %tr - %th Type - %th Runner token - %th Description - %th Version - %th Projects - %th Jobs - %th Tags - %th Last contact - %th + - if @runners.any? + .table-holder + %table.table + %thead + %tr + %th Type + %th Runner token + %th Description + %th Version + %th Projects + %th Jobs + %th Tags + %th Last contact + %th - - @runners.each do |runner| - = render "admin/runners/runner", runner: runner - = paginate @runners, theme: "gitlab" + - @runners.each do |runner| + = render "admin/runners/runner", runner: runner + = paginate @runners, theme: "gitlab" + - else + .nothing-here-block No runners found |