From 3a7ac51a0018afbd5e6c8cf1def2799d013e17cb Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Fri, 12 Jan 2018 17:28:56 -0500 Subject: [PATCH] html template to render qute://bindings --- qutebrowser/html/bindings.html | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 qutebrowser/html/bindings.html diff --git a/qutebrowser/html/bindings.html b/qutebrowser/html/bindings.html new file mode 100644 index 000000000..29c3f1883 --- /dev/null +++ b/qutebrowser/html/bindings.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} + +{% block style %} +html { margin:20px; } +table { width:100%; border: 1px solid grey; border-collapse: collapse; margin:10px; } +tr,td,p { margin:0; padding: 1px; } +th, td { border: 1px solid grey; } +th { background: lightgrey; } +th pre { color: grey; text-align: left; } +.key { width: 25%; } +.command { width: 75% } +{% endblock %} + +{% block content %} +

{{ title }}

+{% for mode, binding in bindings.items() %} +

Mode = {{ mode }}

+ + + + + + {% for key,command in binding.items() %} + + + + + {% endfor %} +
KeyCommand
+

{{ key }}

+
+

{{ command }}

+
+{% endfor %} + +{% endblock %}