Skip to content

Commit

Permalink
Fix: feedback email not filling the sender information (name, email, …
Browse files Browse the repository at this point in the history
…...) (#634)

* fix feedback email sender missing infos

* add internationalization to feedback email
  • Loading branch information
Bilelkihal authored May 29, 2024
1 parent 4a7fb7a commit af3839f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
10 changes: 5 additions & 5 deletions app/views/notifier/feedback.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
%meta{content: "no-cache", name: "turbo-cache-control"}/
%body
%p
= t("ontologies.notifier.name", name: @name)
= t("feedback_mail.name", name: @name)
%p
= t("ontologies.notifier.email", email: @email)
= t("feedback_mail.email", email: @email)
%p
= t("ontologies.notifier.location", location: @location)
%p= t("ontologies.notifier.tags")
= t("feedback_mail.location", location: @location)
%p= t("feedback_mail.tags")
%ul
- for tag in @tags
%li
= tag
%p
%br/
%strong= t("ontologies.notifier.feedback")
%strong= t("feedback_mail.feedback")
= simple_format(@comment)
8 changes: 7 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1464,4 +1464,10 @@ en:
description: >
This tool/service verifies the resolvability of Uniform Resource Identifiers (URIs) and their content negotiability.
It checks whether a given URI is accessible and whether the content associated with it can be negotiated based on the client's preferences.
This functionality ensures the reliability and accessibility of linked resources within the RDF ecosystem, aiding in maintaining data integrity and facilitating seamless integration with external resources.
This functionality ensures the reliability and accessibility of linked resources within the RDF ecosystem, aiding in maintaining data integrity and facilitating seamless integration with external resources.
feedback_mail:
name: "Name: %{name}"
email: "Email: %{email}"
location: "Location: %{location}"
tags: Tags
feedback: Feedback
7 changes: 6 additions & 1 deletion config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1503,4 +1503,9 @@ fr:
Il vérifie si un URI donné est accessible et si le contenu associé peut être négocié en fonction des préférences du client.
Cette fonctionnalité garantit la fiabilité et l'accessibilité des ressources liées dans l'écosystème RDF, aidant ainsi à maintenir l'intégrité des données et facilitant l'intégration transparente avec des ressources externes.
feedback_mail:
name: "Nom: %{name}"
email: "E-mail: %{email}"
location: "Emplacement: %{location}"
tags: Tags
feedback: Feedback

0 comments on commit af3839f

Please sign in to comment.