Brought over basic templates from mumble-django

This commit is contained in:
2010-02-25 18:28:32 +00:00
parent 7f86df2e6b
commit 982223f4aa
9 changed files with 181 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{% load i18n %}
{% block Content %}
{% if account %}
<p>{% with account.username as username %}
Thank you for registering!<br />
From now on, you can login with your username ({{ username }}).<br/>
<br/>
<a href="{% url dreddit.views.index %}">Back</a>
{% endwith %}
</p>
{% else %}
<p>Either the link was invalid, or you didn't activate your account within {{ expiration_days }} days after the registration. Please register again.</p>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% load i18n %}
Hello,
someone registered to {{ site }} and specified this EMail address. If this is correct, please follow this link to activate the account:
http://{{ site|slice:":-1" }}{% url registration_activate activation_key=activation_key %}
In case you didn't register, please ignore this Mail. The account will be deleted in {{ expiration_days }} days and you will not receive any more mail from us.
Regards,
Matalok
Mumble Admin

View File

@@ -0,0 +1 @@
Account verification

View File

@@ -0,0 +1,17 @@
{% load mumble_extras %}
{% load i18n %}
{% block Headline %}{% trans "Imprint" %}{% endblock %}
{% block Content %}
<div class="rahmen">
<p>
This is <a href="http://bitbucket.org/Svedrin/mumble-django/">Mumble-Django</a>, a Murmur config application for <a href="http://www.djangoproject.com/" target="_blank">Django</a> that configures a Mumble server. It is able to create and remove server instances, start/stop them, and configure them.<br />
<br />
Furthermore, registered Django users can sign up for user accounts on the configured vservers and change their registration names and passwords, and Django admins can manage server admins through the webinterface.<br />
<br />
It is being developed by Michael "Svedrin" Ziegler.
</p>
<p>All JavaScript elements were implemented using <a href="http://www.extjs.com/" target="_blank">the ExtJS JavaScript library.</a></p>
</div>
{% endblock %}

View File

@@ -0,0 +1,32 @@
{% load i18n %}
{% block HeadTag %}
<script type="text/javascript">
Ext.onReady( function(){
Ext.fly("id_username").focus();
} );
</script>
{% endblock %}
{% block Content %}
<h2>Login</h2>
{% if form.errors %}
<p>Username or password don't exist or are not correct. Please try again.</p>
{% endif %}
<form method="post" action=".">
<table>
<tr><td>{{ form.username.label_tag }}</td><td>{{ form.username }}</td></tr>
<tr><td>{{ form.password.label_tag }}</td><td>{{ form.password }}</td></tr>
</table>
<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
<ul>
<li>No Login? You can <a href="{% url registration.views.register %}">sign up!</a></li>
<li>Forgot the password? You can <a href="{% url django.contrib.auth.views.password_reset %}">reset it!</a></li>
</ul>
{% endblock %}

View File

@@ -0,0 +1,9 @@
{% load i18n %}
{% block Headline %}Logged out{% endblock %}
{% block Content %}
<h3>You have been logged out.</h3>
<p>Thank you for visiting.
</p>
{% endblock %}

View File

@@ -0,0 +1,69 @@
{% load i18n %}
{% block Content %}
<h2 class="profile">{% blocktrans with user|capfirst as username %}Profile of {{username}}{% endblocktrans %}</h2>
<table border=1>
<tr><td>Service</td><td>Server</td><td>Status</td><td>Login</td><td>Other</td></tr>
{% if mumbleacc %}
<tr><td>Mumble</td><td>mumble.dredd.it</td><td>Active</td><td>{{ mumbleacc.name }}</td><td><a href="{% url dreddit.views.delete_mumble %}">Delete</a></td></tr>
{% else %}
<tr><td>Mumble</td><td>mumble.dredd.it</td><td>Inactive</td><td>N/A</td>
{% if eveapi %}
<td> <a href="{% url dreddit.views.add_mumble %}">Create Mumble Login</a></td>
{% else %}
<td</td>
{% endif %}
</tr>
{% endif %}
{% if corpaccess %}
<tr><td>Jabber</td><td>jabber.dredd.it</td><td>Active</td><td>{{ user.username }}@dredd.it</td><td></td></tr>
{% else %}
<tr><td>Jabber</td><td>jabber.dredd.it</td><td>Inactive</td><td></td><td></td></tr>
{% endif %}
{% if corpaccess %}
<tr><td>Wiki</td><td>wiki.dredd.it</td><td>Active</td><td>{{ user.username }}</td><td></td></tr>
{% else %}
<tr><td>Wiki</td><td>wiki.dredd.it</td><td>Inactive</td><td></td><td></td></tr>
{% endif %}
{% if corpaccess %}
<tr><td>Forums</td><td>forum.dredd.it</td><td>Unkown</td><td>{{ user.username }}</td><td></td></tr>
{% else %}
<tr><td>Forums</td><td>forum.dredd.it</td><td>Unknown</td><td></td><td></td></tr>
{% endif %}
</table>
<div class="profile">
<h4>EVE API Key</h4>
{% if eveapi %}
<ul>
<li>User ID: {{ eveapi.api_user_id }}</li>
<li>Status: {{ apistatus }}</li>
<li>Corp Access: {{ corpaccess }}</li>
<li>Last API Update: {{ eveapi.api_last_updated }}</li>
</ul>
<a href="{% url dreddit.views.delete_eveapi %}">Delete EVE API Key</a>
{% else %}
<a href="{% url dreddit.views.add_eveapi %}">Add EVE API key</a>
{% endif %}
</div>
<div class="profile">
<h4>{% trans "Login Account" %}</h4>
<ul>
<li>{% trans "e-mail address" %}: {{ user.email }}</li>
<li>{% trans "staff status" %}: {{ user.is_staff|yesno }}</li>
<li>{% trans "date joined" %}: {{ user.date_joined|date }} {{ user.date_joined|time }}</li>
<li>{% trans "last login" %}: {{ user.last_login|date }} {{ user.last_login|time }}</li>
<li><a href="{% url django.contrib.auth.views.password_change %}">{% trans "Change password" %}</a></li>
<li><a href="{% url django.contrib.auth.views.logout %}">{% trans "Log out" %}</a></li>
</ul>
</div>
{% endblock %}

View File

@@ -0,0 +1,8 @@
{% load i18n %}
{% block Content %}
<p>Thank you for registering.
In order to prohibit misuse, you need to activate your account before you can use it. We sent an EMail with further instructions to the address you specified, please follow the link in that email to activate your account.
</p>
{% endblock %}

View File

@@ -0,0 +1,15 @@
{% load i18n %}
{% block Headline %}Create Account{% endblock %}
{% block Content %}
<h2>Create Account</h2>
<p>Please fill in the following form.</p>
<form method="post" action=".">
<table>
{{ form }}
</table>
<input type="submit" value="{% trans "Create Account" %}" />
</form>
{% endblock %}