2025-04-12 22:30:51 +07:00
|
|
|
{{- /*
|
|
|
|
For use with 7
|
|
|
|
*/}}
|
|
|
|
|
|
|
|
{{- /* Get Policy Arguments. */}}
|
|
|
|
{{- $TORRENT := or (.Get "torrent") "N/a" }}
|
|
|
|
{{- $SMTP := or (.Get "smtp") "N/a" }}
|
|
|
|
{{- $ADULT_CONTENT := or (.Get "adult_content") "N/a" }}
|
|
|
|
{{- $TOR := or (.Get "tor") "N/a" }}
|
|
|
|
{{- $VPN := or (.Get "vpn") "N/a" }}
|
|
|
|
|
|
|
|
{{- $policy := slice
|
|
|
|
(dict "type" "Torrent" "value" $TORRENT)
|
|
|
|
(dict "type" "SMTP(Port 25)" "value" $SMTP)
|
|
|
|
(dict "type" "Adult Content" "value" $ADULT_CONTENT)
|
|
|
|
(dict "type" "Tor Network" "value" $TOR)
|
|
|
|
(dict "type" "VPN" "value" $VPN)
|
|
|
|
}}
|
|
|
|
|
|
|
|
<details class="spoiler">
|
2025-04-27 16:12:12 +07:00
|
|
|
<summary><h2>Policy</h2></summary>
|
2025-04-12 22:30:51 +07:00
|
|
|
<div class="spoiler-content">
|
2025-04-27 16:12:12 +07:00
|
|
|
<div class="infoblock-list">
|
|
|
|
{{- range $policy }}
|
|
|
|
<div class="infoblock-item">
|
|
|
|
<span class="infoblock-type">{{ .type }}:</span>
|
|
|
|
<span class="infoblock-value">{{ .value | safeHTML }}</span>
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ if ne .Inner "" }}
|
|
|
|
{{ .Inner | markdownify }}
|
|
|
|
{{ end }}
|
|
|
|
|
2025-04-12 22:30:51 +07:00
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
|
2025-04-27 16:12:12 +07:00
|
|
|
<br>
|