Note, instead of:

XML('<i class="icon icon-user glyphicon glyphicon-user">')

you can do:

I(_class='icon icon-user glyphicon glyphicon-user')

Anthony

On Monday, May 25, 2015 at 3:51:20 AM UTC-4, Dmitry Ermolaev wrote:
>
> auth.navbar(CAT(XML('<i class="icon icon-user glyphicon glyphicon-user
> ">'),T('Welcome') ), mode=...
>
> понедельник, 18 мая 2015 г., 17:47:50 UTC+3 пользователь Carla Raquel 
> написал:
>>
>> How can one add an icon before the 'Welcome' message in the navbar,just 
>> like the one next to the 'Profile' in the drop-down? I tried using 
>> something like <i class="icon icon-user glyphicon glyphicon-user"> in 
>> auth.navbar('Welcome',mode='dropdown'), unfortunately to no avail.
>> Any help would be much appreciated!
>>
>>

-- 
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.

Reply via email to