Commit 36961d6fca420f5fbda213a22ac5c8793675fc2d
1 parent
26733e9f
Exists in
master
and in
2 other branches
Slightly improve the bug report email template.
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
web/run.py
@@ -982,10 +982,12 @@ def home(): | @@ -982,10 +982,12 @@ def home(): | ||
982 | 982 | ||
983 | @app.route("/about.html") | 983 | @app.route("/about.html") |
984 | def about(): | 984 | def about(): |
985 | + import uuid | ||
985 | increment_hit_counter() | 986 | increment_hit_counter() |
986 | return render_view('about.html.jinja2', { | 987 | return render_view('about.html.jinja2', { |
987 | - 'authors_emails': [a['mail'] for a in config['authors']], | ||
988 | - 'visits': get_hit_counter(), | 988 | + 'authors_emails': [a['mail'] for a in config['authors']], |
989 | + 'uuid4': str(uuid.uuid4())[0:3], | ||
990 | + 'visits': get_hit_counter(), | ||
989 | }) | 991 | }) |
990 | 992 | ||
991 | 993 |
web/view/about.html.jinja2
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | Please send bug reports | 23 | Please send bug reports |
24 | {# There are no safe ways to embed multiple recipients in a mailto #} | 24 | {# There are no safe ways to embed multiple recipients in a mailto #} |
25 | {# https://web.archive.org/web/20151116223616/http://www.sightspecific.com/~mosh/WWW_FAQ/multrec.html #} | 25 | {# https://web.archive.org/web/20151116223616/http://www.sightspecific.com/~mosh/WWW_FAQ/multrec.html #} |
26 | - <a href="mailto:{{ authors_emails | shuffle | join(',') }}">via email</a> or, | 26 | + <a href="mailto:{{ authors_emails | shuffle | join(',') }}?subject=Heliopropa%20Bug%20Report%20%23{{ uuid4 }}">via email</a> or, |
27 | <em>(if you can)</em>, | 27 | <em>(if you can)</em>, |
28 | use <a href="https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE/issues">our issue tracker</a>. | 28 | use <a href="https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE/issues">our issue tracker</a>. |
29 | </p> | 29 | </p> |