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:
- 627 Bytes
1 | module XmlHelper |
2 | def pub_date(time) |
3 | time.rfc822 |
4 | end |
5 | |
6 | def post_title(post) |
7 | h(post.title) |
8 | end |
9 | |
10 | def blog_title |
11 | this_blog.blog_name || "Unnamed blog" |
12 | end |
13 | |
14 | def collection_lastmod(collection) |
15 | article_updated = collection.articles.find(:first, :order => 'updated_at DESC') |
16 | article_published = collection.articles.find(:first, :order => 'published_at DESC') |
17 | |
18 | times = [] |
19 | times.push article_updated.updated_at if article_updated |
20 | times.push article_published.updated_at if article_published |
21 | |
22 | if times.empty? |
23 | Time.at(0).xmlschema |
24 | else |
25 | times.max.xmlschema |
26 | end |
27 | end |
28 | end |