21 lines
605 B
Elixir
21 lines
605 B
Elixir
|
<%= form_tag Routes.feed_path(@conn, :refresh, @feed.id), method: :post do %>
|
||
|
<%= submit "Refresh Feed" %>
|
||
|
<% end %>
|
||
|
|
||
|
<%= form_tag Routes.feed_path(@conn, :delete, @feed.id), method: :delete do %>
|
||
|
<%= submit "Delete Feed" %>
|
||
|
<% end %>
|
||
|
|
||
|
<table>
|
||
|
<%= 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 %></a>
|
||
|
</td>
|
||
|
<td>
|
||
|
<% {:ok, date} = Timex.format(item.date, "{YYYY}-{M}-{D} {h12}:{m} {AM}") %>
|
||
|
<%= date %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|