|
1 |
| -<%# TODO delete this view %> |
2 |
| -<header> |
3 |
| - <h1> |
4 |
| - <%= link_to "Archives", [:library] %> : |
5 |
| - <time> |
6 |
| - <%= link_to_dates(year: @articles_year, month: @articles_month, day: @articles_day) %> |
7 |
| - </time> |
8 |
| - </h1> |
9 |
| -</header> |
| 1 | +<% content_for(:head) do %> |
| 2 | + <%= rel_next_prev_link_tags @articles %> |
| 3 | +<% end %> |
10 | 4 |
|
11 |
| -<% if @articles.nil? %> |
12 |
| - <h2>No archives for this time period.</h2> |
13 |
| -<% else %> |
14 |
| - <ol class="h-feed"> |
15 |
| - <% @articles.each do |article| %> |
16 |
| - <li> |
17 |
| - <article class="h-entry"> |
18 |
| - <header> |
19 |
| - <%= render_themed "articles/titles", header: article, linked: true %> |
20 |
| - </header> |
| 5 | +<div class='container'> |
| 6 | + <div class='row'> |
| 7 | + <div class='col-md-6 col-lg-8'> |
| 8 | + <header class='titles pb-3 mb-4 border-bottom'> |
| 9 | + <h1><%= tt :articles %></h1> |
| 10 | + <h2 class='fw-light'><%= tt :page %> <%= @page_number %></h2> |
| 11 | + </header> |
21 | 12 |
|
22 |
| - <footer> |
23 |
| - <%= render_themed "articles/published_on", article: article %> |
24 |
| - <%= render_themed "articles/categories", article: article %> |
25 |
| - <%= render_themed "articles/tags", article: article %> |
26 |
| - </footer> |
27 |
| - </article> |
28 |
| - </li> |
29 |
| - <% end %> |
30 |
| - </ol> |
31 |
| -<% end %> |
| 13 | + <div class='h-feed'> |
| 14 | + <% @articles.each do |article| %> |
| 15 | + <%= render_themed 'articles/article', article: article %> |
| 16 | + <% end %> |
| 17 | + </div> |
| 18 | + |
| 19 | + <%= paginate @articles, theme: 'twitter-bootstrap-4' %> |
| 20 | + </div> |
| 21 | + |
| 22 | + <div class='col-md-6 col-lg-4'> |
| 23 | + <header class='titles pb-3 mb-2 border-bottom fw-normal'> |
| 24 | + <h1 class='fw-normal'>See also…</h1> |
| 25 | + <h2 class='fw-normal'>Explore The Archives</h2> |
| 26 | + </header> |
| 27 | + |
| 28 | + <div id='categories' class='mb-5 pt-3'> |
| 29 | + <h2 class='h4 fw-bold'><%= link_to tt(:categories_heading), '#categories' %></h2> |
| 30 | + <%= render_themed 'categories/list', categories: @categories %> |
| 31 | + </div> |
| 32 | + |
| 33 | + <div id='years' class='mb-5 pt-3'> |
| 34 | + <h2 class='h4 fw-bold'><%= link_to tt(:chronological_heading), '#years' %></h2> |
| 35 | + <%= render_themed 'years/list', years: @years %> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + </div><!-- .row --> |
| 39 | +</div><!-- .container --> |
0 commit comments