On 8/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Folks,
>
> I'd really love to be able to do something like this:
> {% if videoObject.rating > 0 %}*{% endif %}
> {% if videoObject.rating > 1 %}*{% endif %}
> {% if videoObject.rating > 2 %}*{% endif %}
>
> To display an appropriate number of stars for a video clip in a
> template.

Hi Mae,

The widthratio tag may be helpful:

http://www.djangoproject.com/documentation/templates/#widthratio

Alan.

-- 
Alan Green
[EMAIL PROTECTED] - http://bright-green.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to