mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Add a basic about page.
This commit is contained in:
parent
410144c579
commit
0b916ebbb1
@ -37,6 +37,12 @@ def render(s, **kwargs):
|
||||
@app.route('/index.html')
|
||||
def index():
|
||||
return render("index.html", section="main")
|
||||
j
|
||||
|
||||
@app.route('/about')
|
||||
@app.route('/about.html')
|
||||
def about():
|
||||
return render("about.html", section="about")
|
||||
|
||||
|
||||
@app.route('/docs/pathod')
|
||||
|
24
libpathod/templates/about.html
Normal file
24
libpathod/templates/about.html
Normal file
@ -0,0 +1,24 @@
|
||||
{% extends "frame.html" %}
|
||||
{% block body %}
|
||||
|
||||
<div class="page-header">
|
||||
<h1><a href="http://github.com/cortesi/pathod/">the code</a></h1>
|
||||
</div>
|
||||
|
||||
<h2>git clone git://github.com/cortesi/pathod.git</h2>
|
||||
|
||||
<p>Please use the <a href="http://github.com/cortesi/pathod/issues">github
|
||||
issue tracker</a> to report bugs. </p>
|
||||
|
||||
|
||||
<div class="page-header">
|
||||
<h1><a href="http://corte.si">the author</a></h1>
|
||||
</div>
|
||||
|
||||
<p>pathod is developed by <a href="http://corte.si">Aldo Cortesi</a>. Email me
|
||||
at aldo@corte.si with feedback or suggestions. If you like pathod, you should
|
||||
follow me on <a href="http://twitter.com/cortesi">twitter</a> and <a
|
||||
href="http://corte.si">subscribe to my blog</a>.</p>
|
||||
|
||||
|
||||
{% endblock %}
|
@ -53,6 +53,7 @@
|
||||
<li><a href="/docs/test">libpathod.test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li {% if section== "about" %} class="active" {% endif %}><a href="/about">about</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user