diff --git a/themes/xmpp-providers/assets/css/style.css b/themes/xmpp-providers/assets/css/style.css index 0d61cd1..9ab4069 100644 --- a/themes/xmpp-providers/assets/css/style.css +++ b/themes/xmpp-providers/assets/css/style.css @@ -83,7 +83,7 @@ article h2 { .category-d { background-color: rgb(217, 16, 30); } -.provider-category-bg { +.provider-details-bg { background-color: #fafafa; } .address-input { @@ -185,7 +185,7 @@ table.sortable th:hover { .card { background-color:#2d3439; } - .provider-category-bg { + .provider-details-bg { background-color: #2d3439; } } diff --git a/themes/xmpp-providers/layouts/_default/single.html b/themes/xmpp-providers/layouts/_default/single.html index 9460b92..8d586dd 100644 --- a/themes/xmpp-providers/layouts/_default/single.html +++ b/themes/xmpp-providers/layouts/_default/single.html @@ -1,7 +1,7 @@ {{ define "main" }}
-
+

{{ .Title }}

{{ .Content }}
diff --git a/themes/xmpp-providers/layouts/partials/provider-list-items.html b/themes/xmpp-providers/layouts/partials/provider-list-items.html index 02e4912..d8238ff 100644 --- a/themes/xmpp-providers/layouts/partials/provider-list-items.html +++ b/themes/xmpp-providers/layouts/partials/provider-list-items.html @@ -55,7 +55,7 @@

{{ $len := (len .website) }} {{ $count := 0 }} {{ range $lang, $address := .website }} - {{ upper $lang }} + {{ upper $lang }} {{ $count = add $count 1 }} {{ if ne $count $len }} | diff --git a/themes/xmpp-providers/layouts/provider/single.html b/themes/xmpp-providers/layouts/provider/single.html index a0c95a6..382de9a 100644 --- a/themes/xmpp-providers/layouts/provider/single.html +++ b/themes/xmpp-providers/layouts/provider/single.html @@ -1,7 +1,7 @@ {{ define "main" }}
-
+

{{ .Title }}

{{ .Content }}
diff --git a/themes/xmpp-providers/layouts/shortcodes/provider-details.html b/themes/xmpp-providers/layouts/shortcodes/provider-details.html index 9825bee..f96dc02 100644 --- a/themes/xmpp-providers/layouts/shortcodes/provider-details.html +++ b/themes/xmpp-providers/layouts/shortcodes/provider-details.html @@ -32,7 +32,7 @@ {{ $len := (len .website) }} {{ $count := 0 }} {{ range $lang, $address := .website }} - {{ upper $lang }} + {{ upper $lang }} {{ $count = add $count 1 }} {{ if ne $count $len }} | @@ -44,141 +44,163 @@
-
-

Service

- - - - - - - - + + + + + +
- - - {{ if .freeOfCharge }} - Free of charge - {{ else }} - Paid - {{ end }} -
- - - Server / Data - {{ if lt (len .serverLocations) 2 }} - location: - {{ else }} - locations: - {{ end }} - {{ if .serverLocations }} - {{ $len := (len .serverLocations) }} - {{ $count := 0 }} - {{ range $index, $location := .serverLocations }} - - {{ range split (upper $location) "" }} - {{- printf "%c" (delimit . "" | int | add 127397) -}} +
+
+
+ Service +
+
+ + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - -
+ + + {{ if .freeOfCharge }} + Free of charge + {{ else }} + Paid + {{ end }} +
+ + + {{ if .legalNotice }} + Legal notice: + {{ $len := (len .legalNotice) }} + {{ $count := 0 }} + {{ range $lang, $address := .legalNotice }} + {{ upper $lang }} + {{ $count = add $count 1 }} + {{ if ne $count $len }} + | + {{ end }} {{ end }} - - {{ $count = add $count 1 }} - {{ if ne $count $len }} - | + {{ else }} + No legal notice available {{ end }} - {{ end }} - {{ else }} - unknown - {{ end }} -
- - - {{ if .legalNotice }} - Legal notice: - {{ $len := (len .legalNotice) }} - {{ $count := 0 }} - {{ range $lang, $address := .legalNotice }} - {{ upper $lang }} - {{ $count = add $count 1 }} - {{ if ne $count $len }} - | +
+ + + Bus factor: + {{ if eq (int .busFactor) -1 }} + unknown + {{ else }} + {{ .busFactor }} + {{ if eq (int .busFactor) 1 }} + person + {{ else }} + persons + {{ end }} {{ end }} - {{ end }} - {{ else }} - No legal notice available - {{ end }} -
- - - Bus factor: - {{ if eq (int .busFactor) -1 }} - unknown - {{ else }} - {{ .busFactor }} - {{ if eq (int .busFactor) 1 }} - person - {{ else }} - persons - {{ end }} - {{ end }} -
- - - {{ if .professionalHosting }} - Professional hosting - {{ else }} - No professional hosting - {{ end }} -
- - - {{ if .ratingGreenWebCheck }} - {{ $url := replace $providers_data.ratingGreenWebCheck.source "https://admin.thegreenwebfoundation.org/greencheck/" "" }} - Green hosting - {{ else }} - No green hosting - {{ end }} -
- - - {{ if .company }} - Run by a company - {{ else }} - Not run by a company - {{ end }} -
- - - {{ if .serverSoftwareName }} - Server software: {{ .serverSoftwareName }} {{ .serverSoftwareVersion }} - {{ else }} - Unknown - {{ end }} -
-

Account

+
+ + + {{ if .company }} + Run by a company + {{ else }} + Not run by a company + {{ end }} +
+
+
+
+
+
+
+ Server +
+
+ + + + + + + + + + + + + + + + + +
+ + + Server / Data + {{ if lt (len .serverLocations) 2 }} + location: + {{ else }} + locations: + {{ end }} + {{ if .serverLocations }} + {{ $len := (len .serverLocations) }} + {{ $count := 0 }} + {{ range $index, $location := .serverLocations }} + + {{ range split (upper $location) "" }} + {{- printf "%c" (delimit . "" | int | add 127397) -}} + {{ end }} + + {{ $count = add $count 1 }} + {{ if ne $count $len }} + | + {{ end }} + {{ end }} + {{ else }} + unknown + {{ end }} +
+ + + {{ if .professionalHosting }} + Professional hosting + {{ else }} + No professional hosting + {{ end }} +
+ + + {{ if .ratingGreenWebCheck }} + {{ $url := replace $providers_data.ratingGreenWebCheck.source "https://admin.thegreenwebfoundation.org/greencheck/" "" }} + Green hosting + {{ else }} + No green hosting + {{ end }} +
+ + + {{ if .serverSoftwareName }} + Server software: {{ .serverSoftwareName }} {{ .serverSoftwareVersion }} + {{ else }} + Unknown + {{ end }} +
+
+
+
+

+ +
+
+

Account

@@ -186,18 +208,23 @@

Account

{{ if .inBandRegistration }} - You can register on this provider directly via a supported app or your app (if supported) + You can register on this provider directly via: + {{ end }} {{ if .registrationWebPage }} - {{ if .inBandRegistration }} -
- {{ end }} You can register on this provider via a web browser  {{ if eq (len .registrationWebPage) 1 }}
{{ range $lang, $address := .registrationWebPage }} - Register ({{ upper $lang }}) + Register ({{ upper $lang }}) {{ end }} {{ else if gt (len .registrationWebPage) 1 }} @@ -207,7 +234,7 @@

Account

@@ -228,7 +255,7 @@

Account

{{ $len := (len .passwordReset) }} {{ $count := 0 }} {{ range $lang, $address := .passwordReset }} - {{ upper $lang }} + {{ upper $lang }} {{ $count = add $count 1 }} {{ if ne $count $len }} | @@ -254,8 +281,8 @@

Account

-

File Sharing (HTTP Upload)

- +

File Sharing (HTTP Upload)

+
@@ -305,10 +332,10 @@

File Sharing (HTTP Upload)

-
-
+
+
- Compatibility / Security + Compatibility / Security
@@ -340,10 +367,10 @@

File Sharing (HTTP Upload)

-
-
+
+
- Contact + Contact
@@ -419,7 +446,7 @@

File Sharing (HTTP Upload)

-
+

Provider Category

{{ .category }}

diff --git a/themes/xmpp-providers/static/js/scripts.js b/themes/xmpp-providers/static/js/scripts.js index be24993..bdb9671 100644 --- a/themes/xmpp-providers/static/js/scripts.js +++ b/themes/xmpp-providers/static/js/scripts.js @@ -58,6 +58,8 @@ document.addEventListener("DOMContentLoaded", (event) => { const copy_toast = document.getElementById("copy_toast") const toast_alert = bootstrap.Toast.getOrCreateInstance(copy_toast) toast_alert.show() + const tooltip = bootstrap.Tooltip.getInstance("#badge_link_copy") + tooltip.hide() }); }