Doing a double migration to web2py 2.9.5 and bootstrap. I'm trying to get
glyphicons to work with buttons but icons not showing at all. For example:
my layout.html file has:
response.files.insert(0,URL('static','css/web2py.css'))
response.files.insert(1,URL('static','css/bootstrap.min.css'))
response.files.insert(2,URL('static','css/bootstrap-responsive.min.css'))
in the header section and
<script src="{{=URL('static','js/bootstrap.min.js')}}"></script>
<script src="{{=URL('static','js/web2py_bootstrap.js')}}"></script>
just before the end of the body.
My view, which includes layout.html, has:
{{=
TAG.BUTTON(
SPAN('test', _class='glyphicon glyphicon-th'),
_id='my-btn',
_type='button',
_class='btn btn-default btn-lg',
_title=current.T('test'),
)
}}
I get a bootstrap-like button with the label "test" on it but no glyphicon.
I looked in the css/bootstrap.min.css as well as the
css/web2py_bootstrap.css. the bootstrap.min.css refers to the
../img/glypicons-halflings.png while the web2py_bootstrap.css refers to the
../images/glyphicons-halflings.png files.
Why is one in ../img and the other in ../images? Seems unnecessarily
complex, considering they are the same file. Regardless, I made sure both
folders and files exist, but no joy.
Anybody got any ideas what's going on? Chrome browser debug console shows
no errors. I've broken my pick on this long enough ... need some help
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.