X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;ds=inline;f=themes%2Fdefault.sh;fp=themes%2Fdefault.sh;h=5b2f1edd55a261ec566e37820c122af0d8a08313;hb=dabd1e749abc0fc1fc446e337c3d2a3e8de22c25;hp=5979f207895e2f9586abd29947902f160a93d0b9;hpb=31c03d0ffe238c627808f0961f76aa7bb45fa08b;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
$(for file in "$_EXEC/pages/$page/#attachments"/* "$_DATA/pages/$page/#attachments"/*; do
[ "$file" = "$_EXEC/pages/$page/#attachments/${file##*/}" \