From 1d48cd4220137f6c036d89744bafbd328a2e5362 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 25 Jul 2018 02:42:21 +0200 Subject: [PATCH] display either tagging or indexer --- list.sh | 3 +-- widgets.sh | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) 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(){ -- 2.39.2