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

💄(admin) allow header color customization #552

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

qbey
Copy link
Collaborator

@qbey qbey commented Nov 22, 2024

Purpose

This allows to use custom colors according to environment.

FIXES #430

Proposal

  • add a custom Django admin site
  • pass Django admin header colors through context

@qbey qbey force-pushed the qbey/custom-admin-header-colors branch from a79541a to 5a110b0 Compare November 22, 2024 15:57
@qbey qbey self-assigned this Nov 22, 2024
@qbey qbey added the backend label Nov 22, 2024
@qbey qbey requested a review from sdemagny November 25, 2024 15:17
{% if ADMIN_HEADER_COLOR %}--header-color: {{ ADMIN_HEADER_COLOR }};{% endif %}
}
</style>
{% endblock %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il manque un saut de ligne

This allows to use custom colors according to
environment.

FIXES #430
@qbey qbey force-pushed the qbey/custom-admin-header-colors branch from 5a110b0 to 663fde2 Compare November 26, 2024 09:03
@qbey qbey enabled auto-merge (rebase) November 26, 2024 09:03
@qbey qbey merged commit 0357caa into main Nov 26, 2024
20 checks passed
@qbey qbey deleted the qbey/custom-admin-header-colors branch November 26, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mettre un bandeau de couleur sur l'admin de la prod
2 participants