keys: common generation of flags legend from includes
[sheet.git] / mutt.plp
index 40959656e4bd8cdd79507f0e0664cdcee5047894..62c2fc11451dc0a1ae04149a44d3fb67dbffeb66 100644 (file)
--- a/mutt.plp
+++ b/mutt.plp
@@ -33,31 +33,11 @@ $keys->print_rows($get{rows});
 
 <div class="help">
        <div class="left">
-               <dl class="legend legend-types">
-               <dt class="ci">aside
-                       <dd>Temporarily display something without changing state.
-               <dt class="pm">select
-                       <dd>Scroll list and/or select a different line.
-               <dt class="po">search
-                       <dd>Go to a specific message entry.
-               <dt class="co">edit
-                       <dd>Modify message flags or contents.
-               <dt class="mi">command
-                       <dd>Any other action which does not alter an existing message.
-               <dt class="mo">send
-                       <dd>Prepare and/or send a (new) message.
-               <dt class="mv">leave
-                       <dd>Exit the opened folder.
-               <dt class="me">display
-                       <dd>Permanently alter/toggle current view.
-               </dl>
+<: $keys->print_legend('legend-types', [qw( ci pm po co mi mo mv me )]) :>
        </div>
 
        <div class="right">
-               <dl class="legend legend-options">
-               <dt>key<:= $sign{arg} :>
-                       <dd>Commands with a dot need an argument afterwards.
-               </dl>
+<: $keys->print_legend('legend-options', [qw( arg )]) :>
 
                <ul class="legend legend-set">
                <li>keyboard <strong>map</strong> is