-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfilerBundle] Tweak the colors of the security panel #44115
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
Conversation
src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig
Show resolved
Hide resolved
@javiereguiluz Hello, I remembered a discussion ago on this kind of subject here: +1 to remove the color if no security is involved in this profile :) |
the color for the toolbar info seems to be kept as is, using the removed variable. |
{% set color_code = '' %} | ||
{% endif %} | ||
|
||
{% set is_authenticated = collector.enabled and collector.authenticated %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this variable is used only in the {% if collector.enabled and collector.token %}
condition of the text, maybe the usage can be changed to collector.authenticated
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made some changes ... but I'm not sure if it's what you were asking for.
785d53c
to
ccfce10
Compare
Thank you @javiereguiluz. |
In 5.4, by default the Security panel in the toolbar displays a yellow background when there's no security:
I think this shouldn't be the case because a yellow background means: "Hey, look here because there's something you probably need to fix" But, it's OK if certain pages don't have any security, so there's no issue to fix.
After this PR, this is how it looks: