diff --git a/files/assets/css/main.css b/files/assets/css/main.css index b15493263..324532579 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -7648,6 +7648,12 @@ blink { margin-top: 3rem; } +.admin-note + div + :not(.admin-note) { + border-top: 2px solid var(--primary) !important; + margin-top: 4rem !important; + margin-bottom: 4rem !important; +} + details { margin-bottom: 1rem; } diff --git a/files/routes/users.py b/files/routes/users.py index fb7dddc26..92cfa94e8 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -902,16 +902,19 @@ def u_username_wall(v, username): if v.admin_level >= PERMS['ADMIN_NOTES']: pinned = [c[0] for c in comments.filter(Comment.pinned != None).order_by(Comment.created_utc.desc())] + for c in pinned: + c.admin_note = True else: pinned = [] comments = comments.filter(Comment.pinned == None).order_by(Comment.created_utc.desc()) .offset(PAGE_SIZE * (page - 1)).limit(PAGE_SIZE).all() comments = [c[0] for c in comments] + comments = pinned + comments if v.client: return {"data": [c.json for c in comments]} - return render_template("userpage/wall.html", u=u, v=v, pinned=pinned, listing=comments, page=page, total=total, is_following=is_following, standalone=True, render_replies=True, wall=True) + return render_template("userpage/wall.html", u=u, v=v, listing=comments, page=page, total=total, is_following=is_following, standalone=True, render_replies=True, wall=True) @app.get("/@/wall/comment/") diff --git a/files/templates/comments.html b/files/templates/comments.html index 52d85a802..273aad45b 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -61,7 +61,7 @@ {% endif %} {% if standalone and level == 1 %} -