nkulmati wrote:
> So here's a task which I do not yet know how to solve with django.
>
> When users post comments and wish to include a quote of another user,
> I would like them to use:
>
>> quoted phrase 1
>
> reply to phrase 1
>
>> quoted phrase 2
>
> reply to phase 2
>
> (similar to an e-mail conversation)
>
> No HTML allowed in the comments, of course. Then how would I go about
> selecting quoted text with a different color? I.e. whenever there is
> an expression "> quoted phrase", I want to wrap in, let's say:
>
> <p style="color:magenta;"> > quoted phrase </p>
> <p>reply to phrase</p>
>
> Another problem is distinguishing where the quote ends and the reply
> starts.
>
> What solution would you recommend? If you implemented this concept in
> a different way, what was it?
I use Markdown to markup comments. By default it wraps quotes in
`<blockquote></blockquote>` tag. You may use CSS to give it another
color etc.
{% load markup %}
…
{{ comment.comment|markdown|fix_ampersands }}
See http://docs.djangoproject.com/en/dev/ref/contrib/#ref-contrib-markup
--
Happy Hacking.
http://sphinx.net.ru
む
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---