_single_thread.html 1.16 KB
Newer Older
Rocky Duan committed
1
<%namespace name="renderer" file="_content_renderer.html"/>
2
<%! from django_comment_client.mustache_helpers import url_for_user %>
3

Matthew Mongeau committed
4 5 6 7 8 9 10 11
<article class="discussion-article" data-id="${discussion_id| h}">
  <a href="#" class="dogear"></a>
  <div class="discussion-post">
    <header>
        <a href="#" class="vote-btn discussion-vote discussion-vote-up"><span class="plus-icon">+</span> <span class='votes-count-number'>${thread['votes']['up_count']}</span></a>
      <h1>${thread['title']}</h1>
      <p class="posted-details">
        <span class="timeago" title="${thread['created_at'] | h}">sometime</span> by
12
        <a href="${url_for_user(thread, thread['user_id'])}">${thread['username']}</a>
Matthew Mongeau committed
13 14 15 16 17
      </p>
    </header>
    <div class="post-body">
      ${thread['body']}
    </div>
Rocky Duan committed
18
  </div>
Matthew Mongeau committed
19 20 21 22 23 24
  <ol class="responses">
    % for reply in thread.get("children", []):
    <li>
      <div class="response-body">${reply['body']}</div>
      <ol class="comments">
        % for comment in reply.get("children", []):
25
        <li><div class="comment-body">${comment['body']}</div></li>
Matthew Mongeau committed
26 27 28 29 30 31
        % endfor
      </ol>
    </li>
    % endfor
  </ol>
</article>
32

33
<%include file="_js_data.html" />