mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Allow indexing collections list page
This commit is contained in:
parent
bcebb72a66
commit
315337d552
@ -54,7 +54,7 @@ def list_all(author=None):
|
|||||||
collections = [x for x in query.all() if x.check_perm(current_user, Permission.VIEW_COLLECTION)]
|
collections = [x for x in query.all() if x.check_perm(current_user, Permission.VIEW_COLLECTION)]
|
||||||
return render_template("collections/list.html",
|
return render_template("collections/list.html",
|
||||||
user=user, collections=collections,
|
user=user, collections=collections,
|
||||||
noindex=user is None or len(collections) == 0)
|
noindex=len(collections) == 0)
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/collections/<author>/<name>/")
|
@bp.route("/collections/<author>/<name>/")
|
||||||
|
Loading…
Reference in New Issue
Block a user