fdfd
This commit is contained in:
parent
0fb3c4d142
commit
3c43f0f275
2 changed files with 24 additions and 0 deletions
|
@ -289,6 +289,9 @@ def u_username(username, v=None):
|
|||
v.dramacoins -= 500
|
||||
v.rent_utc = int(time.time())
|
||||
g.db.add(v)
|
||||
u.dramacoins += 500
|
||||
g.db.add(u)
|
||||
send_notification(1046, u, f"@{v.username} has paid rent!")
|
||||
paidrent = True
|
||||
|
||||
if not paidrent:
|
||||
|
|
21
drama/templates/followers - Copy.html
Normal file
21
drama/templates/followers - Copy.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% extends "default.html" %}
|
||||
{% block content %}
|
||||
<pre class="d-none d-md-inline-block"></pre>
|
||||
<h5>@{{u.username}}'s followers</h5>
|
||||
<pre></pre>
|
||||
<table class="table table-striped mb-5">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th style="font-weight: bold">#</th>
|
||||
<th style="font-weight: bold">Name</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
<td style="font-weight: bold">{{users.index(user)+1}}</td>
|
||||
<td><a {% if user.animatedname %}class="{% if user.patron %}patron{% else %}leaderboard{% endif %}"{% endif %} style="color:#{{user.namecolor}}; font-weight:bold;" href="/@{{user.username}}"><img src="/@{{user.username}}/pic/profile" class="profile-pic-20 mr-1">{{user.username}}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue