2020-06-02 02:38:27 +00:00
|
|
|
<h1><%= @group.title %></h1>
|
|
|
|
|
2020-06-02 02:46:15 +00:00
|
|
|
<%= unless is_nil(@prev_page_path) do %>
|
2020-06-02 02:38:27 +00:00
|
|
|
<p class="text-center">
|
2020-06-02 02:46:15 +00:00
|
|
|
<a href="<%= @prev_page_path %>" class="pagination-link">Newer</a>
|
2020-06-02 02:38:27 +00:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
<tbody>
|
|
|
|
<%= for item <- @items do %>
|
|
|
|
<tr <%= if item.read do %>class="item-read"<% end %>>
|
|
|
|
<td>
|
|
|
|
<a href="<%= Routes.item_path(@conn, :show, item.id) %>">
|
|
|
|
<%= item.title || "(Untitled)" %>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="<%= Routes.feed_path(@conn, :show, item.feed.id) %>">
|
|
|
|
<%= if item.feed.favicon do %>
|
|
|
|
<img src="<%= item.feed.favicon %>" alt="<%= item.feed.title %> favicon" class="favicon">
|
|
|
|
<% end %>
|
|
|
|
<%= item.feed.title || "(Untitled)" %>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%= if item.date do %>
|
|
|
|
<% {:ok, date} = Timex.format(item.date, "{YYYY}-{0M}-{0D} {0h12}:{m} {AM}") %>
|
|
|
|
<%= date %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2020-06-02 02:46:15 +00:00
|
|
|
<%= unless is_nil(@next_page_path) do %>
|
2020-06-02 02:38:27 +00:00
|
|
|
<p class="text-center">
|
2020-06-02 02:46:15 +00:00
|
|
|
<a href="<%= @next_page_path %>" class="pagination-link">Older</a>
|
2020-06-02 02:38:27 +00:00
|
|
|
</p>
|
|
|
|
<% end %>
|