Minor interface tweak, added Google Maps API key

This commit is contained in:
Gregory Shikhman 2009-07-18 17:30:52 +00:00
parent b898862aa9
commit 36a0a967ad
3 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class RootController(BaseController):
def index(self):
conn = MySQLdb.connect(configuration.DB_HOSTNAME,configuration.DB_USERNAME,configuration.DB_PASSWORD,configuration.DB_NAME,use_unicode=True)
curs = conn.cursor()
curs.execute("SELECT title,url FROM _wsviews")
curs.execute("SELECT title,url,type FROM _wsviews")
views = curs.fetchall()
conn.close()
return dict(views=views)

View File

@ -38,7 +38,7 @@ import urllib
</div>
</div>
<div id="main_"> <!--- TODO: remove id tag collision -->
<h3 py:for="view in views"><a href="/wesstats/${urllib.quote(view[1])}">${view[0]}</a></h3>
<h3 py:for="view in views"><a href="/wesstats/${urllib.quote(view[1])}">${view[0]} (${view[2].capitalize()} Graph)</a></h3>
</div>
</body>
</html>

View File

@ -12,6 +12,7 @@
See the COPYING file for more details.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- ABQIAAAAwlLuIjoG2_E7xGXPjpNRyRTY1qbTKsNyhuhE_ljh2mJHrFJMJRQgNuWe_yAXHi-7Ny4aJ3btOcCGnQ //google maps api key for http://cornmander.com -->
<html xmlns:py="http://genshi.edgewall.org/" xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>