mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 00:50:40 +00:00
first implementation of follow mechanics
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
from flask import flash, redirect, render_template, url_for
|
||||
from flask_login import current_user, login_required, login_user
|
||||
from app.auth.forms import LoginForm
|
||||
from app.models import User
|
||||
from app.models import Corpus, User
|
||||
from . import bp
|
||||
|
||||
|
||||
@ -31,7 +31,11 @@ def dashboard():
|
||||
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()
|
||||
]
|
||||
return render_template('main/dashboard.html.j2', title='Dashboard', users=users)
|
||||
corpora = [
|
||||
c.to_json_serializeable() for c
|
||||
in Corpus.query.filter(Corpus.is_public == True).all()
|
||||
]
|
||||
return render_template('main/dashboard.html.j2', title='Dashboard', users=users, corpora=corpora)
|
||||
|
||||
|
||||
@bp.route('/dashboard2')
|
||||
|
Reference in New Issue
Block a user