X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.sh;h=3c5a87fcb57a1ce56a0f4061070a1f8ab4e9bc2e;hb=2ad6da3df5555069e13d2c5c6f39b5d3a4d8071d;hp=541f71361ae5e24a1f4b09f61d91172c4dff5b35;hpb=1addbd404bc8cd6f869e9e1df19cc83081fa7bc2;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index 541f713..3c5a87f 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -25,16 +25,17 @@ theme_pagemenu(){ local page="$1" if acl_write "$page"; then - printf ' -
' + cat <<-EOF + + EOF fi } @@ -68,50 +69,74 @@ theme_page(){ } theme_editor(){ - local page="$1" template="$2" title - title="${page%/}"; title="${title##*/}" + local page="$1" template="$2" title file att + title="$(HTML "${PAGE_TITLE:-"${page}"}")" [ "$template" ] && acl_read "$template" || template="$page" theme_page - "Editor: $title" <<-EOF - +![](%s)
[%s](%s)
' "$att" "$att" + ;; + esac + done) +