Fork project

This commit is contained in:
2025-09-19 15:59:08 +08:00
commit 2f921b6209
52 changed files with 4012 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<div class="tab-pane fade" id="limits" role="tabpanel">
{% for config, val in {
"Max Container Count": ("docker_max_container_count", "The maximum number of countainers allowed on the server"),
"Max Renewal Times": ("docker_max_renew_count", "The maximum times a user is allowed to renew a container"),
"Docker Container Timeout": ("docker_timeout", "A container times out after [timeout] seconds."),
}.items() %}
{% set value = get_config('whale:' + val[0]) %}
<div class="form-group">
<label for="{{ val[0].replace('_', '-') }}">
{{ config }}
<small class="form-text text-muted">
{{ val[1] }}
</small>
</label>
<input type="text" class="form-control"
id="{{ val[0].replace('_', '-') }}" name="{{ 'whale:' + val[0] }}"
{% if value != None %}value="{{ value }}"{% endif %}>
</div>
{% endfor %}
<div class="submit-row float-right">
<button type="submit" tabindex="0" class="btn btn-md btn-primary btn-outlined">
Submit
</button>
</div>
</div>