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

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"> <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>

View file

@ -8,6 +8,7 @@
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<td>&#35;</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>