17 lines
490 B
Elixir
17 lines
490 B
Elixir
<%= if @item.read do %>
|
|
<%= form_tag Routes.item_path(@conn, :unread, @item.id), method: :post do %>
|
|
<%= submit "Mark as Unread" %>
|
|
<% end %>
|
|
<% else %>
|
|
<%= form_tag Routes.item_path(@conn, :read, @item.id), method: :post do %>
|
|
<%= submit "Mark as Read" %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<a href="<%= Routes.feed_path(@conn, :show, @feed.id) %>"><%= @feed.title %></a>
|
|
<h1>
|
|
<a href="<%= @item.url %>"><%= @item.title %></a>
|
|
</h1>
|
|
<article>
|
|
<%= raw(@item.content) %>
|
|
</article> |