2019-11-10 19:37:06 +00:00
|
|
|
<h1 class="feed-title">
|
|
|
|
<%= if @feed.favicon do %>
|
|
|
|
<img src="<%= @feed.favicon %>" alt="<%= @feed.title %> favicon" class="favicon">
|
|
|
|
<% end %>
|
|
|
|
<%= @feed.title %>
|
|
|
|
</h1>
|
2019-02-11 22:22:35 +00:00
|
|
|
|
2019-04-01 16:24:22 +00:00
|
|
|
<%= form_tag Routes.feed_path(@conn, :refresh, @feed.id), method: :post, class: "d-inline" do %>
|
|
|
|
<%= submit "Refresh Feed", class: "btn btn-primary" %>
|
|
|
|
<% end %>
|
2019-03-10 23:47:01 +00:00
|
|
|
|
2019-07-06 02:00:18 +00:00
|
|
|
<a class="btn btn-primary" href="<%= Routes.feed_path(@conn, :edit, @feed.id) %>">Edit Feed</a>
|
2019-03-10 23:47:01 +00:00
|
|
|
|
2019-04-01 16:24:22 +00:00
|
|
|
<%= form_tag Routes.feed_path(@conn, :delete, @feed.id), method: :delete, class: "d-inline" do %>
|
|
|
|
<%= submit "Delete Feed", class: "btn btn-danger" %>
|
2019-02-11 22:22:35 +00:00
|
|
|
<% end %>
|
|
|
|
|
2019-04-01 16:24:22 +00:00
|
|
|
<h3 class="mt-4">Items</h3>
|
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
<tbody>
|
|
|
|
<%= for item <- @items do %>
|
|
|
|
<tr <%= if item.read do %>class="item-read"<% end %>>
|
|
|
|
<td>
|
2019-10-31 18:31:52 +00:00
|
|
|
<a href="<%= Routes.item_path(@conn, :show, item.id) %>"><%= item.title || "(Untitled)" %></a>
|
2019-04-01 16:24:22 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2020-01-13 02:51:58 +00:00
|
|
|
<% if item.date do %>
|
|
|
|
<% {:ok, date} = Timex.format(item.date, "{YYYY}-{M}-{D} {h12}:{m} {AM}") %>
|
|
|
|
<%= date %>
|
|
|
|
<% end %>
|
2019-04-01 16:24:22 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
2019-07-06 02:00:18 +00:00
|
|
|
</table>
|