fixed stuff in base.html
This commit is contained in:
parent
8995736374
commit
404c2ec0dd
@ -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>
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user