Skip to content

Commit

Permalink
add feed details and unsubscribe link on single-feed read page
Browse files Browse the repository at this point in the history
  • Loading branch information
mawise committed Jan 19, 2024
1 parent 22397fc commit 3835df8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/views/feeds/read.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ end
<% end %>
<% end %>

<% unless @feed.nil? %>
<p><strong>Feed Name: </strong><%= link_to sanitize(@feed.name, tags:[], attributes:[]), @feed.feed_entries.first.link %></p>
<p><strong>Feed URL: </strong><%= @feed.url %>
<br/>
<p><%= link_to 'Delete this feed', feed_path(@feed),
method: :delete,
data: { confirm: "Are you sure you want to delete #{@feed.name} with url #{@feed.url}?" } %>
</p>
<hr/>
<% end %>

<% entry_number = 0 %>
<% @entries.each do |entry| %>
<div id="entry_<%= entry_number %>">
Expand Down

0 comments on commit 3835df8

Please sign in to comment.