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:
- 474 Bytes
1 | class AmazonSidebar < Sidebar |
2 | description \ |
3 | "Adds sidebar links to any amazon books linked in the body of the page" |
4 | setting :title, 'Cited books' |
5 | setting :associate_id, 'justasummary-20' |
6 | setting :maxlinks, 4 |
7 | |
8 | attr_accessor :asins |
9 | |
10 | def parse_request(contents, request_params) |
11 | asin_list = contents.to_a.inject([]) do |acc, item| |
12 | acc + item.whiteboard[:asins].to_a |
13 | end |
14 | self.asins = asin_list.uniq.compact[0,maxlinks.to_i] |
15 | end |
16 | end |