diff --git a/hr/views.py b/hr/views.py index cf5875c..d19628e 100644 --- a/hr/views.py +++ b/hr/views.py @@ -88,7 +88,7 @@ def view_application(request, applicationid): else: return HttpResponseRedirect(reverse('hr.views.index')) - if request.GET.has_key('redditxhr'): + if request.GET.has_key('redditxhr') and request.is_ajax(): posts = [] for acc in app.user.redditaccount_set.all(): try: diff --git a/templates/hr/applications/view.html b/templates/hr/applications/view.html index 40fa730..634854c 100644 --- a/templates/hr/applications/view.html +++ b/templates/hr/applications/view.html @@ -74,12 +74,12 @@ {% if hrstaff %}

EVE Characters

- + {% for acc in app.user.eveaccount_set.all %} {% for char in acc.characters.all %} @@ -102,19 +102,56 @@ {% endfor %}
CharacterCorp / AllianceISKSPLinks
CharacterCorp / AllianceISKSPLinks
{{ char.name }} {{ char.corporation }}{% if char.corporation.alliance %} / - {{ char.corporation.alliance }}{% endif %} + {{ char.corporation.alliance }}{% endif %} {{ char.balance|intcomma }} ISK {{ char.total_sp|intcomma }} SP
-

Reddit Posts

- +

Recent Reddit Posts

+ + +Load recent Reddit posts + + + + +
+
+ {% endif %} {% endif %} {% endblock %}