X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;ds=inline;f=themes%2Fdefault.sh;h=de357871bd49695f9a2b01efc81c1f12178b2628;hb=9684cabf3651df8369d71c7a60e9235730dbe978;hp=541f71361ae5e24a1f4b09f61d91172c4dff5b35;hpb=01767994524bd3fab0e1680403bde4240732449d;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index 541f713..de35787 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,29 +69,53 @@ 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) +