X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.sh;h=5b2f1edd55a261ec566e37820c122af0d8a08313;hb=2506cfcd83b7247d669818e3cdf8d34b0b04404a;hp=5979f207895e2f9586abd29947902f160a93d0b9;hpb=fed4d5f078dbbb6c730ddd7ab8c0157afb460fe1;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index 5979f20..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,7 +138,7 @@ theme_search(){ local words="$*" # STDIN: read result pages line by line - theme_page - <<-EOF + theme_page - "$(_ Search results): ${words}" <<-EOF

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

EOF else - theme_page - "$(_ Attachments): $title" <<-EOF + theme_page - "$(_ Attachments): ${PAGE_TITLE:-"${page}"}" <<-EOF