]> git.plutz.net Git - lobster/commitdiff
filter pages accessible in bookmarker
authorpaul <paul@plutz.net>
Mon, 9 Apr 2018 05:58:58 +0000 (05:58 +0000)
committerpaul <paul@plutz.net>
Mon, 9 Apr 2018 05:58:58 +0000 (05:58 +0000)
svn path=/trunk/; revision=161

templates/frame.html.sh

index 90e0e32d76f4b37cebc19ecef93ff95d2d05d001..a2d8feefe579e5bd95222de7089247fcce26f78a 100755 (executable)
@@ -44,8 +44,8 @@ cat <<EOF
         $(for page in "${_EXEC}/pages/"*.sh; do
           page="${page##*/}"
           page="${page%.sh}"
-          printf '<a href="?p=%s">%s</a>' "${page}" "$(l10n "p_${page}")"
-        done)
+          printf '<a href="?p=%s">%s</a>\n' "${page}" "$(l10n "p_${page}")"
+        done |grep -E '^<a href="\?p='"${page_filter}" )
         $(if grep -qF "$REQUEST_URI" "$bmfile"; then
           printf '<input type="hidden" name="bm_url" value="%s" />
                   <input type="text" name="bm_name" value="%s" readonly="readonly" /