Skip to content

Commit 97c7dd4

Browse files
authored
fix: Use correct logo in dark mode menubar (ietf-tools#6016)
Also use the "nor" variant elsewhere the logo is small.
1 parent 4ec22da commit 97c7dd4

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

ietf/templates/base.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
<nav class="navbar navbar-expand-lg fixed-top {% if server_mode and server_mode != "production" %}bg-danger-subtle{% else %}bg-secondary{% endif %}">
3939
<div class="container-fluid">
4040
<a class="navbar-brand" href="/">
41-
<img alt="IETF Logo" class="me-2"
42-
src="{% static 'ietf/images/ietf-logo-nor-white.svg' %}">
41+
{% include "logo.html" with org="ietf" classes="me-2" nor=True only %}
4342
Datatracker
4443
{% if server_mode and server_mode != "production" %}
4544
<span class="text-danger">&delta;</span>

ietf/templates/doc/document_info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
{% endif %}
239239
{% if document_html %}
240240
{% if doc.stream.name|lower in 'iab,ietf,irtf' %}
241-
{% include "logo.html" with org=doc.stream.name|lower classes="w-25 mt-1" title=stream_desc only %}
241+
{% include "logo.html" with org=doc.stream.name|lower classes="w-25 mt-1" title=stream_desc nor=True only %}
242242
{% else %}
243243
{{ stream_desc }}
244244
{% endif %}

ietf/templates/logo.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
{% if org == "iab" %}
88
srcset="{% static 'ietf/images/iab-logo-white.svg' %}"
99
{% elif org == "ietf" %}
10-
srcset="{% static 'ietf/images/ietf-logo-white.svg' %}"
10+
{% if nor %}
11+
srcset="{% static 'ietf/images/ietf-logo-nor-white.svg' %}"
12+
{% else %}
13+
srcset="{% static 'ietf/images/ietf-logo-white.svg' %}"
14+
{% endif %}
1115
{% elif org == "irtf" %}
1216
srcset="{% static 'ietf/images/irtf-logo-white.svg' %}"
1317
{% endif %}
@@ -18,7 +22,11 @@
1822
{% if org == "iab" %}
1923
src="{% static 'ietf/images/iab-logo.svg' %}"
2024
{% elif org == "ietf" %}
21-
src="{% static 'ietf/images/ietf-logo.svg' %}"
25+
{% if nor %}
26+
src="{% static 'ietf/images/ietf-logo-nor.svg' %}"
27+
{% else %}
28+
src="{% static 'ietf/images/ietf-logo.svg' %}"
29+
{% endif %}
2230
{% elif org == "irtf" %}
2331
src="{% static 'ietf/images/irtf-logo.svg' %}"
2432
{% endif %}

0 commit comments

Comments
 (0)