From af93603ba3452a8adf2dd925ebeb7cfd48ff7382 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 24 Oct 2021 13:00:35 +0200 Subject: [PATCH] Use strategy release in admin dashboard --- app/views/admin/dashboard/show.html.slim | 9 +++++---- config/locales/de.yml | 4 ++-- config/locales/en.yml | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/admin/dashboard/show.html.slim b/app/views/admin/dashboard/show.html.slim index a4fd9102..9bf07936 100644 --- a/app/views/admin/dashboard/show.html.slim +++ b/app/views/admin/dashboard/show.html.slim @@ -13,14 +13,15 @@ div.mb-4 = "CodeOcean Release:" pre = Sentry.configuration.release -- if DockerContainerPool.active? +- if Runner.management_active? div.mb-4 - = "DockerContainerPool Release:" - pre = DockerContainerPool.dump_info['release'] + = Runner.strategy_class.name.demodulize + =< "Release:" + pre = Runner.strategy_class.release h2 Docker -- if DockerContainerPool.active? +- if Runner.management_active? h3 = t('.current') .table-responsive table.table diff --git a/config/locales/de.yml b/config/locales/de.yml index 4cf94e06..108da7e8 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -19,7 +19,7 @@ de: network_enabled: Netzwerkzugriff name: Name permitted_execution_time: Erlaubte Ausführungszeit (in Sekunden) - pool_size: Docker-Container-Pool-Größe + pool_size: Prewarming-Pool-Größe run_command: Ausführungsbefehl test_command: Testbefehl testing_framework: Testing-Framework @@ -240,7 +240,7 @@ de: show: current: Aktuelle Verfügbarkeit history: Verfügbarkeitsverlauf - inactive: Der Container-Pool ist nicht aktiv. + inactive: Es ist kein Runner Management aktiv. quantity: Verfügbare Container application: not_authorized: Sie Sind nicht berechtigt, diese Aktion auszuführen. diff --git a/config/locales/en.yml b/config/locales/en.yml index f9c1cfd9..44d0e8df 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -19,7 +19,7 @@ en: name: Name network_enabled: Network Enabled permitted_execution_time: Permitted Execution Time (in Seconds) - pool_size: Docker Container Pool Size + pool_size: Prewarming Pool Size run_command: Run Command test_command: Test Command testing_framework: Testing Framework @@ -240,7 +240,7 @@ en: show: current: Current Availability history: Availability History - inactive: Container pooling is not enabled. + inactive: No runner management is currently enabled. quantity: Available Containers application: not_authorized: You are not authorized to perform this action.