diff --git a/drama/routes/votes.py b/drama/routes/votes.py index ce23e27ec0..bcccd5dd5c 100644 --- a/drama/routes/votes.py +++ b/drama/routes/votes.py @@ -11,7 +11,7 @@ def admin_vote_info_get(v): if v and v.is_banned and not v.unban_utc: return render_template("seized.html") link = request.args.get("link") - if not link: return render_template("admin/votes.html", v=v) + if not link: return render_template("votes.html", v=v) ids = re.search("://[^/]+\w+/post/(\w+)/[^/]+(/(\w+))?", link) @@ -54,7 +54,7 @@ def admin_vote_info_get(v): else: abort(400) - return render_template("admin/votes.html", + return render_template("votes.html", v=v, thing=thing, ups=ups, diff --git a/drama/templates/admin/votes.html b/drama/templates/admin/votes.html deleted file mode 100644 index 3fb2437f1a..0000000000 --- a/drama/templates/admin/votes.html +++ /dev/null @@ -1,61 +0,0 @@ -{% extends "default.html" %} - -{% block title %} -
Author: @{{thing.author.username}}
-Author Created At: {{thing.author.created_utc}} ({{thing.author.created_datetime}} UTC)
-Counted Upvotes: {{thing.upvotes}} out of {{ups | length}}
-Counted Downvotes: {{thing.downvotes}} out of {{downs | length}}
- -User | -
---|
{{vote.user.username}} | -
User | -
---|
{{vote.user.username}} | -
Author: @{{thing.author.username}}
+Author Created At: {{thing.author.created_utc}} ({{thing.author.created_datetime}} UTC)
+Upvotes:{{ups | length}}
+Downvotes:{{downs | length}}
+ +User |
---|
{{vote.user.username}} |
User |
---|
{{vote.user.username}} |