<%namespace name="renderer" file="_content_renderer.html"/>

<section class="discussion forum-discussion" _id="${discussion_id | h}">

  <div class="discussion-non-content local">
    <div class="search-wrapper">
      <%include file="_search_bar.html" />
    </div>    
  </div>
  % if len(threads) == 0:
    <div class="blank">
      <%include file="_blank_slate.html" />
    </div>
    <div class="threads"></div>
  % else:
    <%include file="_sort.html" />
    <div class="threads">
      % for thread in threads:
        ${renderer.render_content_with_comments(thread)}
      % endfor
    </div>
    <%include file="_paginator.html" />
  % endif
</section>

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