mod: massive ui improvement add: charityhost 1C/1G/20G/1T add: desc for all provider index
28 lines
1014 B
HTML
28 lines
1014 B
HTML
{{- /* Get Provider Specs Arguments. */}}
|
|
{{- $CPU_MODEL := or (.Get "cpu_model") "N/a" }}
|
|
{{- $CPU_CORE := or (.Get "cpu_core") "N/a" }}
|
|
{{- $RAM_TOTAL := or (.Get "ram_total") "N/a" }}
|
|
{{- $STORAGE_TOTAL := or (.Get "storage_total") "N/a" }}
|
|
{{- $TRAFFIC_LIMIT := or (.Get "traffic_limit") "N/a" }}
|
|
{{- $TRAFFIC_TYPE := or (.Get "traffic_type") "" }}
|
|
{{- $TRAFFIC_SPEED := or (.Get "traffic_speed") "" }}
|
|
|
|
{{ $specs := slice
|
|
(dict "type" "CPU Model" "value" $CPU_MODEL)
|
|
(dict "type" "Cores" "value" $CPU_CORE)
|
|
(dict "type" "RAM" "value" $RAM_TOTAL)
|
|
(dict "type" "Storage" "value" $STORAGE_TOTAL)
|
|
(dict "type" "Traffic Limit" "value" (print $TRAFFIC_LIMIT " " $TRAFFIC_TYPE " " $TRAFFIC_SPEED))
|
|
}}
|
|
|
|
<h2>Provider Information</h2>
|
|
|
|
<h3>Specs</h3>
|
|
<div class="infoblock-list">
|
|
{{- range $specs }}
|
|
<div class="infoblock-item">
|
|
<span class="infoblock-type">{{ .type }}:</span>
|
|
<span class="infoblock-value">{{ .value | safeHTML }}</span>
|
|
</div>
|
|
{{- end }}
|
|
</div> |