Browse Source

добавил отображение ключа авторизации по трафику

devel
bashmak 9 years ago
parent
commit
eac2a5a6a7
  1. 13
      abonapp/templates/abonapp/peoples.html

13
abonapp/templates/abonapp/peoples.html

@ -24,6 +24,7 @@
</a> </a>
{% if order_by == 'username' %}<span class="glyphicon glyphicon-filter"></span>{% endif %} {% if order_by == 'username' %}<span class="glyphicon glyphicon-filter"></span>{% endif %}
</th> </th>
<th>{% trans 'Last traffic' %}</th>
<th> <th>
<a href="{% url 'abonapp:people_list' abon_group.pk %}?order_by=ip_address&dir={{ dir|default:"down" }}"> <a href="{% url 'abonapp:people_list' abon_group.pk %}?order_by=ip_address&dir={{ dir|default:"down" }}">
{% trans 'Ip address' %} {% trans 'Ip address' %}
@ -66,7 +67,17 @@
{% else %} {% else %}
<tr class="danger"> <tr class="danger">
{% endif %} {% endif %}
<td><a href="{% url 'abonapp:abon_home' human.group.pk human.pk %}">{{ human.username }}</a></td>
<td>
<a href="{% url 'abonapp:abon_home' human.group.pk human.pk %}">{{ human.username }}</a>
{% if human.is_online %}
<span class="glyphicon glyphicon-ok text-success"></span>
{% endif %}
</td>
<td>
{% if human.traf %}
{{ human.traf.cur_time|date:"H:i" }}
{% endif %}
</td>
<td>{{ human.ip_address|default:_('Not assigned') }}</td> <td>{{ human.ip_address|default:_('Not assigned') }}</td>
<td>{{ human.fio }}</td> <td>{{ human.fio }}</td>
<td>{{ human.street|default:_('Not assigned') }}</td> <td>{{ human.street|default:_('Not assigned') }}</td>

Loading…
Cancel
Save