index: only use common stylesheet
[sheet.git] / mutt.plp
1 <(common.inc.plp)><:
2         our $VERSION = 'v1.0';
3
4         use Shiar_Sheet::KeySigns qw(%sign);
5
6         $header{content_type} = "text/html; charset=$sign{charset}";
7
8 :><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
9  "http://www.w3.org/TR/html4/loose.dtd">
10 <html>
11
12 <head>
13 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
14 <title>mutt cheat sheet</title>
15 <:= stylesheet(qw'light dark circus mono red terse') :>
16 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
17 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
18         our $showkeys = exists $get{keys} && $get{keys} ne '0';
19         print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
20                 unless $showkeys;
21         print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
22                 if $showkeys and $get{keys} eq 'ghost';
23 :>
24 <script type="text/javascript" src="/keys.js"></script>
25
26 <body id="mutt">
27
28 <h1>Mutt cheat sheet</h1>
29
30 <h2>index (default)</h2>
31
32 <ul id="rows">
33
34 <li class="row">
35         <ul class="keys omni">
36         <li class="me chr27" onclick="setmode()"><b>Esc</b> +
37                 <!-- not as static anymore, but never bothered; just see ^[ -->
38         </ul>
39 </li>
40
41 <:
42 use Shiar_Sheet::Keyboard;
43 my $keys = Shiar_Sheet::Keyboard->new({do 'mutt.inc.pl'});
44 $keys->map($get{map}) or undef $get{map};
45 $keys->print_rows($get{rows});
46 :>
47 </ul>
48
49 <hr>
50
51 <div class="help">
52         <div class="left">
53                 <dl class="legend legend-types">
54                 <dt class="ci">aside
55                         <dd>Temporarily display something without changing state.
56                 <dt class="pm">select
57                         <dd>Scroll list and/or select a different line.
58                 <dt class="po">search
59                         <dd>Go to a specific message entry.
60                 <dt class="co">edit
61                         <dd>Modify message flags or contents.
62                 <dt class="mi">command
63                         <dd>Any other action which does not alter an existing message.
64                 <dt class="mo">send
65                         <dd>Prepare and/or send a (new) message.
66                 <dt class="mv">leave
67                         <dd>Exit the opened folder.
68                 <dt class="me">display
69                         <dd>Permanently alter/toggle current view.
70                 </dl>
71         </div>
72
73         <div class="right">
74                 <dl class="legend legend-options">
75                 <dt>key<:= $sign{arg} :>
76                         <dd>Commands with a dot need an argument afterwards.
77                 </dl>
78
79                 <ul class="legend legend-set">
80                 <li>keyboard <strong>map</strong> is
81                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
82                 <li><strong>ascii</strong> mode is
83                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
84                                 $sign{-ascii} ? 'on' : 'off' :></em>
85                 <li><strong>keys</strong> are
86                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
87                                 !exists $get{keys} && ' by default' :>
88                 <li>default <strong>style</strong> is
89                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
90                 </ul>
91         </div>
92 </div>
93
94 <p class="footer">
95         <a href="/" rel="home">sheet.shiar.nl</a>/mutt.<a href="/source/mutt.plp"
96          rel="code" title="Written in Perl">plp</a>
97         <a href="http://git.shiar.nl/sheet.git/history/HEAD:/mutt.plp"
98          rel="vcs-git" title="Git repository"><:= $VERSION :></a>
99         created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
100         <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
101          title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>
102 </p>
103
104 </html>