File tree Expand file tree Collapse file tree 1 file changed +29
-29
lines changed
scanpipe/templates/scanpipe/tree Expand file tree Collapse file tree 1 file changed +29
-29
lines changed Original file line number Diff line number Diff line change 1- {% if path_segments %}
21< nav class ="breadcrumb is-flex is-align-items-center mb-2 " aria-label ="breadcrumbs ">
32 < button
43 id ="expand-left-pane "
76 data-tooltip-position ="bottom right ">
87 < i class ="fa-solid fa-square-caret-right "> </ i >
98 </ button >
10- < ul >
11- {% for subpath, segment in path_segments %}
12- {% if not forloop.last %}
13- < li >
14- < a
15- href ="{% url 'project_resource_tree' project.slug subpath %} "
16- class ="expand-in-tree "
17- data-path ="{{ subpath }} "
18- hx-get ="{% url 'project_resource_tree_table' project.slug subpath %} "
19- hx-target ="#right-pane "
20- hx-push-url ="{% url 'project_resource_tree' project.slug subpath %} ">
21- {{ segment }}
22- </ a >
23- </ li >
24- {% else %}
25- < li class ="is-active ">
26- < a href ="# " class ="has-text-dark " aria-current ="page ">
27- {{ segment }}
28- </ a >
29- </ li >
30- {% endif %}
31- {% endfor %}
32- </ ul >
33- < button class ="button is-borderless copy-to-clipboard p-2 " aria-label ="Copy path " data-copy ="{{ path }} " data-copy-feedback ="Path copied! ">
34- < i class ="fa-regular fa-clone "> </ i >
35- </ button >
36- </ nav >
37- {% endif %}
9+ {% if path_segments %}
10+ < ul >
11+ {% for subpath, segment in path_segments %}
12+ {% if not forloop.last %}
13+ < li >
14+ < a
15+ href ="{% url 'project_resource_tree' project.slug subpath %} "
16+ class ="expand-in-tree "
17+ data-path ="{{ subpath }} "
18+ hx-get ="{% url 'project_resource_tree_table' project.slug subpath %} "
19+ hx-target ="#right-pane "
20+ hx-push-url ="{% url 'project_resource_tree' project.slug subpath %} ">
21+ {{ segment }}
22+ </ a >
23+ </ li >
24+ {% else %}
25+ < li class ="is-active ">
26+ < a href ="# " class ="has-text-dark " aria-current ="page ">
27+ {{ segment }}
28+ </ a >
29+ </ li >
30+ {% endif %}
31+ {% endfor %}
32+ </ ul >
33+ < button class ="button is-borderless copy-to-clipboard p-2 " aria-label ="Copy path " data-copy ="{{ path }} " data-copy-feedback ="Path copied! ">
34+ < i class ="fa-regular fa-clone "> </ i >
35+ </ button >
36+ {% endif %}
37+ </ nav >
You can’t perform that action at this time.
0 commit comments