forked from MarseyWorld/MarseyWorld
more descriptive success messages
parent
41dac65e9c
commit
cc0f2059c3
|
@ -583,7 +583,7 @@ def badge_grant_post(v):
|
|||
)
|
||||
g.db.add(ma)
|
||||
|
||||
return render_template("admin/badge_grant.html", v=v, badge_types=badges, msg="Badge granted!")
|
||||
return render_template("admin/badge_grant.html", v=v, badge_types=badges, msg=f"{new_badge.name} Badge granted to @{user.username} successfully!")
|
||||
|
||||
|
||||
|
||||
|
@ -629,7 +629,7 @@ def badge_remove_post(v):
|
|||
g.db.delete(badge)
|
||||
|
||||
|
||||
return render_template("admin/badge_remove.html", v=v, badge_types=badges, msg="Badge removed!")
|
||||
return render_template("admin/badge_remove.html", v=v, badge_types=badges, msg=f"{badge.name} Badge removed from @{user.username} successfully!")
|
||||
|
||||
|
||||
@app.get("/admin/users")
|
||||
|
|
|
@ -471,6 +471,6 @@ def admin_userawards_post(v):
|
|||
g.db.add(ma)
|
||||
|
||||
|
||||
if v.admin_level != 3: return render_template("admin/awards.html", awards=list(AWARDS3.values()), v=v)
|
||||
return render_template("admin/awards.html", awards=list(AWARDS.values()), v=v)
|
||||
if v.admin_level != 3: return render_template("admin/awards.html", awards=list(AWARDS3.values()), v=v, msg=f"Awards granted to @{u.username} successfully!")
|
||||
return render_template("admin/awards.html", awards=list(AWARDS.values()), v=v, msg=f"Awards granted to @{u.username} successfully!")
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ def submit_contact(v):
|
|||
|
||||
|
||||
|
||||
return render_template("contact.html", v=v, msg="Your message has been sent.")
|
||||
return render_template("contact.html", v=v, msg="Your message has been sent to the admins!")
|
||||
|
||||
@app.get('/archives')
|
||||
def archivesindex():
|
||||
|
|
Loading…
Reference in New Issue