X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fframe.html.sh;h=4c6cb1dcd2663049672f8d784b97c44e1995c4a4;hb=bdf05fd0cb8f4c79152adbba9070213bc3087193;hp=bac287180270d0f05c00f5dc531c3794fd908676;hpb=a8c6f8b510bb4747798c4f576162733d982bae75;p=confetti
diff --git a/templates/frame.html.sh b/templates/frame.html.sh
index bac2871..4c6cb1d 100755
--- a/templates/frame.html.sh
+++ b/templates/frame.html.sh
@@ -1,26 +1,83 @@
+#!/bin/zsh
+
+# Copyright 2014, 2015 Paul Hänsch
+#
+# This file is part of Confetti.
+#
+# Confetti is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Confetti is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Confetti. If not, see .
+
+. "${_EXEC}/templates/text_frame.sh"
+[ -x "${_EXEC}/templates/text_${PAGE}.sh" ] && . "${_EXEC}/templates/text_${PAGE}.sh"
+
cat <
- $($PAGE title)
+ $(l10n p_${PAGE})
+
-
+
- $(NAVIGATION |sed -r 's:^([^ ]+) (.+)$:\2:g')
+ $(debug NAVIGATION = "$NAVIGATION"; for each in ${NAVIGATION}; do printf %s "$(l10n "p_${each}")"; done)