administrator dashboard for observing the Docker container pool

This commit is contained in:
Hauke Klement
2015-02-10 12:23:26 +01:00
parent 7ab57403df
commit 59ca0a57c3
10 changed files with 147 additions and 0 deletions

View File

@ -123,11 +123,18 @@ de:
models:
exercise:
at_most_one_main_file: dürfen höchstens eine Hauptdatei enthalten
admin:
dashboard:
show:
inactive: Der Container-Pool ist nicht aktiv.
quantity: Verfügbare Container
application:
not_authorized: Sie Sind nicht berechtigt, diese Aktion auszuführen.
breadcrumbs:
application:
welcome: Startseite
dashboard:
show: Dashboard
sessions:
destroy_through_lti: Code-Abgabe
consumers:

View File

@ -123,11 +123,18 @@ en:
models:
exercise:
at_most_one_main_file: must include at most one main file
admin:
dashboard:
show:
inactive: Container pooling is not enabled.
quantity: Available Containers
application:
not_authorized: You are not authorized to perform this action.
breadcrumbs:
application:
welcome: Cover Page
dashboard:
show: Dashboard
sessions:
destroy_through_lti: Code Submission
consumers:

View File

@ -3,6 +3,10 @@ FILENAME_REGEXP = /[\w\.]+/ unless Kernel.const_defined?(:FILENAME_REGEXP)
Rails.application.routes.draw do
root to: 'application#welcome'
namespace :admin do
get 'dashboard', to: 'dashboard#show'
end
get '/help', to: 'application#help'
resources :consumers