Show warning when position stack is not empty after trace

This commit is contained in:
Sander Steffann 2020-06-02 13:13:41 +02:00
parent 81a322eaaf
commit 34ae57dfa3
2 changed files with 5 additions and 0 deletions

View File

@ -2066,6 +2066,7 @@ class CableTraceView(PermissionRequiredMixin, View):
'obj': obj, 'obj': obj,
'trace': path, 'trace': path,
'split_ends': split_ends, 'split_ends': split_ends,
'position_stack': position_stack,
'total_length': total_length, 'total_length': total_length,
}) })

View File

@ -88,6 +88,10 @@
</table> </table>
</div> </div>
</div> </div>
{% elif position_stack %}
<div class="col-md-11 col-md-offset-1">
<h3 class="text-warning text-center">Multiple possible paths end at this point. No connection established!</h3>
</div>
{% else %} {% else %}
<div class="col-md-11 col-md-offset-1"> <div class="col-md-11 col-md-offset-1">
<h3 class="text-success text-center">Trace completed!</h3> <h3 class="text-success text-center">Trace completed!</h3>