-
-
Notifications
You must be signed in to change notification settings - Fork 116
Add .. navigation option in table to navigate to parent resource #1869
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Aayush Kumar <aayush214.kumar@gmail.com>
Signed-off-by: Aayush Kumar <aayush214.kumar@gmail.com>
else: | ||
context["parent_path"] = None |
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.
This is not necessary.
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> |
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.
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:'' }}" |
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.
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 %} |
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.
{% if parent_path %} should be enough
Reference #1840