mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 06:39:25 +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 %}
|
||||
|
||||
Reference in New Issue
Block a user