diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-25 11:55:44 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-25 11:55:44 +1200 |
commit | 0b916ebbb1c72a51a54d6cc7ba565ddce5ce419e (patch) | |
tree | f5d037a81fa35e0e97d63c7577cd3976a7197fdd | |
parent | 410144c579bcb7abfc5efd0e3a2ed6a75a4bd61c (diff) | |
download | mitmproxy-0b916ebbb1c72a51a54d6cc7ba565ddce5ce419e.tar.gz mitmproxy-0b916ebbb1c72a51a54d6cc7ba565ddce5ce419e.tar.bz2 mitmproxy-0b916ebbb1c72a51a54d6cc7ba565ddce5ce419e.zip |
Add a basic about page.
-rw-r--r-- | libpathod/app.py | 6 | ||||
-rw-r--r-- | libpathod/templates/about.html | 24 | ||||
-rw-r--r-- | libpathod/templates/frame.html | 1 |
3 files changed, 31 insertions, 0 deletions
diff --git a/libpathod/app.py b/libpathod/app.py index e93a898f..0b123e94 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -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') diff --git a/libpathod/templates/about.html b/libpathod/templates/about.html new file mode 100644 index 00000000..d440c437 --- /dev/null +++ b/libpathod/templates/about.html @@ -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 %} diff --git a/libpathod/templates/frame.html b/libpathod/templates/frame.html index d91004e4..9f6c3574 100644 --- a/libpathod/templates/frame.html +++ b/libpathod/templates/frame.html @@ -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> |