summaryrefslogtreecommitdiff
blob: 6028ec9cd0fe5646fdf71659f53f3b5b3037ffe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<div class="row">
  <div class="col-xs-12 col-md-4">
  <h2 class="stick-top"><%= list %></h2>
    <p>
      <%= blurb %>
    </p>

    <p class="ag-index-actions">
      <a class="btn btn-primary btn-block" href="/<%= list %>/threads/<%= DateTime.now.strftime '%Y-%m' %>/"><span class="fa fa-fw fa-inbox"></span> This Month's Archives</a>
      <a class="btn btn-default btn-block" href="/<%= list %>/"><span class="fa fa-fw fa-inbox"></span> Complete Archives</a>
    </p>
  </div>
  <div class="col-xs-12 col-md-8">
    <h3 class="ag-mostrecent-header">Most recent messages</h3>
    <div class="table-responsive">
      <table class="table table-condensed table-hover ag-mostrecent-table">
        <tr>
          <th>Subject</th>
          <th class="ag-mostrecent-table-author">Author</th>
        </tr>
        <% most_recent(list, 5).each do |message| %>
        <tr>
          <td><a href="/<%= list %>/message/<%= message['_id'] %>"><%= h message['_source']['subject'] %></a></td>
          <td><%= h message['_source']['from_realname'] %></td>
        </tr>
        <% end %>
      </table>
    </div>
  </div>
</div>

<hr>