fixed stuff in base.html
This commit is contained in:
parent
8995736374
commit
404c2ec0dd
@ -21,18 +21,20 @@
|
|||||||
<li class="nav-item active">
|
<li class="nav-item active">
|
||||||
<a class="nav-link" href="{{ url_for('IndexView:index') }}">Home</a>
|
<a class="nav-link" href="{{ url_for('IndexView:index') }}">Home</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% if current_user.is_authenticated %}
|
||||||
<li class="nav-item active">
|
<li class="nav-item active">
|
||||||
<a class="nav-link" href="{{ url_for('ProfileView:index') }}">Profile</a>
|
<a class="nav-link" href="{{ url_for('ProfileView:index') }}">Profile</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
<li class="nav-item active">
|
<li class="nav-item active">
|
||||||
<a class="nav-link" href="{{ url_for_security('login') }}">Login</a>
|
<a class="nav-link" href="{{ url_for_security('login') }}">Login</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item active">
|
<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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<form class="form-inline my-2 my-lg-0">
|
<form class="form-inline my-2 my-lg-0" action="{{url_for('IndexView:index')}}" method="get">
|
||||||
<input class="form-control mr-sm-2" type="text" placeholder="Search">
|
<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>
|
<button class="btn btn-secondary my-2 my-sm-0" type="submit">Search</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
from flask import render_template
|
||||||
from flask_classful import FlaskView
|
from flask_classful import FlaskView
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@ -15,4 +15,4 @@ __version__text__ = "1"
|
|||||||
class UploadView(FlaskView):
|
class UploadView(FlaskView):
|
||||||
|
|
||||||
def index(self):
|
def index(self):
|
||||||
pass
|
return render_template('upload.html')
|
||||||
|
Loading…
Reference in New Issue
Block a user