mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-22 14:19:28 +00:00
Decoupled the "reddit" application from the main program
This commit is contained in:
@@ -70,15 +70,16 @@
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if "reddit"|installed %}
|
||||
<br/>
|
||||
<h2>Reddit Accounts</h2>
|
||||
{% if reddits %}
|
||||
{% if user.redditaccount_set.all %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Username</th><th>Created Date</th><th>Validated</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in reddits %}
|
||||
{% for acc in user.redditaccount_set.all %}
|
||||
<tr><td><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a></td>
|
||||
<td>{{ acc.date_created }}</td>
|
||||
<td>{% if acc.validated %}Yes{% else %}No{% endif %}</td>
|
||||
@@ -88,5 +89,6 @@
|
||||
</table>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load naturaltimediff %}
|
||||
{% load installed %}
|
||||
|
||||
{% block title %}Your Profile{% endblock %}
|
||||
|
||||
@@ -119,6 +120,7 @@ setup.</p>
|
||||
|
||||
<br/>
|
||||
|
||||
{% if "reddit"|installed %}
|
||||
<h2>Reddit Accounts</h2>
|
||||
<p>This is a list of all your current linked Reddit accounts</p>
|
||||
{% if user.redditaccount_set.all %}
|
||||
@@ -140,6 +142,7 @@ setup.</p>
|
||||
<p>
|
||||
<a href="{% url sso.views.reddit_add %}">Add a Reddit account</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<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
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
{% 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="{% url sso.views.reddit_add %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
{% csrf_token %}
|
||||
<br />
|
||||
<input type="submit" value="Add Account" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user