pluto 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +0,0 @@
1
-
2
-
3
- <p>test page</p>
@@ -1,12 +0,0 @@
1
-
2
- <h2><%= Item.count %> Items</h2>
3
-
4
- <table>
5
- <% Item.all.each do |item| %>
6
- <tr>
7
- <td><%= item.title %></td>
8
- <td class='key'><%= item.guid %></td>
9
- <td><%= item.feed.title %></td>
10
- </tr>
11
- <% end %>
12
- </table>
@@ -1,22 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset='UTF-8'>
5
- <title>Pluto / Admin</title>
6
- <link href="<%= url('/style.css') %>" rel='stylesheet'>
7
- </head>
8
- <body>
9
-
10
- <p>
11
- Pluto |
12
- <%= link_to 'Sites', sites_path %> <span class='count'>(<%= Site.count %>)</span> &bull;
13
- <%= link_to 'Feeds', feeds_path %> <span class='count'>(<%= Feed.count %>)</span> &bull;
14
- <%= link_to 'Items', items_path %> <span class='count'>(<%= Item.count %>)</span>
15
- </p>
16
-
17
- <%= yield %>
18
-
19
- <%= erb :'_version' %>
20
-
21
- </body>
22
- </html>
@@ -1,21 +0,0 @@
1
-
2
-
3
- <h2><%= Site.count %> Sites</h2>
4
-
5
- <table>
6
- <% Site.all.each do |site| %>
7
- <tr>
8
- <td class='key'><%= site.key %></td>
9
- <td><%= site.title %>
10
- <span class='count'>(<%= site.feeds.count %>)</span>
11
- </td>
12
- <td>
13
- <ul>
14
- <% site.feeds.each do |feed| %>
15
- <li><%= feed.title %></li>
16
- <% end %>
17
- </ul>
18
- </td>
19
- </tr>
20
- <% end %>
21
- </table>
@@ -1,133 +0,0 @@
1
- <html>
2
- <head>
3
- <meta charset="UTF-8">
4
- <title><%= site['title'] %></title>
5
- <meta name="generator" content="<%= Pluto.banner %>">
6
- <style>
7
- /* fix: use sass w/ variables */
8
- body {
9
- font-family: sans-serif;
10
- background-color: #F4F4F4;
11
- color: #333333;
12
- }
13
-
14
- a, a:visited {
15
- text-decoration: none;
16
- color: #1E68A6;
17
- }
18
-
19
- a:hover {
20
- text-decoration: underline;
21
- color: #1E68A6;
22
- background-color: yellow;
23
- }
24
-
25
- .item {
26
- background-color: white;
27
- border: 1px solid #9E9E9E;
28
- padding: 0px 15px 15px 15px;
29
- margin-bottom: 12px;
30
- }
31
-
32
- .item_title {
33
- margin-top: 0;
34
- font-size: 16px;
35
- }
36
-
37
- .feed_title {
38
- margin-bottom: 5px;
39
- font-size: 12px;
40
- }
41
-
42
- .colright {
43
- margin-left: 20px;
44
- }
45
-
46
- ul.subscriptions {
47
- list-style: none;
48
- margin-left: 0;
49
- padding-left: 0;
50
- }
51
-
52
- /* fix: use .small instead */
53
- .smaller {
54
- font-size: 12px;
55
- /* color: #666666; */ /* lighter gray than text gray */
56
- }
57
-
58
- .item_content {
59
- font-size: 14px;
60
- }
61
- </style>
62
- </head>
63
- <body>
64
- <h1><%= site['title'] %></h1>
65
-
66
- <table>
67
- <tr>
68
- <td style='vertical-align:top;'><!-- first column -->
69
-
70
- <% last_published_at = Time.local( 1999, 1, 1 )
71
- Item.latest.limit(24).each do |item| %>
72
-
73
- <% unless last_published_at.year == item.published_at.year &&
74
- last_published_at.month == item.published_at.month &&
75
- last_published_at.day == item.published_at.day %>
76
-
77
-
78
-
79
- <h3>
80
- <%= item.published_at.strftime('%A, %d. %B %Y') %>
81
- </h3>
82
-
83
- <% end %><!-- if new day? -->
84
-
85
-
86
- <div class='item'>
87
-
88
- <h4 class='feed_title'>
89
- <a href='<%= item.feed.url %>'><%= item.feed.title %></a>
90
- </h4>
91
-
92
- <h2 class='item_title'>
93
- <a href='<%= item.url %>'><%= item.title %></a>
94
- </h2>
95
-
96
- <div class='item_content'>
97
- <%= item.content %>
98
- </div>
99
- </div>
100
- <!--
101
- <p>
102
- <%= item.published_at.strftime('%H:%M') %>
103
- </p>
104
- -->
105
-
106
- <% last_published_at = item.published_at
107
- end %><!-- each item -->
108
-
109
- </td>
110
- <td style='vertical-align:top;'><!-- second column -->
111
-
112
- <div class='colright'>
113
- <p>
114
- Last Updated
115
- </p>
116
- <p class='smaller'><%= Time.now.strftime('%A, %d. %B %Y %H:%M') %>
117
- </p>
118
-
119
- <p>Subscriptions</p>
120
- <ul class='subscriptions smaller' >
121
- <% Feed.all.each do |feed| %>
122
- <li>
123
- <a href='<%= feed.feed_url %>'><img src='feed-icon-10x10.png'></a>
124
- <a href='<%= feed.url %>'><%= feed.title %></a></li>
125
- <% end %>
126
- </ul>
127
- </div>
128
-
129
- </td>
130
- </tr>
131
- </table>
132
- <body>
133
- </html>
@@ -1,10 +0,0 @@
1
- <h1>Pluto Planet Blank Top Template Sample</h1>
2
-
3
- <% Feed.all.each do |feed| %>
4
- <h3><%= feed.title %> </h3>
5
- <ul>
6
- <% feed.items.latest.limit(11).each do |item| %>
7
- <li><%= item.title %> (<%= item.published_at %>)</li>
8
- <% end %>
9
- </ul>
10
- <% end %>
data/templates/blank.txt DELETED
@@ -1,5 +0,0 @@
1
- # pakman manifest
2
-
3
- __file__.html blank.html.erb
4
- __file__.top.html blank.top.html.erb
5
- feed-icon-10x10.png
Binary file