mail[Wesnoth-commits] r37008 - in /website/stats.wesnoth.org/wesstats: controllers/root.py templates/index.html templates/killview.html


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by cornmander on July 18, 2009 - 19:30:
Author: cornmander
Date: Sat Jul 18 19:30:52 2009
New Revision: 37008

URL: http://svn.gna.org/viewcvs/wesnoth?rev=37008&view=rev
Log:
Minor interface tweak, added Google Maps API key


Modified:
    website/stats.wesnoth.org/wesstats/controllers/root.py
    website/stats.wesnoth.org/wesstats/templates/index.html
    website/stats.wesnoth.org/wesstats/templates/killview.html

Modified: website/stats.wesnoth.org/wesstats/controllers/root.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/website/stats.wesnoth.org/wesstats/controllers/root.py?rev=37008&r1=37007&r2=37008&view=diff
==============================================================================
--- website/stats.wesnoth.org/wesstats/controllers/root.py (original)
+++ website/stats.wesnoth.org/wesstats/controllers/root.py Sat Jul 18 
19:30:52 2009
@@ -37,7 +37,7 @@
        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)

Modified: website/stats.wesnoth.org/wesstats/templates/index.html
URL: 
http://svn.gna.org/viewcvs/wesnoth/website/stats.wesnoth.org/wesstats/templates/index.html?rev=37008&r1=37007&r2=37008&view=diff
==============================================================================
--- website/stats.wesnoth.org/wesstats/templates/index.html (original)
+++ website/stats.wesnoth.org/wesstats/templates/index.html Sat Jul 18 
19:30:52 2009
@@ -38,7 +38,7 @@
        </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>

Modified: website/stats.wesnoth.org/wesstats/templates/killview.html
URL: 
http://svn.gna.org/viewcvs/wesnoth/website/stats.wesnoth.org/wesstats/templates/killview.html?rev=37008&r1=37007&r2=37008&view=diff
==============================================================================
--- website/stats.wesnoth.org/wesstats/templates/killview.html (original)
+++ website/stats.wesnoth.org/wesstats/templates/killview.html Sat Jul 18 
19:30:52 2009
@@ -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>




Related Messages


Powered by MHonArc, Updated Sat Jul 18 19:40:48 2009