fdfdd
This commit is contained in:
parent
3c43f0f275
commit
1524c7309e
2 changed files with 9 additions and 1 deletions
|
@ -221,6 +221,14 @@ def user_by_uid(uid, v=None):
|
|||
def redditor_moment_redirect(username):
|
||||
return redirect(f"/@{username}")
|
||||
|
||||
@app.get("/rentoids")
|
||||
@auth_desired
|
||||
def rentoids(v):
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
|
||||
users = g.db.query(User).filter(User.rent_utc > 0).all()
|
||||
return render_template("rentoids.html", v=v, users=users)
|
||||
|
||||
@app.get("/@<username>/followers")
|
||||
@auth_required
|
||||
def followers(username, v):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "default.html" %}
|
||||
{% block content %}
|
||||
<pre class="d-none d-md-inline-block"></pre>
|
||||
<h5>@{{u.username}}'s followers</h5>
|
||||
<h5>Rentoids</h5>
|
||||
<pre></pre>
|
||||
<table class="table table-striped mb-5">
|
||||
<thead class="bg-primary text-white">
|
Loading…
Add table
Add a link
Reference in a new issue