public
Description: A 'planet' like feed aggregator using feedparser and erubis
Clone URL: git://github.com/technicalpickles/feedbarn.git
feedbarn / view / default.html.erb
100644 37 lines (34 sloc) 0.953 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
37
<html>
  <head>
    <title><%= barn.title %></title>
  </head>
  <body>
    <div id="container">
      <div id="header">
        <h1><%= barn.title %></h1>
      </div>
      <div id="content" class="hfeed">
        <% barn.entries.each do |entry| %>
        <div class="hentry">
          <h2 class="entry-title"><a href="<%= entry.url %>"><%= entry.title %></a></h2>
          <abbr class="updated published" title="blarg"><%= entry.date_published %></abbr>
          <a href="#"><%= entry.author %></a>
          <div class="entry-content">
            <%= CGI.unescapeHTML entry.content %>
          </div>
        </div>
        <% end %>
      </div>
      
      <div id="navigation">
        <h3>Feeds</h3>
        <ul>
        <% barn.feeds.each do |feed| %>
        <li><a href="<%= feed.url %>"><%= feed.title %></a></li>
        <% end %>
        </ul>
      </div>
      <div id="footer">
        
      </div>
    </div>
 
  </body>
</html>