* header fix
parent
89715c7937
commit
612e6243f9
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
declare -A strings_
|
||||
|
||||
echo "<a href='/'><img src='/img/bashtube.png'></a><br>"
|
||||
|
||||
# TODO: move this to a *real* template
|
||||
|
@ -11,6 +13,10 @@ else
|
|||
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
|
||||
|
||||
strings[query_nice]="$query_nice"
|
||||
if [[ "$query_nice" != '' ]]; then
|
||||
strings_[query_nice]="$query_nice"
|
||||
else
|
||||
strings_[query_nice]=''
|
||||
fi
|
||||
|
||||
render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/elements/top.t"
|
||||
render strings_ "${cfg[namespace]}/templates/themes/${cfg[template]}/elements/top.t"
|
||||
|
|
Loading…
Reference in New Issue