Skip to content

Conversation

aayushkdev
Copy link
Collaborator

@aayushkdev aayushkdev commented Sep 16, 2025

Reference #1840

image

Signed-off-by: Aayush Kumar <aayush214.kumar@gmail.com>
Signed-off-by: Aayush Kumar <aayush214.kumar@gmail.com>
@aayushkdev aayushkdev requested a review from tdruez September 18, 2025 16:43
Comment on lines +2851 to +2852
else:
context["parent_path"] = None
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not necessary.

Comment on lines +49 to +52
<td></td>
<td></td>
<td></td>
<td></td>
Copy link
Contributor

Choose a reason for hiding this comment

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

Using colspan would look cleaner.

<tbody>
{% if parent_path is not None %}
<tr class="expand-in-tree is-clickable"
data-path="{{ parent_path|default_if_none:'' }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could default_if_none be triggered if we already test for None in the if above?

</tr>
</thead>
<tbody>
{% if parent_path is not None %}
Copy link
Contributor

Choose a reason for hiding this comment

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

{% if parent_path %} should be enough

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