From 6531b9fd7c0fe136e92a0685af3d4633c2d9e046 Mon Sep 17 00:00:00 2001 From: pluja Date: Wed, 25 Sep 2024 22:29:31 +0200 Subject: [PATCH] Migrate comment section to Comento --- src/frontend/templates/about.html | 21 ++------ src/frontend/templates/service.html | 83 +++++++++++++---------------- 2 files changed, 41 insertions(+), 63 deletions(-) diff --git a/src/frontend/templates/about.html b/src/frontend/templates/about.html index fb76490..10d1953 100644 --- a/src/frontend/templates/about.html +++ b/src/frontend/templates/about.html @@ -514,28 +514,18 @@
-

(matrix) comments

+

comments

Each service has a dedicated comments section. The comments are suppored - by Matrix, an open network for secure, - decentralised communication, thanks to Cactus. + by a self-hosted instance of Comentario. An open-source and lightweight (20kb) commenting engine.

- To comment on a service's page, you just need a Matrix account. This method gives users full control over who hosts - their data. Users can log in using any Matrix server they choose. + To comment on a service's page, you can log in with Twitter, Github or Gitlab. Anonymous comments are also possible, but these need to be approved before being public to avoid abuse.

-

- You can read and post comments in your browser, or continue the conversation using any other Matrix client. - Comment sections are accesible from any homeserver on the Matrix network. -

- -

The source code for the web - client is LGPLv3 licensed, and the backend service is AGPLv3 licensed.

+

The source code for Comentario is licensed under MIT license.

@@ -554,8 +544,7 @@ provided. - * Comment section on each page, available on a dedicated chat room on - Matrix. + * Comment section on each page, available on a self-hosted Comentario instance. * All changes are recorded on the changelog * See any service's score breakdown: bisq example diff --git a/src/frontend/templates/service.html b/src/frontend/templates/service.html index eee4402..1c03c4d 100644 --- a/src/frontend/templates/service.html +++ b/src/frontend/templates/service.html @@ -3,11 +3,11 @@ -
+
{{if .Service.Pending}} -
-
{{partial "partials/kyc_level" .Service.KycLevel}}
+
{{partial "partials/kyc_level" .Service.KycLevel}}
-
+
{{if .Service.Comments}}
@@ -206,15 +206,15 @@ {{if .Attributes}} -
{{range .Attributes}} {{partial "partials/attribute_line" .}} {{end}}
+
{{range .Attributes}} {{partial "partials/attribute_line" .}} {{end}}
{{end}} (updated {{humanizePbTimeString .Service.Updated}})
-
+
-
+
@@ -234,62 +234,51 @@ ?

Automated, ai-driven monthly ToS reviews.

-

Last Check: {{ dateString .Service.LastTosReview }}

+

Last Check: {{ dateString .Service.LastTosReview }}

{{if .Service.TosReviews}}
{{if eq 0 (len .Service.TosReviews)}} -

Not ToS reviews for this service (yet).

+

Not ToS reviews for this service (yet).

{{else if eq (len .Service.TosUrls) 0}} -

This service has no ToS.

+

This service has no ToS.

{{else}} {{range .Service.TosReviews}} {{if .Warning}} {{partial "partials/tos_check" .}} {{end}} {{end}}
- Show non-conflictive ToS reviews + Show non-conflictive ToS reviews {{range .Service.TosReviews}} {{if ne .Warning true}} {{partial "partials/tos_check" .}} {{end}} {{end}}
{{end}}
{{else}} -

Not ToS reviews for this service (yet).

+

Not ToS reviews for this service (yet).

{{end}}
-
+
-
+
- Matrix Comments + Comments ?

-

Beware of fake reviews and accounts. Verify user profiles and conduct your own research.

+

Alghough comments are moderated, beware of fake reviews. Always do your own research.

-
+
+
- - \ No newline at end of file +