diff --git a/settings.py b/settings.py index ada7503..5df4ac4 100755 --- a/settings.py +++ b/settings.py @@ -68,6 +68,7 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.messages.middleware.MessageMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'pagination.middleware.PaginationMiddleware', + 'sso.middleware.IGBMiddleware', ) ROOT_URLCONF = 'urls' diff --git a/sso/middleware.py b/sso/middleware.py new file mode 100644 index 0000000..6183c9c --- /dev/null +++ b/sso/middleware.py @@ -0,0 +1,19 @@ + +class IGBMiddleware(object): + """ + Middleware to detect the EVE IGB + """ + + def process_request(self, request): + + request.is_igb = False + request.is_igb_trusted = False + + if request.META.has_key('HTTP_EVE_TRUSTED'): + request.is_igb = True + if request.META.get('HTTP_EVE_TRUSTED') == 'Yes': + request.is_igb_trusted = True + + + + diff --git a/templates/hr/applications/view.html b/templates/hr/applications/view.html index a4ce5b0..ca74ed0 100644 --- a/templates/hr/applications/view.html +++ b/templates/hr/applications/view.html @@ -11,7 +11,7 @@
{% if app.status < 1 %} -Submit Application, +Submit Application {% else %} -Withdraw Application, +Withdraw Application {% endif %} -Add Message, +Add Message {% if hrstaff %} -Add Staff Note, +Add Staff Note {% if app.status < 2 or app.status = 4 %} -Reject Application, +Reject Application {% ifequal app.blacklisted 0 %} -Accept Application, +Accept Application {% endifequal %} {% ifnotequal app.status 4 %} -Mark as In Query, +Mark as In Query {% endifnotequal %} {% endif %} {% ifequal app.status 3 %} -Mark as Complete, +Mark as Complete {% endifequal %} {% endif %} {% endifnotequal %}
+