mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 10:50:42 +00:00
Minor interface tweak, added Google Maps API key
This commit is contained in:
parent
b898862aa9
commit
36a0a967ad
@ -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)
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user