testing
parent
c751739a20
commit
c10280ada3
|
@ -35,6 +35,7 @@ def error(e):
|
|||
if request.headers.get("Authorization") or request.headers.get("xhr"):
|
||||
return {"error": title, "code": e.code, "description": msg, "details": details}, e.code
|
||||
img = ERROR_MARSEYS.get(e.code, 'marseyl')
|
||||
# TODO: make sure v isn't required from anything error.html needs
|
||||
return render_template('errors/error.html', err=True, title=title, msg=msg, details=details, img=img), e.code
|
||||
|
||||
@app.errorhandler(401)
|
||||
|
|
|
@ -543,7 +543,7 @@
|
|||
</div>
|
||||
|
||||
{% if v %}
|
||||
{% include "modals/delete_post.html" if v.id == p.author_id %}
|
||||
{% include "modals/delete_post.html" if v.id == p.author_id else '' %}
|
||||
{% include "modals/report_post.html" %}
|
||||
{% if v.id == p.author_id or v.admin_level >= PERMS['POST_EDITING'] %}
|
||||
<script defer src="{{'js/togglePostEdit.js' | asset}}"></script>
|
||||
|
@ -558,7 +558,7 @@
|
|||
{% endif %}
|
||||
|
||||
<script defer src="{{'js/clipboard.js' | asset}}"></script>
|
||||
{% include "comments.html" if not p.replies %}
|
||||
{% include "comments.html" if not p.replies ignore missing %}
|
||||
|
||||
{% if v.highlightcomments %}
|
||||
<script>
|
||||
|
|
Loading…
Reference in New Issue