margin-bottom: 1em;
}
+.tab[name=edithelp] ~ .tab.editor textarea,
+.tab[name=edithelp] ~ .tab.syntax,
+.tab[name=edithelp] ~ .tab.attach,
+.tab[name=edithelp] ~ .tab.transl {
+ background-color: #FFF;
+ min-height: 20em; min-height: 50vh;
+}
+
.tab[name=edithelp] ~ .tab.editor textarea {
width: 100%;
- min-height: 20em; min-height: 50vh;
font-family: monospace;
font-size: inherit;
}
-.tab[name=edithelp] ~ .tab.syntax,
-.tab[name=edithelp] ~ .tab.attach {
- background-color: #FFF;
- min-height: 20em; min-height: 50vh;
-}
.tab[name=edithelp] ~ .tab.attach {
padding-top: 1em;
margin-left: -6em;
}
+.tab[name=edithelp] ~ .tab.transl {
+ font-family: monospace;
+ white-space: pre;
+}
+
.tab[name=edithelp]#editor:checked ~ .tab.editor,
.tab[name=edithelp]#syntax:checked ~ .tab.syntax,
-.tab[name=edithelp]#attach:checked ~ .tab.attach {
+.tab[name=edithelp]#attach:checked ~ .tab.attach,
+.tab[name=edithelp]#transl:checked ~ .tab.transl {
display: block;
}
<input checked type=radio class=tab name=edithelp value=edtr id=editor><label for=editor>Editor</label>
<input type=radio class=tab name=edithelp value=help id=syntax><label for=syntax>Syntax</label>
<input type=radio class=tab name=edithelp value=att id=attach><label for=attach>Attachments</label>
+ $([ "$LANGUAGE_DEFAULT" -a "$LANGUAGE_DEFAULT" != "$LANGUAGE" ] && printf '
+ <input type=radio class=tab name=edithelp value=att id=transl><label for=transl>%s</label>
+ ' "$LANGUAGE_DEFAULT"
+ )
<form class="tab editor" method=POST action="$(HTML "${_BASE}${page%/}/[edit]")">
<input type=hidden name=session_key value="${SESSION_KEY}"/>
<textarea name=pagetext>$({ wiki_text "$page" \
esac
done)
</div>
+ $(if [ "$LANGUAGE_DEFAULT" -a "$LANGUAGE_DEFAULT" != "$LANGUAGE" ]; then
+ printf '<div class="tab transl">%s</div>' "$(wiki_text "${page%/:$LANGUAGE/}" |HTML)"
+ fi)
EOF
}