15 lines
1.1 KiB
Plaintext
15 lines
1.1 KiB
Plaintext
h1
|
|
= @execution_environment
|
|
= render('shared/edit_button', object: @execution_environment)
|
|
|
|
= row(label: 'execution_environment.name', value: @execution_environment.name)
|
|
= row(label: 'execution_environment.user', value: link_to_if(policy(@execution_environment.author).show?, @execution_environment.author, @execution_environment.author))
|
|
= row(label: 'execution_environment.file_type', value: @execution_environment.file_type.present? ? link_to(@execution_environment.file_type, @execution_environment.file_type) : nil)
|
|
- [:docker_image, :exposed_ports, :memory_limit, :network_enabled, :permitted_execution_time, :pool_size].each do |attribute|
|
|
= row(label: "execution_environment.#{attribute}", value: @execution_environment.send(attribute))
|
|
- [:run_command, :test_command].each do |attribute|
|
|
= row(label: "execution_environment.#{attribute}") do
|
|
code = @execution_environment.send(attribute)
|
|
= row(label: 'execution_environment.testing_framework', value: @testing_framework_adapter.try(:framework_name))
|
|
= row(label: 'execution_environment.help', value: render_markdown(@execution_environment.help))
|