diff options
Diffstat (limited to 'web/templates/contact.html.j2.tmpl')
-rw-r--r-- | web/templates/contact.html.j2.tmpl | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/web/templates/contact.html.j2.tmpl b/web/templates/contact.html.j2.tmpl new file mode 100644 index 0000000..d2f7bf9 --- /dev/null +++ b/web/templates/contact.html.j2.tmpl @@ -0,0 +1,107 @@ +[% WRAPPER 'html-body.tt' + title = 'Contact' + description = 'Contact the team or a team member' + uuid = '6dcfe529-89ef-44f1-903c-2614d8d56432' + norder = '-1' +%] +[%- PROCESS 'constants.tt' -%] +{%if form.get %} +<p>All the fields have to be filled in ...</p> +<p><strong>NB:</strong> As a matter of courtesy you should consider adding your name (or even a pseudonym) in the message to us. You know our names as well. Besides, it makes it easier to address you in a response. Thanks.</p> +<form action="{% form.uri %}" method="post" accept-charset="utf-8"> +<table width="100%" summary="Mailform"> +<colgroup> + <col width="30%" /> + <col width="70%" /> +</colgroup> +<tr> + <td> + <b>Who should receive the message?:</b> + </td> + <td> + <select name="{% form.recipient %}"> + <option value="developers" selected="selected">Developers</option> + [%- FOREACH key IN gpg_keys.sort('name') -%]<option value="[%- key.name | lower -%]">[%- key.name -%]</option>[%- END -%] + <option value="team">The whole team</option> + </select> + </td> + </tr> +<tr> + <td> + <b>Your email address (max. 100 chars):</b> + </td> + <td> + <input type="text" name="{% form.sender %}" maxlength="100" class="feld_" /> + </td> + </tr> +<tr> + <td> + <b>Subject (max. 100 chars):</b> + </td> + <td> + <input type="hidden" name="{% form.hidden %}" value="{% form.hidden_value %}" /> + <input type="text" name="{% form.subject %}" maxlength="100" class="feld_" /> + </td> + </tr> +<tr> + <td colspan="2"> + <b>Here goes your text:</b><br /> + <textarea name="{% form.message %}" rows="15" cols="60" class="feld3"></textarea> + </td> + </tr> +<tr> + <td colspan="2" style="text-align:center; "> + <input type="submit" value="{% form.send %}" class="btn" /> + </td> + </tr> +</table> +</form> +<h3>Report an issue or defect ("bug")?</h3> +<p> +Please use <a class="wdslnk" href="[%- tracker_url -%]">the issue tracker over on Bitbucket</a> or for +security-related reports use a PGP-encrypted email. See below for public keys available. +</p> +<h3>Email from your own client?</h3> +<p> +If you prefer to send an email, i.e. not use this contact form, you can use the lowercase form of the team +member's first name and append the at sign and then <tt>windirstat.net</tt> to it to get the email address +of that team member (i.e. <tt><name>@windirstat.net</tt>). +If you can't remember the names, use the dropdown box above to receive a clue ;) +</p> +<h3>Using PGP to encrypt communication or to verify emails we send out</h3> +<p> +You can use the following <a class="wdslnk" href="https://en.wikipedia.org/wiki/Pretty_Good_Privacy">PGP</a> +public keys to encrypt <em>to</em>. The keys will be available from commonly used key servers such as +pgp.mit.edu or subkeys.pgp.net. Please use the traditional ASCII armor in your first communication to +establish whether PGP/MIME can be used in future communication. +</p> +<ul> +[%- FOREACH key IN gpg_keys.sort('name') -%] +[%- IF key.id -%] +<li><strong>[%- key.name -%]:</strong><br /> PGP key ID: <a class="wdslnk" href="[%- key.id | format(gpg_search_fmt) -%]">[%- key.id -%]</a>,<br /> key fingerprint: <tt>[%- key.fingerprint -%]</tt></li> +[%- END -%] +[%- END -%] +</ul> +{% else %} +{% if post.success %} +<header><h1><span lang="en">Success</span> / <span lang="de">Erfolg</span></h1></header> +<section lang="en"> + <h2>Your email was sent successfully (delivery may still fail, though)</h2> +</section> +<section lang="de"> + <h2>Ihre Email wurde erfolgreich verschickt (die Zustellung kann dennoch fehlschlagen)</h2> +</section> +<article><pre>\n{% post.message %}\n</pre></article> +{% else %} +<header><h1><span lang="en">Error</span> / <span lang="de">Fehler</span> {% post.status %}</h1></header> +<section lang="en"> + <h2>An error occurred when processing your request.</h2> + <p>Status code {% post.status %}: {% post.status_description %}</p> +</section> +<section lang="de"> + <h2>Während der Verarbeitung Ihrer Anfrage kam es zu einem Fehler.</h2> + <p>Statuscode {% post.status %}: <span lang="en">{% post.status_description %}</span> (Beschreibung auf Englisch)</p> +</section> +{% endif %} +{% endif %} +[% END %] |