Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 1132 Bytes
1 | class DeliciousSidebar < Sidebar |
2 | display_name "Del.icio.us" |
3 | description 'Bookmarks from <a href="http://del.icio.us">del.icio.us</a>' |
4 | |
5 | setting :feed, nil, :label => 'Feed URL' |
6 | setting :count, 10, :label => 'Items Limit' |
7 | setting :groupdate, false, :input_type => :checkbox, :label => 'Group links by day' |
8 | setting :description, false, :input_type => :checkbox, :label => 'Show description' |
9 | setting :desclink, false, :input_type => :checkbox, :label => 'Allow links in description' |
10 | |
11 | lifetime 1.hour |
12 | |
13 | def delicious |
14 | @delicious ||= Delicious.new(feed) rescue nil |
15 | end |
16 | |
17 | def parse_request(contents, params) |
18 | return unless delicious |
19 | |
20 | if groupdate |
21 | @delicious.days = {} |
22 | @delicious.items.each_with_index do |d,i| |
23 | break if i >= count.to_i |
24 | index = d.date.strftime("%Y-%m-%d").to_sym |
25 | (@delicious.days[index] ||= []) << d |
26 | end |
27 | @delicious.days = |
28 | @delicious.days.sort_by { |d| d.to_s }.reverse.collect do |d| |
29 | {:container => d.last, :date => d.first} |
30 | end |
31 | else |
32 | @delicious.items = @delicious.items.slice(0, count.to_i) |
33 | end |
34 | end |
35 | end |