-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.erb
81 lines (63 loc) · 1.73 KB
/
index.erb
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<div id='navwrap'>
<div id='nav'>
<p>
Last Updated
</p>
<p class='small'>
<% if site.fetched %>
<%= site.fetched.strftime('%A, %d. %B %Y %H:%M') %>
<% end %>
</p>
<p>Subscriptions</p>
<ul class='subscriptions small' >
<% site.feeds.order(:title).each do |feed| %>
<li>
<a href='<%= feed.feed_url %>'><img src='feed-icon-10x10.png'></a>
<a href='<%= feed_path( feed ) %>'><%= feed.title %></a></li>
<% end %>
</ul>
<p>Planetarium</p>
<ul class='planetarium small'>
<li><a href='http://plutolive.herokuapp.com'>Planet Ruby</a></li>
<li><a href='http://viennarb.herokuapp.com'>Planet vienna.rb</a></li>
</ul>
<p>Meta</p>
<p class='small'>Powered by <a href='https://github.com/feedreader'>Pluto</a>;
Questions? Comments?
Send them along to the <a href='http://groups.google.com/group/feedreader'>forum/mailing list</a>. Thanks!
</p>
</div>
</div>
<h1><%= site.title %></h1>
<% items = site.items.latest.limit(24)
ItemCursor.new( items ).each do |item,new_date,new_feed| %>
<% if new_date %>
<h2 class='new-date'>
<%= item.published.strftime('%A, %d. %B %Y') %>
</h2>
<% else %>
<hr class='item-seperator'>
<% end %>
<div class='item'>
<% if new_feed %>
<h4 class='feed-title'>
<a href='<%= feed_path( item.feed ) %>'><%= item.feed.title %></a>
</h4>
<% end %>
<h3 class='item-title'>
<a href='<%= item.url %>'><%= item.title %></a>
</h3>
<div class='item-content item-summary'>
<% if item.content %>
<%= item.content %>
<% else %>
<%= item.summary %>
<% end %>
</div>
</div><!-- item -->
<!--
<p>
<%= item.published.strftime('%H:%M') %>
</p>
-->
<% end %><!-- each item -->