X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.sh;h=5b2f1edd55a261ec566e37820c122af0d8a08313;hb=2506cfcd83b7247d669818e3cdf8d34b0b04404a;hp=23b03f25552b86ba2e6e3fc03a2c46d322e4cbba;hpb=532b6743da019906f2f00575d246823c66ec35fd;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index 23b03f2..5b2f1ed 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -83,12 +83,11 @@ theme_page(){ } theme_editor(){ - local page="$1" template="$2" title file att - title="$(HTML "${PAGE_TITLE:-"${page}"}")" + local page="$1" template="$2" file att [ "$template" ] && acl_read "$template" || template="$page" - theme_page - "Editor: $title" <<-EOF + theme_page - "$(_ Editor): ${PAGE_TITLE:-"${page}"}" <<-EOF @@ -139,11 +138,11 @@ theme_search(){ local words="$*" # STDIN: read result pages line by line - theme_page - <<-EOF + theme_page - "$(_ Search results): ${words}" <<-EOF

$([ "$words" ] && _ "Search results" || _ "Search" )

    $( while read p; do @@ -155,11 +154,10 @@ theme_search(){ } theme_attachments(){ - local page="$1" title - title="${page%/}"; title="${title##*/}" + local page="$1" if acl_write "$page"; then - theme_page - "$(_ Attachments): $title" <<-EOF + theme_page - "$(_ Attachments): ${PAGE_TITLE:-"${page}"}" <<-EOF

    $(_ Upload)

    @@ -204,7 +202,7 @@ theme_attachments(){
    EOF else - theme_page - "$(_ Attachments): $title" <<-EOF + theme_page - "$(_ Attachments): ${PAGE_TITLE:-"${page}"}" <<-EOF