|
|
|
@ -10,10 +10,10 @@ from .froms import NewProjectForm, LoginForm, RegistrationForm, EmptyForm
@@ -10,10 +10,10 @@ from .froms import NewProjectForm, LoginForm, RegistrationForm, EmptyForm
|
|
|
|
|
@app.route('/index', methods=['GET', 'POST']) |
|
|
|
|
def index(): |
|
|
|
|
if current_user.is_authenticated: |
|
|
|
|
project_names = Project.list_names() |
|
|
|
|
projects = current_user.projects |
|
|
|
|
else: |
|
|
|
|
project_names = None |
|
|
|
|
return render_template('index.html', project_names=project_names) |
|
|
|
|
projects = None |
|
|
|
|
return render_template('index.html', projects=projects) |
|
|
|
|
|
|
|
|
|
@app.route('/login', methods=['GET', 'POST']) |
|
|
|
|
def login(): |
|
|
|
|