From 330a3608124dda1f75ea8d25b3c9742b0360bafb Mon Sep 17 00:00:00 2001 From: Vikraman Choudhury Date: Thu, 4 Aug 2011 06:25:16 +0530 Subject: added an about page --- server/about.py | 7 +++++++ server/app.py | 4 +++- server/static/about.html | 34 ++++++++++++++++++++++++++++++++++ server/templates/index.html | 5 +++++ 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 server/about.py create mode 100644 server/static/about.html diff --git a/server/about.py b/server/about.py new file mode 100644 index 0000000..c808341 --- /dev/null +++ b/server/about.py @@ -0,0 +1,7 @@ + +import web + +class About(object): + + def GET(self): + raise web.seeother('/static/about.html') diff --git a/server/app.py b/server/app.py index 0cd4b9b..4f97f30 100755 --- a/server/app.py +++ b/server/app.py @@ -15,6 +15,7 @@ from lang import Lang from package import Package from host import Host from search import Search +from about import About urls = ( r'', 'Index', @@ -33,7 +34,8 @@ urls = ( r'/use', 'Use', r'/host/(.+)', 'Host', r'/host', 'Host', - r'/search', 'Search' + r'/search', 'Search', + r'/about', 'About' ) app = web.application(urls, globals(), autoreload=True) diff --git a/server/static/about.html b/server/static/about.html new file mode 100644 index 0000000..160911b --- /dev/null +++ b/server/static/about.html @@ -0,0 +1,34 @@ + + + + About gentooostats + + +

About

+ The gentoostats webapp renders statistics collected from gentoo + machines.
+

Source code

+ The source code is available at the + + gentoostats repository.
+

Contributing

+ The gentoostats project is currently in alpha testing. Bug reports, feature requests are welcome.
+ To add your stats to gentoostats, do the following. + +

Author

+ Gentoostats is currently being worked upon as a part of Google Summer of Code 2011, by Vikraman Choudhury, mentored by Alec Warner.
+ The project page can be found here. + The author can be reached at vikraman[dot]choudhury[at]gmail[dot]com. + + + diff --git a/server/templates/index.html b/server/templates/index.html index 24f7ea7..a601700 100644 --- a/server/templates/index.html +++ b/server/templates/index.html @@ -22,3 +22,8 @@ Number of hosts: $count
$:form.render()
+ +

Help

+ -- cgit v1.2.3-65-gdbad