diff --git a/abonapp/templates/abonapp/editAbon.html b/abonapp/templates/abonapp/editAbon.html index 84432d4..463c519 100644 --- a/abonapp/templates/abonapp/editAbon.html +++ b/abonapp/templates/abonapp/editAbon.html @@ -192,25 +192,46 @@

{% trans 'Ip address' %}

+
{% if abon.ip_address %} -
- - - - {{ abon.ip_address }} - {% if perms.abonapp.can_ping %} - - Ping +
{{ abon.ip_address }}
+
+
+ + + {% if perms.abonapp.can_ping %} + + Ping + + {% else %} + + Ping + + {% endif %} +
+
+ {% else %} +
+
{% trans 'No ip address' %}
+ {% endif %} + + {% if abon.statcache %} +
{% trans 'Last traffic:' %}
+
+ {% if abon.statcache.is_today %} + {{ abon.statcache.last_time|date:"H:i" }} {% else %} - - Ping - + {{ abon.statcache.last_time|date:"D H:i" }} {% endif %} -
- {% else %} - {% trans 'No ip address' %} + +
{% trans 'Octets:' %}
+
{{ abon.statcache.octets_to|floatformat:2 }}Mb / 1 min.
+
{% trans 'Packets:' %}
+
{{ abon.statcache.packets }}
{% endif %} +
+