Skip to content

Commit 798045b

Browse files
committed
Do not display link to Resource details for directories #426
Signed-off-by: Thomas Druez <[email protected]>
1 parent 8ff2860 commit 798045b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scanpipe/templates/scanpipe/resource_list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@
3838
{% for resource in object_list %}
3939
<tr>
4040
<td class="break-all">
41-
<a href="{{ resource.get_absolute_url }}">{{ resource.path }}</a>
41+
{% if resource.is_dir %}
42+
{{ resource.path }}
43+
{% else %}
44+
<a href="{{ resource.get_absolute_url }}">{{ resource.path }}</a>
45+
{% endif %}
4246
</td>
4347
<td>
4448
<a href="?status={{ resource.status }}" class="is-black-link">{{ resource.status }}</a>

0 commit comments

Comments
 (0)