Add image uploading feature for organization (#122)

This commit is contained in:
Phuoc Anh Kha Le 2024-07-17 21:05:42 -05:00 committed by GitHub
parent c00db58cb1
commit 9dd779f4fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 130 additions and 14 deletions

View file

@ -1,7 +1,9 @@
{% if request.in_contest_mode and request.participation.contest.logo_override_image %}
<img src="{{ request.participation.contest.logo_override_image|camo }}" alt="{{ SITE_NAME }}" height="44" style="border: none">
{% elif request.organization %}
<img src="{{ request.organization.logo_override_image|camo }}" alt="{{ SITE_NAME }}" height="44" style="border: none">
<img src="{{ request.organization.organization_image.url|camo }}" alt="{{ SITE_NAME }}" height="44" style="border: none">
{% elif organization_image is defined and organization_image %}
<img src="{{ organization_image.url|camo }}" alt="{{ SITE_NAME }}" height="44" style="border: none">
{% elif logo_override_image is defined and logo_override_image %}
<img src="{{ logo_override_image|camo }}" alt="{{ SITE_NAME }}" height="44" style="border: none">
{% else %}