Skip to content

Commit

Permalink
Add a logo to the superadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Nov 18, 2024
1 parent 3634ef3 commit 18bcea1
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
2 changes: 2 additions & 0 deletions backend/hub/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def clean_voting_domain(self):
return new_voting_domain

def save(self, commit=True):
# TODO: Check if any checks are necessary here (i.e., when NGO Hub is not used)

return super().save(commit)


Expand Down
7 changes: 6 additions & 1 deletion backend/hub/templates/hub/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@

{% if request.user.is_authenticated %}

{% org_logo user 50 class="img-circle img-responsive nav-avatar" id="user_avatar" %}
{% if not request.user.is_superuser %}
{% org_logo user 50 class="img-circle img-responsive nav-avatar" id="user_avatar" %}
{% else %}
{% static "images/logomark-avatar.png" as image_source %}
{% include "avatar/avatar_tag.html" with url=image_source size=55 %}
{% endif %}

{% if user.in_committee_or_staff_groups %}
<a href="{% url 'committee-ngos' %}" class="navbar-item">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added backend/static_extras/images/logomark-avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions backend/static_extras/images/logomark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 18bcea1

Please sign in to comment.