From: Paul Hänsch Date: Wed, 25 Jul 2018 00:42:21 +0000 (+0200) Subject: display either tagging or indexer X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=1d48cd4220137f6c036d89744bafbd328a2e5362;p=serve0 display either tagging or indexer --- diff --git a/list.sh b/list.sh index 55fe331..71f70f9 100644 --- a/list.sh +++ b/list.sh @@ -193,8 +193,7 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n' printf ' [div #editing [a href="#multitag" Add Tags]' - w_tagging - w_index + w_index || w_tagging printf ' ] ] diff --git a/widgets.sh b/widgets.sh index 4508475..446b5d2 100644 --- a/widgets.sh +++ b/widgets.sh @@ -147,7 +147,7 @@ w_prefs(){ } w_index(){ - [ -d "$_DATA/$ITEM/.index" ] || printf ' + [ -d "$_DATA/$ITEM/.index" ] && return 1 || printf ' [form #index method="POST" action="?a=spawnindex" [hidden "ref" "%s"] [label Set up for Index view: ] @@ -155,6 +155,7 @@ w_index(){ [submit "spawn" "spawn" Set up] ] ' "$w_refuri" + return 0 } w_advsearch(){