<%= @feed.title %>

<%= form_tag Routes.feed_path(@conn, :refresh, @feed.id), method: :post, class: "d-inline" do %> <%= submit "Refresh Feed", class: "btn btn-primary" %> <% end %> <%= if @feed.filter_enabled do %> <%= form_tag Routes.feed_path(@conn, :disable_filter, @feed.id), method: :post, class: "d-inline" do %> <%= submit "Disable Filter", class: "btn btn-secondary" %> <% end %> <%= form_tag Routes.filter_path(@conn, :edit, @feed.filter.id), method: :get, class: "d-inline" do %> <%= submit "Edit Filter", class: "btn btn-secondary" %> <% end %> <% else %> <%= form_tag Routes.feed_path(@conn, :enable_filter, @feed.id), method: :post, class: "d-inline" do %> <%= submit "Enable Filter", class: "btn btn-secondary" %> <% end %> <% end %> <%= form_tag Routes.feed_path(@conn, :delete, @feed.id), method: :delete, class: "d-inline" do %> <%= submit "Delete Feed", class: "btn btn-danger" %> <% end %>

Items

<%= for item <- @items do %> class="item-read"<% end %>> <% end %>
<%= item.title %> <% {:ok, date} = Timex.format(item.date, "{YYYY}-{M}-{D} {h12}:{m} {AM}") %> <%= date %>