Количество подписчиков на странице пользователя. Номера в топе.
This commit is contained in:
parent
27754e9134
commit
57cedf5417
|
@ -15,7 +15,7 @@
|
||||||
<div class="panel-heading" id="heading-subscribers">
|
<div class="panel-heading" id="heading-subscribers">
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
<a data-toggle="collapse" data-parent="#accordion-subscribers" aria-expanded="false" href="#collapse-subscribers">
|
<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>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>#</td>
|
||||||
<td>{{ 'User'|trans }}</td>
|
<td>{{ 'User'|trans }}</td>
|
||||||
<td>{{ 'Subscribers count'|trans }}</td>
|
<td>{{ 'Subscribers count'|trans }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for user in top_users %}
|
{% for user in top_users %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>{{ loop.index }}</td>
|
||||||
<td><a href="{{ url('user_show', {login: user.login}) }}">@{{ user.login }}</a></td>
|
<td><a href="{{ url('user_show', {login: user.login}) }}">@{{ user.login }}</a></td>
|
||||||
<td>{{ user.subscribersCount }}</td>
|
<td>{{ user.subscribersCount }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue