Skip to content

Conversation

@ericholscher
Copy link
Member

I was confused what they mean,
and this will help users understand.

This seems to fail linting and when linted does a crazy single line string,
which I don't think we want?

I was confused what they mean,
and this will help users understand.

This seems to fail linting and when linted does a crazy single line string,
which I don't think we want?
@ericholscher ericholscher requested a review from a team as a code owner September 25, 2025 13:42
{% else %}
{% trans "Build in progress" %}
{% endif %}">
</i>
Copy link
Contributor

Choose a reason for hiding this comment

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

To avoid a multiline attribute, this should all be wrapped with spaceless similar to the attributes above this.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure spaceless is working..

Screenshot 2025-09-30 at 12 42 38 PM

Copy link
Member Author

@ericholscher ericholscher Sep 30, 2025

Choose a reason for hiding this comment

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

Spaceless only removes spaces between HTML tags, not inside of text content: https://docs.djangoproject.com/en/5.2/ref/templates/builtins/#spaceless

Only space between tags is removed – not space between tags and text.

Copy link
Contributor

Choose a reason for hiding this comment

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

Bah yeah you're right. This is going to be another case of fighting with Django templates to do something really basic. There might be a way to use {% filter cut:"" %} but this almost certainly requires a small, custom filter.

These blocks are all trying to do the same thing, so should all match.

@ericholscher
Copy link
Member Author

The styling on these seem a bit odd.. is there some way to make it styled nicer?

Screenshot 2025-09-30 at 12 41 56 PM

@agjohnson
Copy link
Contributor

The styling on these seem a bit odd.. is there some way to make it styled nicer?

Adding a title to an element is a native browser thing, FUI doesn't alter the styling of these at all. The title popup isn't styled weird, it's just displaying all of the whitespace included in the attribute. It might be possible to control whitespace with CSS but I feel that would be getting pretty deep in the weeds for a fix.

I regret not preempting a migration to Jinja templates, it would have solved a lot of Django template headaches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants