show the time on which ppl blocked/followed the hole
parent
8e84e3893e
commit
98bae12134
|
@ -207,7 +207,7 @@ def sub_exilees(v, sub):
|
||||||
def sub_blockers(v, sub):
|
def sub_blockers(v, sub):
|
||||||
sub = get_sub_by_name(sub)
|
sub = get_sub_by_name(sub)
|
||||||
if sub.name == "chudrama" and not v.can_see_chudrama: abort(403)
|
if sub.name == "chudrama" and not v.can_see_chudrama: abort(403)
|
||||||
users = g.db.query(User).join(SubBlock) \
|
users = g.db.query(User, SubBlock).join(SubBlock) \
|
||||||
.filter_by(sub=sub.name) \
|
.filter_by(sub=sub.name) \
|
||||||
.order_by(nullslast(SubBlock.created_utc.desc()), User.username).all()
|
.order_by(nullslast(SubBlock.created_utc.desc()), User.username).all()
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ def sub_blockers(v, sub):
|
||||||
def sub_followers(v, sub):
|
def sub_followers(v, sub):
|
||||||
sub = get_sub_by_name(sub)
|
sub = get_sub_by_name(sub)
|
||||||
if sub.name == "chudrama" and not v.can_see_chudrama: abort(403)
|
if sub.name == "chudrama" and not v.can_see_chudrama: abort(403)
|
||||||
users = g.db.query(User).join(SubSubscription) \
|
users = g.db.query(User, SubSubscription).join(SubSubscription) \
|
||||||
.filter_by(sub=sub.name) \
|
.filter_by(sub=sub.name) \
|
||||||
.order_by(nullslast(SubSubscription.created_utc.desc()), User.username).all()
|
.order_by(nullslast(SubSubscription.created_utc.desc()), User.username).all()
|
||||||
|
|
||||||
|
|
|
@ -11,14 +11,16 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
|
<th>{{verb.title()}} since</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for user in users %}
|
{% for user, object in users %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{loop.index}}</td>
|
<td>{{loop.index}}</td>
|
||||||
<td>{% include "user_in_table.html" %}</td>
|
<td>{% include "user_in_table.html" %}</td>
|
||||||
|
<td {% if object.created_utc %}data-time="{{object.created_utc}}"{% endif %}></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue