1 |
commit: 330a3608124dda1f75ea8d25b3c9742b0360bafb |
2 |
Author: Vikraman Choudhury <vikraman.choudhury <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Aug 4 00:55:16 2011 +0000 |
4 |
Commit: Vikraman Choudhury <vikraman.choudhury <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Aug 4 00:55:16 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoostats.git;a=commit;h=330a3608 |
7 |
|
8 |
added an about page |
9 |
|
10 |
--- |
11 |
server/about.py | 7 +++++++ |
12 |
server/app.py | 4 +++- |
13 |
server/static/about.html | 34 ++++++++++++++++++++++++++++++++++ |
14 |
server/templates/index.html | 5 +++++ |
15 |
4 files changed, 49 insertions(+), 1 deletions(-) |
16 |
|
17 |
diff --git a/server/about.py b/server/about.py |
18 |
new file mode 100644 |
19 |
index 0000000..c808341 |
20 |
--- /dev/null |
21 |
+++ b/server/about.py |
22 |
@@ -0,0 +1,7 @@ |
23 |
+ |
24 |
+import web |
25 |
+ |
26 |
+class About(object): |
27 |
+ |
28 |
+ def GET(self): |
29 |
+ raise web.seeother('/static/about.html') |
30 |
|
31 |
diff --git a/server/app.py b/server/app.py |
32 |
index 0cd4b9b..4f97f30 100755 |
33 |
--- a/server/app.py |
34 |
+++ b/server/app.py |
35 |
@@ -15,6 +15,7 @@ from lang import Lang |
36 |
from package import Package |
37 |
from host import Host |
38 |
from search import Search |
39 |
+from about import About |
40 |
|
41 |
urls = ( |
42 |
r'', 'Index', |
43 |
@@ -33,7 +34,8 @@ urls = ( |
44 |
r'/use', 'Use', |
45 |
r'/host/(.+)', 'Host', |
46 |
r'/host', 'Host', |
47 |
- r'/search', 'Search' |
48 |
+ r'/search', 'Search', |
49 |
+ r'/about', 'About' |
50 |
) |
51 |
|
52 |
app = web.application(urls, globals(), autoreload=True) |
53 |
|
54 |
diff --git a/server/static/about.html b/server/static/about.html |
55 |
new file mode 100644 |
56 |
index 0000000..160911b |
57 |
--- /dev/null |
58 |
+++ b/server/static/about.html |
59 |
@@ -0,0 +1,34 @@ |
60 |
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
61 |
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
62 |
+<html xmlns="http://www.w3.org/1999/xhtml"> |
63 |
+ <head> |
64 |
+ <title>About gentooostats</title> |
65 |
+ </head> |
66 |
+ <body> |
67 |
+ <h2>About</h2> |
68 |
+ The gentoostats webapp renders statistics collected from gentoo |
69 |
+ machines.</br> |
70 |
+ <h2>Source code</h2> |
71 |
+ The source code is available at the |
72 |
+ <a href="http://git.overlays.gentoo.org/gitweb/?p=proj/gentoostats.git;a=summary"> |
73 |
+ gentoostats repository</a>.</br> |
74 |
+ <h2>Contributing</h2> |
75 |
+ The gentoostats project is currently in alpha testing. Bug reports, feature requests are welcome.</br> |
76 |
+ To add your stats to gentoostats, do the following. |
77 |
+ <ul> |
78 |
+ <li>Add the betagarden overlay to layman.</br> |
79 |
+ <p><code>layman -a betagarden</code></p></li> |
80 |
+ <li>Emerge gentoostats.</br> |
81 |
+ <p><code>emerge -av gentoostats</code></p></li> |
82 |
+ <li>Enable/disable type of stats submitted (optional).</br> |
83 |
+ <p><code>$EDITOR /etc/gentoostats/payload.cfg</code></p></li> |
84 |
+ <li>Submit your stats.</br> |
85 |
+ <p><code>gentoostats-send</code></p></li> |
86 |
+ </ul> |
87 |
+ <h2>Author</h2> |
88 |
+ Gentoostats is currently being worked upon as a part of Google Summer of Code 2011, by Vikraman Choudhury, mentored by Alec Warner.</br> |
89 |
+ The project page can be found <a href="http://www.google-melange.com/gsoc/project/google/gsoc2011/vh4x0r/26001">here</a>. |
90 |
+ The author can be reached at vikraman[dot]choudhury[at]gmail[dot]com. |
91 |
+ </body> |
92 |
+</html> |
93 |
+ |
94 |
|
95 |
diff --git a/server/templates/index.html b/server/templates/index.html |
96 |
index 24f7ea7..a601700 100644 |
97 |
--- a/server/templates/index.html |
98 |
+++ b/server/templates/index.html |
99 |
@@ -22,3 +22,8 @@ Number of hosts: $count<br/> |
100 |
<form method="GET" action="/gentoostats/search"> |
101 |
$:form.render() |
102 |
</form> |
103 |
+ |
104 |
+<h2>Help</h2> |
105 |
+<ul> |
106 |
+ <li>About: <a href="about">/about</a></li> |
107 |
+</ul> |