#!/bin/bash
echo "
"
# 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 "Log in | Register"
else
echo "Logged in as ${cookies[username]} | Log out | Your feed | Your favourites"
fi
strings[query_nice]="$query_nice"
render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/elements/top.t"