diff --git a/nonpacks/static/css/style.css b/nonpacks/static/css/style.css index 4ff549b..442e297 100644 --- a/nonpacks/static/css/style.css +++ b/nonpacks/static/css/style.css @@ -359,6 +359,8 @@ body { .badge-deleted { background-color: var(--color-explicit); } .badge-unknown { background-color: var(--color-unknown); } .badge-custom { background-color: var(--color-custom); } +.badge-staff { background-color: var(--md-sys-color-primary); } +.badge-admin { background-color: var(--ctp-mocha-yellow); color: var(--ctp-mocha-crust); } .badge-custom-safe { background: linear-gradient(90deg, var(--color-custom) 0%, var(--color-safe) 100%); } diff --git a/nonpacks/templates/profiles/profile.html b/nonpacks/templates/profiles/profile.html index 650268f..5883ce6 100644 --- a/nonpacks/templates/profiles/profile.html +++ b/nonpacks/templates/profiles/profile.html @@ -14,7 +14,13 @@ {% endif %}
-

{{ profile_user.username }}

+

{{ profile_user.username }} + {% if profile_user.is_superuser %} + Admin + {% elif profile_user.is_staff %} + Staff + {% endif %} +

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

{% if can_impersonate %}
diff --git a/nonpacks/templates/profiles/users.html b/nonpacks/templates/profiles/users.html index 6205af8..078531d 100644 --- a/nonpacks/templates/profiles/users.html +++ b/nonpacks/templates/profiles/users.html @@ -24,7 +24,13 @@ {% endif %}
-

{{ u.username }}

+

{{ u.username }} + {% if u.is_superuser %} + Admin + {% elif u.is_staff %} + Staff + {% endif %} +

Joined {{ u.userprofile.joined|date:"M j, Y" }}

{{ u.projects.count }} pack{{ u.projects.count|pluralize }}