diff --git a/biscd/biscd/routes.py b/biscd/biscd/routes.py index 6fbbe95..fea342d 100644 --- a/biscd/biscd/routes.py +++ b/biscd/biscd/routes.py @@ -7,15 +7,12 @@ from .froms import NewProjectForm, LoginForm, RegistrationForm @app.route('/', methods=['GET', 'POST']) @app.route('/index', methods=['GET', 'POST']) -@login_required def index(): - form = NewProjectForm() - if form.validate_on_submit(): - project = Project.first_or_404(name=form.projectname.data) - project.save() - flash('You added a project!') - project_names = Project.list_names() - return render_template('index.html', form=form, project_names=project_names) + if current_user.is_authenticated: + project_names = Project.list_names() + else: + project_names = None + return render_template('index.html', project_names=project_names) @app.route('/login', methods=['GET', 'POST']) def login(): diff --git a/biscd/biscd/static/css/custom.css b/biscd/biscd/static/css/custom.css index 04ce980..1aa6b55 100644 --- a/biscd/biscd/static/css/custom.css +++ b/biscd/biscd/static/css/custom.css @@ -1,3 +1,14 @@ -.container { - padding-top: 30px -} \ No newline at end of file +body { + padding-top: 120px +} + +/* +.page-header h1 { + padding: 2rem 0; + font-size: 3rem; +} + +h2 { + padding: 2rem 0; +} +*/ \ No newline at end of file diff --git a/biscd/biscd/templates/base.html b/biscd/biscd/templates/base.html index c60eec9..0e12f0a 100644 --- a/biscd/biscd/templates/base.html +++ b/biscd/biscd/templates/base.html @@ -12,56 +12,55 @@
-