Skip to content

Commit 8a8bb3d

Browse files
committed
Always include the breadcrumb nav
Signed-off-by: tdruez <[email protected]>
1 parent a03e52f commit 8a8bb3d

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
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"
@@ -7,31 +6,32 @@
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>

0 commit comments

Comments
 (0)