Hey Lee, rather than actually testing for the level of a comment in the thread, could you just style the css such that the first level of nesting is indented and the rest isn't? Technically it would still be indented, but from the users perspective this wouldn't be visible.
On Tue, Aug 19, 2014 at 9:20 PM, Lee H. <[email protected]> wrote: > Hi, > > The desired behaviour I am looking for is that when a user replies to a > top-level comment, their child comment is slightly indented. However if > another user then replies to this child comment, their comment stays at the > same indentation level. > > I know there must exist a way to do this editing > `generic/includes/{comment,comments}.html`, but I haven't managed to quite > find it yet. > > So far I wrapped I achieved infinite level commenting by doing things like > wrapping <ul>, <li>, e.g. "<ul>{% comment_thread object_for_comments > %}</ul>" in comments.html, but I don't know how to limit the indentation to > just two-levels. > > Is there a way I can test what level a comment is in the thread? > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine 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. > -- You received this message because you are subscribed to the Google Groups "Mezzanine 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.
