Added RedditAccount as a editable section to users, also added Admin side

This commit is contained in:
2010-03-02 22:57:10 +00:00
parent 35767483b0
commit e7ab428044
6 changed files with 105 additions and 2 deletions

View File

@@ -71,6 +71,29 @@ setup.</p>
<p>
<a href="/profile/add/eveapi">Add a Eve API key</a>
</p>
<h2>Reddit Accounts</h2>
<p>This is a list of all your current linked Reddit accounts</p>
{% if redditaccounts %}
<table>
<thead>
<tr><th>Username</th><th>Created Date</th></tr>
</thead>
<tbody>
{% for acc in redditaccounts %}
<tr><td>{{ acc.username }}</td>
<td>{{ acc.date_created }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot><tr><td colspan="5">&nbsp;</td></tr></tfoot>
</table>
{% endif %}
<p>
<a href="/profile/add/reddit">Add a Reddit account</a>
</p>
<p>If you encounter any errors during using this service, copy the massive
error message into <a href="http://pastebin.com/">Pastebin</a> and give
Matalok a good kicking on IRC/Jabber/Email or on the Forums.</p>

View File

@@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block title %}Add Reddit Account{% endblock %}
{% block content %}
<p>This will bind a Reddit account to your Auth Gateway login, this is usually required for application to the
corporation</p>
<p>Please note, you will be forever tied to this account and posts and comments made on this account will be checked
on from time to time</p>
<form action="/profile/add/reddit" method="post">
{{ form.as_p }}
<input type="submit" value="Submit" />
</form>
{% endblock %}