18l-fix
Dominika Liberda 2021-03-02 01:09:31 +01:00
parent dc016e361e
commit 52cede46fa
2 changed files with 3 additions and 1 deletions

View File

@ -1,12 +1,14 @@
#!/bin/bash
echo "<a href='/'><img src='/img/bashtube.png'></a><br>"
# TODO: move this to a *real* template
# we'll need to figure out conditional templates first tho
if ! session_verify "${cookies[sh_session]}"; then
echo "<a href='/login.shs'</a>Log in</a> | <a href='/register.shs'>Register</a>"
else
echo "Logged in as ${cookies[username]} | <a href='/logout.shs'>Log out</a> | <a href='/'>Main</a> | <a href='/feed.shs'>Your feed</a> | <a href='/fav.shs'>Your favourites</a>"
echo "Logged in as ${cookies[username]} | <a href='/logout.shs'>Log out</a> | <a href='/feed.shs'>Your feed</a> | <a href='/fav.shs'>Your favourites</a>"
fi
render _ "${cfg[namespace]}/templates/themes/${cfg[template]}/elements/top.t"

BIN
webroot/img/bashtube.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB