@@ -49,6 +52,17 @@ {% if user.is_authenticated %}
+ {% if impersonating %} + + {% if impersonator_avatar_url %} + + {% else %} +
{{ impersonator.username|first|upper }}
+ {% endif %} + Impersonator: {{ impersonator.username }} +
+ {% endif %}
{% if user.userprofile.avatar %} Avatar @@ -60,7 +74,12 @@ {{ user.username }} - + Account Settings @@ -70,7 +89,11 @@
{% csrf_token %}
diff --git a/nonpacks/templates/profiles/profile.html b/nonpacks/templates/profiles/profile.html index dee39e3..650268f 100644 --- a/nonpacks/templates/profiles/profile.html +++ b/nonpacks/templates/profiles/profile.html @@ -16,6 +16,14 @@

{{ profile_user.username }}

Joined {{ profile.joined|date:"F j, Y" }}

+ {% if can_impersonate %} +
+ {% csrf_token %} + +
+ {% endif %} {% if is_owner %}

Account Settings

{% endif %} @@ -78,6 +86,28 @@ {% endblock %} {% block extra_js %} +{% if can_impersonate %} + +{% endif %} {% if is_owner %}