hugo-owu-se/layouts/shortcodes/vps_company.html
minoplhy c2ce9d9a28
add charityhost 1C/1G/20G/1T / UI Improvement
mod: massive ui improvement
add: charityhost 1C/1G/20G/1T
add: desc for all provider index
2025-04-27 16:12:12 +07:00

27 lines
928 B
HTML

{{- /*
For use with 7
*/}}
{{- /* Get OWNER Arguments. */}}
{{- $COMPANY := or (.Get "company") "N/a" }}
{{- $REGISTER_ID := or (.Get "register_id") "N/a" }}
{{- $COMPANY_STATE := or (.Get "company_state") "N/a" }}
{{- $COMPANY_COUNTRY := or (.Get "company_country") "N/a" }}
{{- $WEBSITE := or (.Get "website") "N/a" }}
{{ $owner := slice
(dict "type" "Company" "value" $COMPANY)
(dict "type" "Entity ID" "value" $REGISTER_ID)
(dict "type" "Company Location" "value" (print $COMPANY_STATE ", " $COMPANY_COUNTRY))
(dict "type" "Website" "value" (safeHTML (print "<a target=_blank href='https://" $WEBSITE "'>" $WEBSITE "</a>")))
}}
<h2>Owner</h2>
<div class="infoblock-list">
{{- range $owner }}
<div class="infoblock-item">
<span class="infoblock-type">{{ .type }}:</span>
<span class="infoblock-value">{{ .value | safeHTML }}</span>
</div>
{{- end }}
</div>