forked from stringer-rss/stringer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathread.erb
More file actions
26 lines (25 loc) · 789 Bytes
/
read.erb
File metadata and controls
26 lines (25 loc) · 789 Bytes
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
<div id="action-bar">
<%= render_partial :feed_action_bar %>
</div>
<% unless @read_stories.empty? %>
<div id="stories">
<ul id="story-list">
<% @read_stories.each do |story| %>
<%= render_partial :story, { story: story } %>
<% end %>
</ul>
</div>
<div id="pagination">
<% if @read_stories.previous_page %>
<a href="?page=<%= @read_stories.previous_page %>"><i class="icon-double-angle-left"></i> Previous</a>
<% end %>
Page <%= @read_stories.current_page %> of <%= @read_stories.total_pages %>
<% if @read_stories.next_page %>
<a href="?page=<%= @read_stories.next_page %>">Next <i class="icon-double-angle-right"></i></a>
<% end %>
</div>
<% else %>
<div id="add-some-feeds">
<p>Sorry, you haven't read any stories yet!</p>
</div>
<% end %>