you can try to use markmin in T for styling. You need to write:
T.M('*%s* %%{result} %%{found}', symbols=num_offers)
29.04.14 21:28, Louis Amon написав(ла):
I'm trying to print something like that in my view :
*31* results found
(notice the bold number)
I used the pluralization engine like this:
T('%s %%{result} %%{found}', symbols=num_offers)
And it gives the right string but obviously not styled.
Other attempts:
T(XML('<strong>%s</strong>)' + ' %%{result} %%{found}',
symbols=num_offers)
T(STRONG('%s')+' %%{result} %%{found}', symbols=num_offers)
STRONG(num_offers) + T(' %%{result} %%{found}', symbols=num_offers)
None of these are working for me.
What's the right way to do this ?
--
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 web2py+unsubscr...@googlegroups.com
<mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.