aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/templates/index.html
blob: 5f2c6d5e032ec69ba43102d3668f8a868adb3bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>mitmproxy</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/static/vendor.css"/>
    <link rel="stylesheet" href="/static/app.css"/>
    <script src="/static/vendor.js"></script>
    <script src="/static/app.js"></script>
</head>
<body>
</body>
</html>
inst = master(opts) for key, option in optmanager.dump_dicts(opts).items(): if key in unified_options: unified_options[key]['tools'].append(tool_name) else: unified_options[key] = option unified_options[key]['tools'] = [tool_name] print(""" <table class=\"table optiontable\"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> """.strip()) for key, option in sorted(unified_options.items(), key=lambda t: t[0]): print(""" <tr> <th>{}<br/>{}</th> <td>{}</td> <td>{}<br/> Default: {} {} </td> </tr> """.strip().format( key, ' '.join(["<span class='badge'>{}</span>".format(t) for t in option['tools']]), option['type'], option['help'], option['default'], "<br/>Choices: {}".format(', '.join(option['choices'])) if option['choices'] else "", )) print("</tbody></table>")