mirror of https://github.com/logos-co/open-law.git
hot fix
This commit is contained in:
parent
3d93518b30
commit
dadb02338b
|
@ -61,9 +61,7 @@ def book_validator() -> Response | None:
|
||||||
flash("Subcollection not found", "danger")
|
flash("Subcollection not found", "danger")
|
||||||
return redirect(
|
return redirect(
|
||||||
url_for(
|
url_for(
|
||||||
"book.sub_collection_view",
|
"book.collection_view", book_id=book_id, collection_id=collection_id
|
||||||
book_id=book_id,
|
|
||||||
collection_id=collection_id,
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@
|
||||||
</dt>
|
</dt>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-5 m-3">
|
<div class="p-5 m-3">
|
||||||
{% for child in comment.children %}
|
{% for child in comment.children if not child.is_deleted %}
|
||||||
<div class="p-5 mb-2 flex justify-between items-end bg-slate-100 dark:bg-slate-600 rounded-lg">
|
<div class="p-5 mb-2 flex justify-between items-end bg-slate-100 dark:bg-slate-600 rounded-lg">
|
||||||
<div class="ql-snow">
|
<div class="ql-snow">
|
||||||
<div class="inline-block mb-4 ql-editor-readonly !p-0">
|
<div class="inline-block mb-4 ql-editor-readonly !p-0">
|
||||||
|
|
|
@ -32,12 +32,6 @@ def collection_view(book_id: int):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/<int:book_id>/<int:collection_id>/subcollections", methods=["GET"])
|
|
||||||
def sub_collection_view(book_id: int, collection_id: int):
|
|
||||||
# TODO REMOVE ME
|
|
||||||
return {"REMOVE ME": "REMOVE ME"}
|
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/<int:book_id>/create_collection", methods=["POST"])
|
@bp.route("/<int:book_id>/create_collection", methods=["POST"])
|
||||||
@bp.route("/<int:book_id>/<int:collection_id>/create_sub_collection", methods=["POST"])
|
@bp.route("/<int:book_id>/<int:collection_id>/create_sub_collection", methods=["POST"])
|
||||||
@register_book_verify_route(bp.name)
|
@register_book_verify_route(bp.name)
|
||||||
|
|
|
@ -74,16 +74,10 @@ def create_comment(
|
||||||
return redirect(redirect_url)
|
return redirect(redirect_url)
|
||||||
|
|
||||||
|
|
||||||
@bp.route(
|
@bp.route("/<int:book_id>/<int:interpretation_id>/comment_delete", methods=["POST"])
|
||||||
"/<int:book_id>/<int:interpretation_id>/comment_delete",
|
|
||||||
methods=["POST"],
|
|
||||||
)
|
|
||||||
@register_book_verify_route(bp.name)
|
@register_book_verify_route(bp.name)
|
||||||
@login_required
|
@login_required
|
||||||
def comment_delete(
|
def comment_delete(book_id: int, interpretation_id: int):
|
||||||
book_id: int,
|
|
||||||
interpretation_id: int,
|
|
||||||
):
|
|
||||||
redirect_url = url_for(
|
redirect_url = url_for(
|
||||||
"book.qa_view", book_id=book_id, interpretation_id=interpretation_id
|
"book.qa_view", book_id=book_id, interpretation_id=interpretation_id
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue