move template
This commit is contained in:
57
flaskapp/templates/index.html
Normal file
57
flaskapp/templates/index.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{title}}</title>
|
||||
<script src="static/jquery-3.2.0.min.js" ></script>
|
||||
<link rel="stylesheet" href="static/bootstrap/css/bootstrap.min.css"/>
|
||||
<script src="static/bootstrap/js/bootstrap.min.js" ></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h1>{{title}}</h1>
|
||||
{% if vers == 1 %}
|
||||
<ul>
|
||||
{% for k in keys %}
|
||||
<li>
|
||||
|
||||
<a href="{{k}}">{{k}}</a>
|
||||
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% if vers == 2 %}
|
||||
<ul class="list-unstyled">
|
||||
{% for k in keys %}
|
||||
<li>
|
||||
{% if "cmd" in cmds[k] %}
|
||||
<a href="{{k}}">
|
||||
{% endif %}
|
||||
<h5>
|
||||
{% if "title" in cmds[k] %} {{cmds[k]["title"] }} {% else %} {{k}} {% endif %}
|
||||
</h5>
|
||||
{% if "desc" in cmds[k] %}
|
||||
<p>
|
||||
{{ cmds[k].desc }}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if "cmd" in cmds[k] %}
|
||||
<pre>{{ cmds[k].cmd }}</pre>
|
||||
{% else %}
|
||||
{% if "subcmds" in cmds[k] %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endif %}
|
||||
|
||||
<div style="white-space: pre-wrap;font:Courier, monospace; font-size:small; width:50em;background:#DDF">{{out.decode('utf-8')}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
Reference in New Issue
Block a user