fixed stuff in base.html

This commit is contained in:
Pünkösd Marcell 2020-11-28 01:45:53 +01:00
parent 8995736374
commit 404c2ec0dd
2 changed files with 7 additions and 5 deletions

View File

@ -21,18 +21,20 @@
<li class="nav-item active">
<a class="nav-link" href="{{ url_for('IndexView:index') }}">Home</a>
</li>
{% if current_user.is_authenticated %}
<li class="nav-item active">
<a class="nav-link" href="{{ url_for('ProfileView:index') }}">Profile</a>
</li>
{% endif %}
<li class="nav-item active">
<a class="nav-link" href="{{ url_for_security('login') }}">Login</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="{{ url_for_security('login') }}">Register</a>
<a class="nav-link" href="{{ url_for_security('register') }}">Register</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search">
<form class="form-inline my-2 my-lg-0" action="{{url_for('IndexView:index')}}" method="get">
<input class="form-control mr-sm-2" name="search" type="text" placeholder="Search">
<button class="btn btn-secondary my-2 my-sm-0" type="submit">Search</button>
</form>
</div>

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
from flask import render_template
from flask_classful import FlaskView
"""
@ -15,4 +15,4 @@ __version__text__ = "1"
class UploadView(FlaskView):
def index(self):
pass
return render_template('upload.html')