This commit is contained in:
Massimo Di Pierro
2011-11-29 22:29:51 -06:00
parent 70c55768a9
commit fe02b48e5a
8 changed files with 32 additions and 10 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.3 (2011-11-29 09:50:33) dev
Version 1.99.3 (2011-11-29 22:29:36) dev
+1 -1
View File
@@ -8,7 +8,7 @@ response.description = T('web2py Web Framework')
session.forget()
@cache('index')
#@cache('index')
def index():
return response.render()
@@ -15,7 +15,6 @@ ul { list-style: circle outside;}
.announce a { color: white !important;}
input:focus,textarea:focus {background:#f0f0f0!important}
table.downloads { width:100%; }
table.downloads th, table.downloads td {text-align:center;}
table.downloads a.button { width: 150px; }
+5 -1
View File
@@ -50,7 +50,11 @@ html, body {
.footer, .push {
height: 6em;
padding: 1em 0;
clear: both;
clear: both;
}
.footer {
padding-bottom: 100px;
}
.footer-content {position: relative; bottom: -4em; width: 100%;}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 58 KiB

@@ -6,7 +6,8 @@
</center>
<h3>WEB2PY<sup>TM</sup> WEB FRAMEWORK</h3>
<p>Free open source full-stack framework for rapid development of fast, scalable, <a href="http://www.web2py.com/book/default/chapter/01#security" target="_blank">secure</a> and portable database-driven web-based applications. Written and programmable in <a href="http://www.python.org" target="_blank">Python</a>. <a href="http://www.gnu.org/licenses/lgpl.html">LGPLv3 License</a></p>
<p>Free open source full-stack framework for rapid development of fast, scalable, <a href="http://www.web2py.com/book/default/chapter/01#security" target="_blank">secure</a> and portable database-driven web-based applications. Written and programmable in <a href="http://www.python.org" target="_blank">Python</a>. <a href="http://www.gnu.org/licenses/lgpl.html">LGPLv3 License</a>.
Current version: {{="%s.%s.%s (%s) %s" % request.env.web2py_version}}</p>
{{block extra}}
<div class="container">
@@ -46,8 +47,8 @@
<div style="text-align:center">
<a href="http://web2py.com/book"><img src="{{=URL('static','images/tablet.png')}}" alt="Tablet" /></a>
<br/>
<a class="button" href="{{=URL('download')}}">DOWNLOAD NOW<br/>
{{="%s.%s.%s (%s) %s" % request.env.web2py_version}}
</a>
<a class="button" href="{{=URL('download')}}" style="width:90%">DOWNLOAD NOW</a><br/>
<a class="button" href="http://web2py.com/demo_admin" style="width:90%">ONLINE DEMO</a><br/>
<a class="button" href="http://web2py.com/poweredby" style="width:90%">SITES POWERED</a>
</div>
{{end}}
+5 -1
View File
@@ -50,7 +50,11 @@ html, body {
.footer, .push {
height: 6em;
padding: 1em 0;
clear: both;
clear: both;
}
.footer {
padding-bottom: 100px;
}
.footer-content {position: relative; bottom: -4em; width: 100%;}
+15 -1
View File
@@ -179,6 +179,13 @@ class Linux(OS):
def getVersion(self, agent):
pass
class RIM(OS):
look_for = 'BlackBerry'
prefs = dict(dist=[None], flavor=None)
def getVersion(self, agent):
pass
class Macintosh(OS):
look_for = 'Macintosh'
@@ -204,7 +211,7 @@ class MacOS(Flavor):
class Windows(OS):
look_for = 'Windows'
prefs = dict(browser=["Microsoft Internet Explorer", 'Firefox'],
dict=None, flavor=None)
dist=['WindowsMobile'] flavor=None)
def getVersion(self, agent):
v = agent.split('Windows')[-1].split(';')[0].strip()
@@ -237,6 +244,13 @@ class ChromeOS(OS):
vs = self.version_splitters
return agent.split(self.look_for+vs[0])[-1].split(vs[1])[1].strip()[:-1]
class WindowsMobile(Dist):
look_for = 'Windows Phone'
is_mobile = True
def getVersion(self, agent):
return agent.split('Windows Phone')[-1].split(';')[0].strip().split(' ')[-1]
class Android(Dist):
look_for = 'Android'
is_mobile = True