File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
netbox_branching/templates/netbox_branching Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,17 @@ <h5 class="card-header">{% trans "Branch" %}</h5>
8383 < tr >
8484 < th scope ="row "> {% trans "Last synced" %}</ th >
8585 < td >
86- {{ object.synced_time|isodatetime }}
87- {% if object.is_stale %}
88- < span class ="text-danger " title ="{% trans "Branch is stale and can no longer be synced " %}">
89- < i class ="mdi mdi-alert-circle "> </ i >
90- </ span >
86+ {% if object.last_sync %}
87+ {{ object.last_sync|isodatetime }}
88+ {% if object.is_stale %}
89+ < span class ="text-danger " title ="{% trans "Branch is stale and can no longer be synced " %}">
90+ < i class ="mdi mdi-alert-circle "> </ i >
91+ </ span >
92+ {% endif %}
93+ < div class ="small text-muted "> {{ object.last_sync|timesince }} {% trans "ago" %}</ div >
94+ {% else %}
95+ {{ ''|placeholder }}
9196 {% endif %}
92- < div class ="small text-muted "> {{ object.synced_time|timesince }} {% trans "ago" %}</ div >
9397 </ td >
9498 </ tr >
9599 < tr >
You can’t perform that action at this time.
0 commit comments