feat: strengthen operator template and localized SEO UX

This commit is contained in:
pipeline
2026-07-21 04:01:15 +03:00
parent 363810024b
commit 14d616d1c9
18 changed files with 271 additions and 95 deletions
+12 -11
View File
@@ -6,7 +6,7 @@
{{- $page := .page -}}
{{- $brand := $page.Site.Data.brand -}}
{{- $methods := $page.Site.Data.payment_methods -}}
{{- $locale := .locale -}}
{{- $locale := .locale | default $page.Language.LanguageCode -}}
{{- if $locale -}}
{{- $f := slice -}}
{{- range $methods -}}{{ if in .availableLocales $locale }}{{ $f = $f | append . }}{{ end }}{{- end -}}
@@ -14,18 +14,19 @@
{{- end -}}
{{- $curr := "£" -}}
{{- with where $page.Site.Data.locales "locale" $brand.defaultLocale -}}{{- $curr = (index . 0).currencySymbol -}}{{- end -}}
{{- with where $page.Site.Data.locales "locale" $locale -}}{{- $curr = (index . 0).currencySymbol -}}{{- end -}}
{{- $isWithdrawal := eq $page.Slug "withdrawal" -}}
<div class="overflow-x-auto">
<table class="data-table">
<thead>
<tr>
<th scope="col">Method</th>
<th scope="col">Type</th>
<th scope="col">Min. deposit</th>
<th scope="col">Max. deposit</th>
<th scope="col">Processing time</th>
<th scope="col">Fees</th>
<th scope="col">{{ i18n "paymentMethod" }}</th>
<th scope="col">{{ i18n "paymentType" }}</th>
{{ if not $isWithdrawal }}<th scope="col">{{ i18n "minimumDeposit" }}</th>{{ end }}
{{ if not $isWithdrawal }}<th scope="col">{{ i18n "maximumDeposit" }}</th>{{ end }}
<th scope="col">{{ i18n "processingTime" }}</th>
<th scope="col">{{ i18n "fees" }}</th>
</tr>
</thead>
<tbody>
@@ -38,8 +39,8 @@
</span>
</th>
<td><span class="badge-muted capitalize">{{ .type }}</span></td>
<td><span data-locale-currency>{{ $curr }}</span>{{ .minDeposit }}</td>
<td><span data-locale-currency>{{ $curr }}</span>{{ .maxDeposit }}</td>
{{ if not $isWithdrawal }}<td><span data-locale-currency>{{ $curr }}</span>{{ .minDeposit }}</td>{{ end }}
{{ if not $isWithdrawal }}<td><span data-locale-currency>{{ $curr }}</span>{{ .maxDeposit }}</td>{{ end }}
<td>{{ .processingTime }}</td>
<td>{{ .fees }}</td>
</tr>
@@ -47,4 +48,4 @@
</tbody>
</table>
</div>
<p class="mt-2 text-xs text-secondary/70">Availability and limits vary by region and are shown for your selected market. Select your region in the header to update this table.</p>
<p class="mt-2 text-xs text-secondary/70">{{ i18n "paymentAvailabilityNote" }}</p>