File tree 1 file changed +5
-3
lines changed
scanpipe/templates/scanpipe/panels
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 42
42
{% if project.can_change_inputs and input_source.uuid %}
43
43
< a class ="modal-button is-grey-link is-clickable ml-1 " data-target ="modal-inputs-delete " aria-haspopup ="true " data-url ="{% url 'project_delete_input' project.slug input_source.uuid %} " data-filename ="{{ input_source.filename }} " href ="# "> < i class ="fa-regular fa-trash-can "> </ i > </ a >
44
44
{% endif %}
45
- < a class ="modal-button is-grey-link is-clickable ml-1 " data-input-source-uuid ="{{ input_source.uuid }} " data-tag-value ="{{ input_source.tag }} " data-target ="edit-input-tag-modal " aria-haspopup ="true ">
46
- < span class ="icon width-1 height-1 "> < i class ="fa-solid fa-tag "> </ i > </ span >
47
- </ a >
45
+ {% if input_source.uuid %}{# File added in directory manually, no InputSource object available #}
46
+ < a class ="modal-button is-grey-link is-clickable ml-1 " data-input-source-uuid ="{{ input_source.uuid }} " data-tag-value ="{{ input_source.tag }} " data-target ="edit-input-tag-modal " aria-haspopup ="true ">
47
+ < span class ="icon width-1 height-1 "> < i class ="fa-solid fa-tag "> </ i > </ span >
48
+ </ a >
49
+ {% endif %}
48
50
</ div >
49
51
</ div >
50
52
{% endfor %}
You can’t perform that action at this time.
0 commit comments