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 %}
| Character | Corp / Alliance | ISK | SP | Links |
|---|---|---|---|---|
| Character | Corp / Alliance | ISK | SP | Links |
| {{ 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 | @@ -102,19 +102,56 @@ {% endfor %}
{{ reddit_error }}
-{% endif %} -{% for post in posts %} -{% ifnotequal post.kind 1 %} -{{ post.title }} - (/r/{{ post.subreddit }})
-{% else %} -{{ post.body }} - (/r/{{post.subreddit}}) Permalink
-{% endifnotequal %} -{% endfor %} -