nntp-view.adp

Delivered as text/html

Related Files

[ hide source ] | [ make this the default ]

File Contents

<master>
  <property name="&doc">doc</property>
  <property name="context">@context;literal@</property>

<h1>@doc.title@</h1>

<div class="list-group">
  <multiple name="articles">
  <a href="@nntp_group@?thread_id=@articles.article_id@#@articles.last_contrib@" class="list-group-item list-group-item-action">
    <div id="@articles.article_id@" class="d-flex w-100 justify-content-between">
      <div><h5 class="mb-1" title="@articles.body@">@articles.subject@</h5>
        <large>Posted by @articles.from@ <span title="@articles.date@">@articles.pretty_posted_date@</span></large>
      </div>
      <div>
        Last contribution <span title="@articles.last_modified@">@articles.pretty_last_modified@</span>
        </if>
        <span title="Number of Replies" class="m-2 badge bg-primary rounded-pill">@articles.nr_replies@</span>
      </div>
    </div>
    <if @articles.nr_replies@ gt 0>
      Replies:
      <ul class="list-group small">
      <multiple name="replies">
        <if @articles.article_id@ eq @replies.article_id@>
           <li class="list-group-item d-flex justify-content-between align-items-center"><div>@replies.from@ replied
             <span title="@replies.date@">@replies.pretty_date@</span></div>
           </li>
         </if>
      </multiple>
      </ul>
    </if>
    <p style="display: none" class="mb-1"><pre style="display:none">@articles.body@</pre></p>
    <small>Click on article to view the messages of the thread</small>
  </a>  
  </multiple>
</div>