Skip to content

Commit

Permalink
Merge pull request #1188 from rapidpro/drc-logo
Browse files Browse the repository at this point in the history
Quick workaround custom DRC logo
  • Loading branch information
norkans7 authored Feb 28, 2024
2 parents f2eb7d2 + 70c25e2 commit b9c4aa8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 8 additions & 4 deletions templates/base_admin_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@
<div style="justify-content: start;" class="level-item square-logo">
<div style="width:360px">
{% if org|config:"has_new_brand" %}
{% if org.language != "ar" and org.language != "ru" %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_EN.png" alt="{{ org.name }}" class="logo">
{% else %}
{% if org.subdomain == "drc" %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_DRC.jpg" alt="{{ org.name }}" class="logo">
{% elif org.language != "ar" and org.language != "ru" %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_EN.png" alt="{{ org.name }}" class="logo">
{% else %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_{{ org.language|upper }}.png" alt="{{ org.name }}" class="logo">
{% endif %}
{% else %}
Expand Down Expand Up @@ -344,7 +346,9 @@
<a href="{% url 'public.index' %}" class="md:hidden flex-1 text-center mb-6 inline-flex">
<div style="width:180px">
{% if org|config:"has_new_brand" %}
{% if org.language != "ar" and org.language != "ru" %}
{% if org.subdomain == "drc" %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_DRC.jpg" alt="{{ org.name }}" class="logo">
{% elif org.language != "ar" and org.language != "ru" %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_EN.png" alt="{{ org.name }}" class="logo">
{% else %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_{{ org.language|upper }}.png" alt="{{ org.name }}" class="logo">
Expand Down
8 changes: 6 additions & 2 deletions templates/public_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,9 @@
<div class="md:flex max-w-page mx-auto justify-around mt-5 mb-12 hidden border-b pb-6">
<a href="{% url 'public.index' %}" class="flex-initial text-center">
<div style="width:500px">
{% if org.language != "ar" and org.language != "ru" %}
{% if org.subdomain == "drc" %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_DRC.jpg" alt="{{ org.name }}" class="logo">
{% elif org.language != "ar" and org.language != "ru" %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_EN.png" alt="{{ org.name }}" class="logo">
{% else %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_{{ org.language|upper }}.png" alt="{{ org.name }}" class="logo">
Expand Down Expand Up @@ -713,7 +715,9 @@
<a href="{% url 'public.index' %}" class="flex-initial text-center">
<div style="width:180px">
{% if org|config:"has_new_brand" %}
{% if org.language != "ar" and org.language != "ru" %}
{% if org.subdomain == "drc" %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_DRC.jpg" alt="{{ org.name }}" class="logo">
{% elif org.language != "ar" and org.language != "ru" %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_EN.png" alt="{{ org.name }}" class="logo">
{% else %}
<img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_{{ org.language|upper }}.png" alt="{{ org.name }}" class="logo">
Expand Down

0 comments on commit b9c4aa8

Please sign in to comment.