diff options
author | 2011-08-04 06:25:16 +0530 | |
---|---|---|
committer | 2011-08-04 06:25:16 +0530 | |
commit | 330a3608124dda1f75ea8d25b3c9742b0360bafb (patch) | |
tree | c3a864d2fdee09ebedfe22691adbff3e0acaadf1 | |
parent | updates to index page, trying out relative urls (diff) | |
download | gentoostats-330a3608124dda1f75ea8d25b3c9742b0360bafb.tar.gz gentoostats-330a3608124dda1f75ea8d25b3c9742b0360bafb.tar.bz2 gentoostats-330a3608124dda1f75ea8d25b3c9742b0360bafb.zip |
added an about page
-rw-r--r-- | server/about.py | 7 | ||||
-rwxr-xr-x | server/app.py | 4 | ||||
-rw-r--r-- | server/static/about.html | 34 | ||||
-rw-r--r-- | server/templates/index.html | 5 |
4 files changed, 49 insertions, 1 deletions
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 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>About gentooostats</title> + </head> + <body> + <h2>About</h2> + The gentoostats webapp renders statistics collected from gentoo + machines.</br> + <h2>Source code</h2> + The source code is available at the + <a href="http://git.overlays.gentoo.org/gitweb/?p=proj/gentoostats.git;a=summary"> + gentoostats repository</a>.</br> + <h2>Contributing</h2> + The gentoostats project is currently in alpha testing. Bug reports, feature requests are welcome.</br> + To add your stats to gentoostats, do the following. + <ul> + <li>Add the betagarden overlay to layman.</br> + <p><code>layman -a betagarden</code></p></li> + <li>Emerge gentoostats.</br> + <p><code>emerge -av gentoostats</code></p></li> + <li>Enable/disable type of stats submitted (optional).</br> + <p><code>$EDITOR /etc/gentoostats/payload.cfg</code></p></li> + <li>Submit your stats.</br> + <p><code>gentoostats-send</code></p></li> + </ul> + <h2>Author</h2> + Gentoostats is currently being worked upon as a part of Google Summer of Code 2011, by Vikraman Choudhury, mentored by Alec Warner.</br> + The project page can be found <a href="http://www.google-melange.com/gsoc/project/google/gsoc2011/vh4x0r/26001">here</a>. + The author can be reached at vikraman[dot]choudhury[at]gmail[dot]com. + </body> +</html> + 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<br/> <form method="GET" action="/gentoostats/search"> $:form.render() </form> + +<h2>Help</h2> +<ul> + <li>About: <a href="about">/about</a></li> +</ul> |