Hi there,
I just come across this old post. I solve this problem in a slightly
different way. With all the same *.mobile views ready, I just explicitly
use ".mobile" extension name as my visiting url, such as
http://.../app/controller/action.mobile, therefore I don't need those "if
is_mobile"
Sorry, i sent the message incomplete:
Hi!
I'm using jQueryMobile to make the "mobile skin", and the way that i do
is this:
if is_mobile and request.extension == "html" :
#Its mobile
response.view = "%s/%s.%s" % (request.controller,
request.function, "mobile")
Hi!
I'm using jQueryMobile to make the "mobile skin", and the way that i do
is this:
if is_mobile and request.extension == "html" :
#Its mobile
response.view = "%s/%s.%s" % (request.controller,
request.function, "mobile")
if not os.path.exists(os.path.join(req
Hello!
I need to customize my views so that they look good on a computer screen and
on a smart phone.
One way to do so, It think, is to have separate layout definitions and then
do something like:
{{if session.platform == 'mobile':}}
{{extend 'mobile-layout.html}}
{{else:}}
{{extend 'desktop-l
4 matches
Mail list logo