Количество подписчиков на странице пользователя. Номера в топе.
This commit is contained in:
parent
27754e9134
commit
57cedf5417
|
@ -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>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>#</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>
|
||||
|
|
Loading…
Reference in a new issue