>
>
> Assume I don't know how to put anything in nav bar. Which methods and
> docs do I write to?
>
>
I do something similar by adding this code to a file in the models
directory (i call mine 'menu.py') where you set up response.menu:
if no_action_users:
response.menu += [
(SPAN('%s' % len(no_action_users), _class="badge badge-warning",
_title="Active contacts (`buyer` or `seller` status) without assigned
actions"), False, URL('default', 'notifications')
),
]
if email_cnt:
response.menu += [
(SPAN('%s' % email_cnt, _class="badge badge-important",
_title="Unknown
emails requiring your attention"), False, URL('default', 'notifications')
),
]
The picture attached shows what it looks like (note in the pic only the
email_cnt var has a value so only one 'badge' is shown. Had there been a
value for no_action_users then an orange badge would appear with the number
in it as well).
Hope that helps,
Jose C
--
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.