Количество подписчиков на странице пользователя. Номера в топе.

This commit is contained in:
Alexey Skobkin 2015-06-26 15:57:51 +03:00
parent 27754e9134
commit 57cedf5417
2 changed files with 3 additions and 1 deletions

View file

@ -15,7 +15,7 @@
<div class="panel-heading" id="heading-subscribers">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-subscribers" aria-expanded="false" href="#collapse-subscribers">
<span class="glyphicon glyphicon-collapse-down"></span> {{ 'Subscribers'|trans }}
<span class="glyphicon glyphicon-collapse-down"></span> {{ 'Subscribers'|trans }} ({{ subscribers|length }})
</a>
</h4>
</div>

View file

@ -8,6 +8,7 @@
<table class="table table-striped">
<thead>
<tr>
<td>&#35;</td>
<td>{{ 'User'|trans }}</td>
<td>{{ 'Subscribers count'|trans }}</td>
</tr>
@ -15,6 +16,7 @@
<tbody>
{% for user in top_users %}
<tr>
<td>{{ loop.index }}</td>
<td><a href="{{ url('user_show', {login: user.login}) }}">@{{ user.login }}</a></td>
<td>{{ user.subscribersCount }}</td>
</tr>