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 @@ - {% for note in user.notes.all %} + {% for note in object.notes.all %} {% endfor %} @@ -69,13 +69,13 @@ {% endif %} -{% if user.application_set.all %} +{% if object.application_set.all %}

    Applications

    NoteDateAdded By
    {{ note.note|linebreaks }}{{ note.date_created|date:"Y/m/d H:i:s" }}{{ note.created_by.profile.all.0.primary_character }}
    - {% for app in user.application_set.all %} + {% for app in object.application_set.all %} @@ -85,7 +85,7 @@ {% endif %} -{% if user.recommendation_set.all %} +{% if object.recommendation_set.all %}

    Recommendations

    @@ -94,7 +94,7 @@
    - {% for rec in user.recommendation_set.all %} + {% for rec in object.recommendation_set.all %} @@ -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 @@
    - {% for acc in user.eveaccount_set.all %} + {% for acc in object.eveaccount_set.all %} @@ -129,13 +129,13 @@ {% endif %} {% endif %} -{% if user.eveaccount_set.all %} +{% if object.eveaccount_set.all %}
    IDCharacterApplied ToStatus
    {{ app.id }} {{ app.character }} {{ app.corporation }}
    Recommended ApplicationRecommendation CharacterRecommendation Date
    {{ rec.application.character.name }} {{ rec.user_character }} {{ rec.recommendation_date }}
    User IDAPI KeyDescriptionTypeActiveLast Updated
    {{ acc.api_user_id }} {{ acc.api_key }} {{ acc.description }}
    - {% for acc in user.eveaccount_set.all %} + {% for acc in object.eveaccount_set.all %} {% if acc.characters.count %} {% for char in acc.characters.all %} @@ -157,13 +157,13 @@ {% ifswitch reddit %}

    Reddit Accounts

    - {% if user.redditaccount_set.all %} + {% if object.redditaccount_set.all %}
    NameCorporationAllianceISKSPTraining
    Account {{ acc.api_user_id }}
    - {% for acc in user.redditaccount_set.all %} + {% for acc in object.redditaccount_set.all %}
    UsernameCreated DateValidated
    {{ acc.username }} {{ acc.date_created }} {% if acc.validated %}Yes{% else %}No{% endif %}