Flesh out and enable the Reddit gargoyle switch

This commit is contained in:
2011-08-26 13:36:34 +01:00
parent 6d8f491326
commit 2428987e53
7 changed files with 30 additions and 12 deletions

View File

@@ -2,6 +2,7 @@
{% load naturaltimediff %}
{% load installed %}
{% load gargoyle_tags %}
{% block content %}
@@ -108,6 +109,7 @@
{% endif %}
{% if "reddit"|installed %}
{% ifswitch reddit %}
<br/>
<h2>Reddit Accounts</h2>
{% if user.redditaccount_set.all %}
@@ -125,6 +127,7 @@
</tbody>
</table>
{% endif %}
{% endifswitch %}
{% endif %}
{% endblock %}

View File

@@ -2,6 +2,7 @@
{% load naturaltimediff %}
{% load installed %}
{% load gargoyle_tags %}
{% block title %}Your Profile{% endblock %}
@@ -125,6 +126,7 @@ setup.</p>
<br/>
{% if "reddit"|installed %}
{% ifswitch reddit %}
<h2>Reddit Accounts</h2>
<p>This is a list of all your current linked Reddit accounts</p>
{% if user.redditaccount_set.all %}
@@ -144,6 +146,7 @@ setup.</p>
</p>
<p>
Reddit account tagging is {% if user.get_profile.tag_reddit_accounts %}Enabled{% else %}Disabled{% endif %}. <a href="{% url sso.views.toggle_reddit_tagging %}">{% if user.get_profile.tag_reddit_accounts %}Disable{% else %}Enable{% endif %}</a>
{% endifswitch %}
{% endif %}
{% endblock %}