Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use correct logo in dark mode menubar #6016

Merged
merged 1 commit into from
Jul 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ietf/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
<nav class="navbar navbar-expand-lg fixed-top {% if server_mode and server_mode != "production" %}bg-danger-subtle{% else %}bg-secondary{% endif %}">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img alt="IETF Logo" class="me-2"
src="{% static 'ietf/images/ietf-logo-nor-white.svg' %}">
{% include "logo.html" with org="ietf" classes="me-2" nor=True only %}
Datatracker
{% if server_mode and server_mode != "production" %}
<span class="text-danger">&delta;</span>
Expand Down
2 changes: 1 addition & 1 deletion ietf/templates/doc/document_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
{% endif %}
{% if document_html %}
{% if doc.stream.name|lower in 'iab,ietf,irtf' %}
{% include "logo.html" with org=doc.stream.name|lower classes="w-25 mt-1" title=stream_desc only %}
{% include "logo.html" with org=doc.stream.name|lower classes="w-25 mt-1" title=stream_desc nor=True only %}
{% else %}
{{ stream_desc }}
{% endif %}
Expand Down
12 changes: 10 additions & 2 deletions ietf/templates/logo.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
{% if org == "iab" %}
srcset="{% static 'ietf/images/iab-logo-white.svg' %}"
{% elif org == "ietf" %}
srcset="{% static 'ietf/images/ietf-logo-white.svg' %}"
{% if nor %}
srcset="{% static 'ietf/images/ietf-logo-nor-white.svg' %}"
{% else %}
srcset="{% static 'ietf/images/ietf-logo-white.svg' %}"
{% endif %}
{% elif org == "irtf" %}
srcset="{% static 'ietf/images/irtf-logo-white.svg' %}"
{% endif %}
Expand All @@ -18,7 +22,11 @@
{% if org == "iab" %}
src="{% static 'ietf/images/iab-logo.svg' %}"
{% elif org == "ietf" %}
src="{% static 'ietf/images/ietf-logo.svg' %}"
{% if nor %}
src="{% static 'ietf/images/ietf-logo-nor.svg' %}"
{% else %}
src="{% static 'ietf/images/ietf-logo.svg' %}"
{% endif %}
{% elif org == "irtf" %}
src="{% static 'ietf/images/irtf-logo.svg' %}"
{% endif %}
Expand Down