mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 00:50:40 +00:00
Remove more UI leftovers from community update
This commit is contained in:
@ -27,15 +27,20 @@ def faq():
|
||||
@bp.route('/dashboard')
|
||||
@login_required
|
||||
def dashboard():
|
||||
users = [
|
||||
u.to_json_serializeable(filter_by_privacy_settings=True) for u
|
||||
in User.query.filter(User.is_public == True, User.id != current_user.id).all()
|
||||
]
|
||||
corpora = [
|
||||
c.to_json_serializeable() for c
|
||||
in Corpus.query.filter(Corpus.is_public == True, Corpus.user != current_user).all()
|
||||
]
|
||||
return render_template('main/dashboard.html.j2', title='Dashboard', users=users, corpora=corpora)
|
||||
# users = [
|
||||
# u.to_json_serializeable(filter_by_privacy_settings=True) for u
|
||||
# in User.query.filter(User.is_public == True, User.id != current_user.id).all()
|
||||
# ]
|
||||
# corpora = [
|
||||
# c.to_json_serializeable() for c
|
||||
# in Corpus.query.filter(Corpus.is_public == True, Corpus.user != current_user).all()
|
||||
# ]
|
||||
return render_template(
|
||||
'main/dashboard.html.j2',
|
||||
title='Dashboard',
|
||||
# users=users,
|
||||
# corpora=corpora
|
||||
)
|
||||
|
||||
|
||||
@bp.route('/dashboard2')
|
||||
|
Reference in New Issue
Block a user