From 73293e54bb9105a39898d0948b19d2bc2e285b8c Mon Sep 17 00:00:00 2001
From: Andrew Williams
Date: Fri, 6 Jul 2012 20:25:01 +0100
Subject: [PATCH] Replace user -> object
---
app/sso/templates/sso/lookup/user.html | 44 +++++++++++++-------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/app/sso/templates/sso/lookup/user.html b/app/sso/templates/sso/lookup/user.html
index 2153751..562bc2a 100644
--- a/app/sso/templates/sso/lookup/user.html
+++ b/app/sso/templates/sso/lookup/user.html
@@ -8,28 +8,28 @@
{% block content %}
-
Username: {{ user.username }}
-Primary Character: {{ user.profile.all.0.primary_character }}
-Active: {{ user.is_active }}
-Email: {{ user.email }}
-Groups: {{ user.groups.all|join:", " }}
+Username: {{ object.username }}
+Primary Character: {{ object.profile.all.0.primary_character }}
+Active: {{ object.is_active }}
+Email: {{ object.email }}
+Groups: {{ object.groups.all|join:", " }}
{% if "hr"|installed %}
Blacklist Status: {% if blacklisted %}BLACKLISTED ({{ blacklisted }} items){% else %}OK{% endif %}
{% endif %}
-{% if user.ip_addresses.count %}
-IP Address Lookup ({{ user.ip_addresses.count }} associated addresses)
+{% if object.ip_addresses.count %}
+IP Address Lookup ({{ object.ip_addresses.count }} associated addresses)
{% endif %}
-Update Access
+Update Access
{% if "hr"|installed %}
{% if perms.hr.add_blacklist %}
-Blacklist User
+Blacklist User
{% endif %}
{% endif %}
{% if perms.sso.add_ssousernote %}
@@ -37,7 +37,7 @@
{% endif %}
-{% if user.notes.count %}
+{% if object.notes.count %}
User Notes
@@ -45,7 +45,7 @@
| Note | Date | Added By |
- {% for note in user.notes.all %}
+ {% for note in object.notes.all %}
| {{ note.note|linebreaks }} | {{ note.date_created|date:"Y/m/d H:i:s" }} | {{ note.created_by.profile.all.0.primary_character }} |
{% endfor %}
@@ -69,13 +69,13 @@
{% endif %}
-{% if user.application_set.all %}
+{% if object.application_set.all %}
Applications
| ID | Character | Applied To | Status |
- {% for app in user.application_set.all %}
+ {% for app in object.application_set.all %}
| {{ app.id }} |
{{ app.character }} |
{{ app.corporation }} |
@@ -85,7 +85,7 @@
{% endif %}
-{% if user.recommendation_set.all %}
+{% if object.recommendation_set.all %}
Recommendations
@@ -94,7 +94,7 @@
| Recommended Application | Recommendation Character | Recommendation Date |
- {% for rec in user.recommendation_set.all %}
+ {% for rec in object.recommendation_set.all %}
| {{ rec.application.character.name }} |
{{ rec.user_character }} |
{{ rec.recommendation_date }} |
@@ -105,7 +105,7 @@
{% endif %}
{% if perms.sso.can_view_users %}
-{% if user.eveaccount_set.all %}
+{% if object.eveaccount_set.all %}
Eve API Keys
@@ -114,7 +114,7 @@
| User ID | API Key | Description | Type | Active | Last Updated |
- {% for acc in user.eveaccount_set.all %}
+ {% for acc in object.eveaccount_set.all %}
| {{ acc.api_user_id }} |
{{ acc.api_key }} |
{{ acc.description }} |
@@ -129,13 +129,13 @@
{% endif %}
{% endif %}
-{% if user.eveaccount_set.all %}
+{% if object.eveaccount_set.all %}
| Name | Corporation | Alliance | ISK | SP | Training |
- {% for acc in user.eveaccount_set.all %}
+ {% for acc in object.eveaccount_set.all %}
{% if acc.characters.count %}
| Account {{ acc.api_user_id }} |
{% for char in acc.characters.all %}
@@ -157,13 +157,13 @@
{% ifswitch reddit %}
Reddit Accounts
- {% if user.redditaccount_set.all %}
+ {% if object.redditaccount_set.all %}
| Username | Created Date | Validated |
- {% for acc in user.redditaccount_set.all %}
+ {% for acc in object.redditaccount_set.all %}
| {{ acc.username }} |
{{ acc.date_created }} |
{% if acc.validated %}Yes{% else %}No{% endif %} |