]> git.plutz.net Git - confetti/blob - templates/frame.html.sh
replace dbus-uuidgen by /dev/urandom based solution
[confetti] / templates / frame.html.sh
1 # Copyright 2014 Paul Hänsch
2 #
3 # This file is part of Confetti.
4
5 # Confetti is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Confetti is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19 <!Doctype HTML>
20
21 <html>
22   <head>
23     <title>$($PAGE title)</title>
24     <style type="text/css">
25     <!--
26 body {
27   background: #EEE;
28   margin: 0;
29   padding: 0;
30 }
31 .NAVIGATION {
32   display: inline-block;
33   height: 1.5em;
34   border-style: none solid solid solid;
35   border-width: 0 1px 1px 1px;
36   border-radius: 0 0 4px 4px;
37   margin-top: 0;
38   margin-left: 3%;
39   padding: .5em 1ex .25em 1ex;
40   background: #FFF;
41 }
42 .NAVIGATION a {
43   color: #008;
44   border-style: solid;
45   border-width: 1px;
46   border-color: #BBF;
47   margin: .5em .5ex .25em .5ex;
48   padding: .2em 3ex .2em 3ex;
49   background: #EFF;
50 }
51 .NAVIGATION a:hover {
52   border-width: 2px 1px 2px 1px;
53   background: #F3FFFF;
54 }
55
56
57     $(. $PAGE css)
58     -->
59     </style>
60   </head>
61   <body>
62     <div class="NAVIGATION">
63       $(NAVIGATION |sed -r 's:^([^ ]+) (.+)$:<a href="\1">\2</a>:g')
64     </div>
65     <div class="MAIN">
66       $(. $PAGE body)
67     </div>
68   </body>
69 </html>
70 EOF
71
72 # vi:set filetype=html: