login
Added login functionality. It's a bit clunky, but it deas what it needs to. Testing needed. The header now has a search bar, but the page itself needs to be created.
This commit is contained in:
parent
d4016ce80c
commit
dda864a92e
10 changed files with 153 additions and 29 deletions
|
@ -11,7 +11,15 @@
|
|||
<header>
|
||||
<span id="title">{{title}}</span>
|
||||
<div id="container">
|
||||
<button class="big-button">🔎</div>
|
||||
<form action="/search" method="get">
|
||||
<input type="text" name="q" placeholder="search">
|
||||
<input type="submit" value="🔎" class="big-button" id="search-button">
|
||||
</form>
|
||||
{% if login %}
|
||||
<a href="/user/{{userdata[0]}}"><button class="big-button">{{userdata[2]}}</button></a>
|
||||
{% else %}
|
||||
<a href="/login"><button class="big-button">Login</button></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
<div id="content">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue