Skip to content

Commit

Permalink
Add report email
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Jul 24, 2023
1 parent 8fcf995 commit cb0230d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions georiviere/contribution/templates/contribution/report_email.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% load i18n l10n %}
{% autoescape off %}
{% blocktrans with email=contribution.email_author %}{{email}} has sent a contribution.{% endblocktrans %}

{% if contribution.severity %}{% blocktrans with severity=report.severity %}Severity : {{severity}}{% endblocktrans %}{% endif %}
{% trans "Category" %} : {{contribution.category}}
{% trans "Description" %} : {{contribution.description}}

{% trans "Portal" %} : {{contribution.portal}}

{% if report.geom %}{% blocktrans with lat=report.geom_wgs84.y|stringformat:".6f" lng=report.geom_wgs84.x|stringformat:".6f" %}
Lat : {{lat}} / Lon : {{lng}}
http://www.openstreetmap.org/?mlat={{lat}}&mlon={{lng}}
{% endblocktrans %}{% endif %}

{% endautoescape %}

0 comments on commit cb0230d

Please sign in to comment.