Skip to content

Commit

Permalink
Adding a page footer with a copyright notice and an about page link. …
Browse files Browse the repository at this point in the history
…Koala image is care of Marie Knox <mlknox@hotmail.com>.
  • Loading branch information
coderanger committed Feb 17, 2010
1 parent 4ff6774 commit 192d8cb
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
Binary file added nomic/htdocs/img/koala.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions nomic/htdocs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ ul#userbar li.activelink a,ul#userbar li.activelink a:hover{background: #FFF;col

ul { padding: 0; margin: 0;}
li { list-style-type: none;}

#footer {
font-size: 50%;
clear: both;
text-align: center;
}
10 changes: 9 additions & 1 deletion nomic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ def get(self):
self.response.out.write(env.get_template('index.html').render(locals()))


class AboutHandler(webapp.RequestHandler):

def get(self):
user, user_admin, user_url = _user(self)
self.response.out.write(env.get_template('about.html').render(locals()))


routes = [
('/', MainHandler),
('/browser(?:/(.*))?', BrowserHandler),
('/proposal/create', CreateProposalHandler),
('/proposal/(\d*)', ViewProposalHandler),
('/proposal/(\d+)', ViewProposalHandler),
('/proposal(?:/)?', ListProposalHandler),
('/about', AboutHandler),
]
17 changes: 17 additions & 0 deletions nomic/templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% extends "base.html" %}

{% block css %}
<style type="text/css">
#koala {
float: right;
width: 200px;
}
</style>
{% endblock %}

{% block content %}
<div>
<img id="koala" src="/htdocs/img/koala.png" alt="A koala" />
This is a placeholder for information about what PyNomic is.
</div>
{% endblock %}

0 comments on commit 192d8cb

Please sign in to comment.