-
-
Notifications
You must be signed in to change notification settings - Fork 390
Expand file tree
/
Copy path_feed.html.erb
More file actions
36 lines (36 loc) · 1.49 KB
/
_feed.html.erb
File metadata and controls
36 lines (36 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<li class="feed" id="feed-<%= feed.id%>" data-id="<%= feed.id %>">
<div class="feed-line">
<div class="feed-title-container">
<p class="feed-title <%= feed.unread_stories_count > 0 ? "feed-unread" : "" %>">
<i class="fa fa-circle status <%= feed.status_bubble %>" data-toggle="tooltip" title="<%= t("partials.feed.status_bubble.#{feed.status_bubble}") if feed.status_bubble %>" data-placement="left"></i>
<a href="/feed/<%= feed.id %>">
<% if feed.unread_stories_count > 0 %>
(<%= feed.unread_stories_count %>)
<% end %>
<%= feed.name %>
</a>
</p>
</div>
<div class="feed-actions">
<div class="feed-last-updated">
<span class="last-updated"><%= t('partials.feed.last_updated') %></span>
<span class="last-updated-time">
<% if feed.last_fetched %>
<%= I18n.l(feed.last_fetched) %>
<% else %>
<%= t("partials.feed.last_fetched.never") %>
<% end %>
</span>
</div>
<span class="read-feed">
<a class="fa fa-external-link" aria-label="visit feed site" href="<%= feed.url %>"></a>
</span>
<span class="edit-feed">
<a class="fa fa-edit" aria-label="Edit" href="<%= "/feeds/#{feed.id}/edit" %>"></a>
</span>
<%= button_to("/feeds/#{feed.id}", method: :delete, class: "remove-feed btn-link", aria: { label: "Delete" }) do %>
<a class="fa fa-times"></a>
<% end %>
</div>
</div>
</li>