Anfänglicher Commit: Producion Version Stand: Oktober 2014
This commit is contained in:
16
templates/membership/activation_error.html
Normal file
16
templates/membership/activation_error.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}Account aktivierung fehlgeschlagen{% endblock %}
|
||||
|
||||
{% block maincontent %}
|
||||
<h2 class="grid_12">Aktivierung fehlgeschlagen</h2>
|
||||
<p class="grid_12">Leider war die Aktivierung des Schlüssels “{{ activation_key }}” war nicht erfolgreich, dies könnte mehrere Gründe haben:</p>
|
||||
<img class="grid_4" src="" alt="" />
|
||||
<ul class="grid_8">
|
||||
<li><strong>Der Aktivierungs Link ist nicht korrekt.</strong> Bitte kopiere die ganze Zeile aus der E-Mail in die Adressleiste.</li>
|
||||
<li><strong>Der Aktivierungs Schlüssel ist abgelaufen.</strong> Dieser ist nur {{ expiration_days }} Tage gültig.In diesem Fall fülle das <a href="{% url 'membership-register' %}">Registrierungs Formular</a> bitte erneut aus.</p></li>
|
||||
<li><strong>Der Account wurde schon aktiviert.</strong> Dies passiert sehr schnell, veruche zuerst dich mit deinen Daten <a href="{% url 'login' %}">anzumelden</a>. Sollte das nicht funktionieren, kannst du dir ja mal <a href="{% url 'password_reset' %}">neue Zugangsdaten zuschicken</a> lassen.</li>
|
||||
<li><strong>Ein obskurer Fehler ist aufgetreten.</strong> In diesem Fall, nimm bitte Kontakt mit dem Webadmin auf.</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
24
templates/membership/activation_sent.html
Normal file
24
templates/membership/activation_sent.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Bestätigungs E-Mail wurde abgeschickt{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="left_column">
|
||||
<h2>Bestätigungs E-Mail wurde abgeschickt</h2>
|
||||
<p>Danke für die Anmeldung! Um sicher zu gehen das die angegebene E-Mail Adresse korrekt ist,
|
||||
wurde eine <em>Aktivierungs E-Mail</em> an deinen Adresse geschickt.Diese enthält einen Link, der deinen Benutzer Account frei schaltet.</p>
|
||||
<p>Solltest du <em>keine</em> Bestätigung bekommen haben, oder deine Mail Adresse <em>falsch</em> sein.
|
||||
Setze dich bitte mit den Webadministrator in Kontakt. Dieser kann bei deinem Anliegen helfen.</p>
|
||||
<p class="more"><a href="mailto:webmaster@animanga.at">E-Mail an den Webmaster</a></p>
|
||||
</div>
|
||||
<div class="right_column">
|
||||
<h2>E-Mail nicht angekommen?</h2>
|
||||
<ul>
|
||||
<li><p>Einige Anti-Spam Techniken verzögern den Empfang von E-Mails.
|
||||
Bei solchen Postfächern kann der <strong>Empfang</strong> einzelner Mails <strong>bis zu 30 Minuten</strong> dauern.</p></li>
|
||||
<li><p>Bitte überprüfe den <em>"Junk"</em> bzw. <em>"SPAM"</em> Ordner deines Postfaches.
|
||||
Automatisch generierte E-Mails werden leider sehr oft falsch von SPAM-Filtern geschluckt</p></li>
|
||||
<li><p>Bitte Überprüfe die Richigkeit deiner angegebenen <strong>E-Mail Adresse</strong>.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock %}
|
||||
11
templates/membership/activation_successful.html
Normal file
11
templates/membership/activation_successful.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Aktivierung erfolgreich{% endblock %}
|
||||
|
||||
{% block maincontent %}
|
||||
<h2 class="grid_12">Aktivierung erfolgreich</h2>
|
||||
|
||||
<p class="grid_7">Du kannst dich absofort jeder Zeit
|
||||
<a href="/accounts/login/">anmelden</a> und deinen Acount zu Nutzen.<br/>
|
||||
Viel Spaß auf der Seite!</p>
|
||||
{% endblock %}
|
||||
24
templates/membership/email/activation_email.html
Normal file
24
templates/membership/email/activation_email.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "email.html" %}
|
||||
|
||||
{% block body %}
|
||||
<h2>Herzlich Willkommen {{user}}!</h2>
|
||||
|
||||
<p>Jemand (hoffentlich du selbst) möchte mit dieser E-Mail Adresse einen neuen
|
||||
Benutzer Account für {{site}} anlegen.</p>
|
||||
|
||||
<p>Solltest du diesen Account aktivieren wollen, klicke bitte auf den unten
|
||||
stehenden Link, oder kopiere diesen in die Adresszeile deines Browsers:</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="http://{{site.domain}}/accounts/activate/{{ activation_key }}">http://{{site.domain}}/accounts/activate/{{ activation_key }}</a></li>
|
||||
</ul>
|
||||
<p>Solltest du nichts beantragt haben, ignoriere diese E-Mail einfach.
|
||||
Du wirst keine weiteren Mails mehr von uns bekommen.</p>
|
||||
|
||||
<p><strong>Wichtig:</strong> Der Account muss innerhalb von <em>{{expiration_days}}</em> Tagen aktiviert werden,
|
||||
ansonsten verfällt er automatisch.</p>
|
||||
|
||||
<p>mit freundlichen Grüßen</p>
|
||||
|
||||
<p>Das AniManga Team.</p>
|
||||
{% endblock %}
|
||||
13
templates/membership/email/activation_email.txt
Normal file
13
templates/membership/email/activation_email.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
{% load i18n %}
|
||||
Dear {{user}},
|
||||
|
||||
We received an account request on {{site.domain}} for your email address.
|
||||
To activate your account please visit the following link:
|
||||
|
||||
http://{{site.domain}}/membership/activate/{{ activation_key }}/
|
||||
|
||||
If you do not want to open an account on {{site.domain}}, please ignore this email.
|
||||
Your information will then be deleted in a few days time.
|
||||
|
||||
Best Regards,
|
||||
The {{site.domain}} team.
|
||||
15
templates/membership/email/password_reset_email.html
Normal file
15
templates/membership/email/password_reset_email.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% load i18n %}{% autoescape off %}
|
||||
{% trans "You're receiving this e-mail because you requested a password reset" %}
|
||||
{% blocktrans %}for your user account at {{ site_name }}{% endblocktrans %}.
|
||||
|
||||
{% trans "Please go to the following page and choose a new password:" %}
|
||||
{% block reset_link %}
|
||||
{{ protocol }}://{{ domain }}{% url 'django'.contrib.auth.views.password_reset_confirm uidb36=uid, token=token %}
|
||||
{% endblock %}
|
||||
{% trans "Your username, in case you've forgotten:" %} {{ user.username }}
|
||||
|
||||
{% trans "Thanks for using our site!" %}
|
||||
|
||||
{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
|
||||
|
||||
{% endautoescape %}
|
||||
3
templates/membership/email/password_reset_subject.txt
Normal file
3
templates/membership/email/password_reset_subject.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
{% load i18n %}{% autoescape off %}
|
||||
{% blocktrans %}Password reset on {{ site_name }}{% endblocktrans %}
|
||||
{% endautoescape %}
|
||||
32
templates/membership/hanchan_table.html
Normal file
32
templates/membership/hanchan_table.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{% load i18n %}
|
||||
|
||||
<table>
|
||||
<thead><tr>
|
||||
<th>{% trans 'Start' %}<//th>
|
||||
<th>{% trans 'Event' %}</th>
|
||||
<th colspan="4">{% trans 'Players' %}</th>
|
||||
<th>{% trans 'Kyu Points' %}</th>
|
||||
<th>{% trans 'Dan Points' %}</th>
|
||||
<th>{% trans 'Bonus Points' %}</th>
|
||||
<th>{% trans 'Comment' %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{% for result in hanchan_list %}
|
||||
<tr>
|
||||
<td>{{ result.hanchan.start }}</td>
|
||||
<td><a href="{{ result.hanchan.event.get_absolute_url }}">{{ result.hanchan.event.name }}</a></td>
|
||||
{% if result.hanchan.valid %}
|
||||
{% for player in result.hanchan.player_set.all %}
|
||||
<td class="center"><a href="{% url 'membership-details' player.user.username %}">{{player.user}}</a><br/> {{player.score }}</td>
|
||||
{% endfor %}
|
||||
<td class="center">{{result.kyu_points}}</td>
|
||||
<td class="center">{{result.dan_points}}</td>
|
||||
{% else %}
|
||||
<td colspan="6" class="center">{% trans 'This Hanchan does not validate' %}</td>
|
||||
{% endif %}
|
||||
<td class="center">{{result.bonus_points}}</td>
|
||||
<td>{{ result.hanchan.comment }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
78
templates/membership/membership_detail.html
Normal file
78
templates/membership/membership_detail.html
Normal file
@@ -0,0 +1,78 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n comments %}
|
||||
|
||||
{% block title %}{{ membership.first_name }} {{membership.last_name}}{% endblock %}
|
||||
|
||||
{% block maincontent %}
|
||||
<h2 class="grid_12">{% trans 'profile for' %} {{membership.user.username|title}}</h2>
|
||||
{% if membership.profile %}
|
||||
<img class="grid_3" src="{{membership.profile.url}}" alt="{% trans 'Profile Image' %}" />
|
||||
{% else %}
|
||||
<div class="grid_3"> Noch kein Foto hoch geladen</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="grid_6">
|
||||
<ul>
|
||||
<li><strong>Name:</strong> {{membership.first_name}} {{membership.last_name}}</li>
|
||||
<li><strong>{% trans "Member Since" %}:</strong> {{membership.user.date_joined}}</li>
|
||||
<li><strong>{% trans "Last Login" %}:</strong> {{membership.user.last_login}}</li>
|
||||
{% if website %}<li><strong>Homepage:</strong> <a href="{{website}}">{{website}}</a></li>{% endif %}
|
||||
</ul>
|
||||
{% if kyu_dan_ranking %}
|
||||
<h3>Mahjong</h3>
|
||||
<ul>
|
||||
{% if kyu_dan_ranking.dan %}
|
||||
<li><strong>{{kyu_dan_ranking.dan}}. Dan: </strong> {{ kyu_dan_ranking.dan_points }} {% trans 'Points' %}</li>
|
||||
{% elif kyu_dan_ranking.kyu%}
|
||||
<li><strong>{{kyu_dan_ranking.kyu}}. Kyu: </strong> {{ kyu_dan_ranking.kyu_points }} {% trans 'Points' %}</li>
|
||||
{% endif %}
|
||||
<li><strong>{% trans 'Games Total' %}: </strong> {{ kyu_dan_ranking.hanchan_count }} Hanchans - {{kyu_dan_ranking.won_hanchans }} {% trans 'Won' %} / {{ kyu_dan_ranking.good_hanchans }} {% trans 'Good' %}</li>
|
||||
<li><strong>{% trans 'Current Season' %}: </strong> {{ ladder_ranking.hanchan_count }} Hanchans - {{ ladder_ranking.won_hanchans }} {% trans 'Won' %} / {{ ladder_ranking.good_hanchans }} {% trans 'Good' %} </li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% ifequal membership.user user %}
|
||||
<div class="grid_3">
|
||||
<a href="{% url 'membership-edit' membership.user.username %}" class="button">
|
||||
<img src="{{STATIC_URL}}icons/user_edit.png" alt="{% trans 'Edit Userprofile' %}" width="16" height="16"/>
|
||||
{% trans "Edit Profile" %}
|
||||
</a>
|
||||
<a href="{% url 'password_change' %}" class="button">
|
||||
<img src="{{STATIC_URL}}icons/lock_edit.png" alt="{% trans 'Change Password' %}" width="16" height="16"/>
|
||||
{% trans 'Change Password' %}
|
||||
</a>
|
||||
<a class="button" href="{% url 'social:begin' 'facebook' %}" rel="nofollow">
|
||||
<img src="{{STATIC_URL}}img/facebook.png" alt="{% trans 'Associate' %}" width="26" height="26"/>
|
||||
{% blocktrans with 'Facebook' as name %}Associate with {{ name }}{% endblocktrans %}
|
||||
</a>
|
||||
<a class="button" href="{% url 'social:begin' 'twitter' %}" rel="nofollow">
|
||||
<img src="{{STATIC_URL}}img/twitter.png" alt="{% trans 'Associate' %}" width="26" height="26"/>
|
||||
{% blocktrans with 'Twitter' as name %}Associate with {{ name }}{% endblocktrans %}
|
||||
</a>
|
||||
<a class="button" href="{% url 'social:begin' 'google-oauth2' %}" rel="nofollow">
|
||||
<img src="{{STATIC_URL}}img/google.png" alt="{% trans 'Associate' %}" width="26" height="26"/>
|
||||
{% blocktrans with 'Google' as name %}Associate with {{ name }}{% endblocktrans %}
|
||||
</a>
|
||||
|
||||
</div>
|
||||
{% endifequal %}
|
||||
|
||||
{% block score_list %}
|
||||
{% if kyu_dan_ranking %}
|
||||
<ul class="tabs grid_12">
|
||||
<li><a href="{% url 'player-ladder-score' membership.user.username %}">{% trans "Ladder Hanchans" %}</a></li>
|
||||
<li><a href="{% url 'player-kyu-score' membership.user.username %}">{% trans "Kyu Hanchans" %}</a></li>
|
||||
<li><a href="{% url 'player-dan-score' membership.user.username %}">{% trans "Dan Hanchans" %}</a></li>
|
||||
<li><a href="{% url 'player-ladder-score' membership.user.username %}">{% trans "Invalid Hanchans" %}</a></li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% if membership %}
|
||||
{% render_comment_list for membership %}
|
||||
{% render_comment_form for membership %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block buttonbar%}{%endblock%}
|
||||
41
templates/membership/membership_form.html
Normal file
41
templates/membership/membership_form.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% block title %}{% trans "Edit Userprofile" %}{% endblock %}
|
||||
{% block extra_head %}
|
||||
<link rel="stylesheet" href="{{STATIC_URL}}css/jquery-ui-1.8.16.custom.css" type="text/css">
|
||||
<script type="text/javascript" src="{{STATIC_URL}}js/jquery-ui-1.8.16.custom.min.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block maincontent %}
|
||||
<form method="post" action="" enctype="multipart/form-data" class="grid_12 clearfix">
|
||||
<fieldset>
|
||||
<legend>{% trans "Edit Userprofile" %}</legend>
|
||||
{% csrf_token %}
|
||||
{% include 'form.html' %}
|
||||
<p class="buttonbar">
|
||||
<button type="reset">
|
||||
<img src="{{STATIC_URL}}icons/arrow_undo.png" alt="{% trans 'reset' %}" />
|
||||
{% trans "Reset" %}
|
||||
</button>
|
||||
<button type="submit">
|
||||
<img src="{{STATIC_URL}}icons/disk.png" alt="{% trans 'save' %}" />
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
$(function() {
|
||||
$( "#id_birthday" ).datepicker({
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
dateFormat: 'yy-mm-dd',
|
||||
yearRange: '-50,0',
|
||||
firstDay: 1
|
||||
});
|
||||
});
|
||||
{% endblock %}
|
||||
|
||||
{% block buttonbar %}{% endblock %}
|
||||
31
templates/membership/register_form.html
Normal file
31
templates/membership/register_form.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% load url from future %}
|
||||
|
||||
{% block title %}{% trans "Registration"%}{% endblock %}
|
||||
|
||||
{% block maincontent %}
|
||||
<div class="grid_5">
|
||||
<h2>{% trans "Registration" %}</h2>
|
||||
<p>{% blocktrans %}
|
||||
After you've provided your account data, you'll receive an email asking you to verify your email address.
|
||||
You have to click on the link in this verification email to confirm your email address, otherwise your can't login.
|
||||
{% endblocktrans %}</p>
|
||||
</div>
|
||||
|
||||
<form method="post" action="{% url 'membership-register' %}" class="grid_7">
|
||||
{% csrf_token %}
|
||||
<fieldset>
|
||||
<legend>{% trans "Registration"%}</legend>
|
||||
{% include "form.html" %}
|
||||
<p class="buttonbar">
|
||||
<button type="reset"><img src="{{STATIC_URL}}icons/arrow_undo.png" alt="{% trans 'reset' %}" /> {% trans 'reset' %}</button>
|
||||
<button type="submit"><img src="{{STATIC_URL}}icons/user_add.png" alt="{% trans 'register' %}" /> {% trans 'register' %}</button>
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
14
templates/membership/register_successful.html
Normal file
14
templates/membership/register_successful.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% load url from future %}
|
||||
|
||||
{% block title %}{% trans "Activation sent"%}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{% trans "Activation sent"%}</h2>
|
||||
|
||||
<p>Bitte fülle das Anmeldeformular vollständig aus.
|
||||
Es ist dabei wichtig eine gültige E-Mail Adresse anzugeben, welche du öfters abrufst.</p>
|
||||
<p>Während der Registrierung schicken wir dir eine E-Mail, diese enthält einen Link zur Aktivierung.
|
||||
Ohne diesen Schritt ist es nicht Möglich sich mit dem Account anzumelden.</p>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user