Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 71
- Log:
Start of upgrade to Typo 4.0.0, the latest stable release since
2.6.0. Note test/mocks/themes/azure changes from a file to a
directory, so the file has been removed in this revision and
the directory will be added in the next revision.
- Author:
- adh
- Date:
- Mon Aug 07 22:18:11 +0100 2006
- Size:
- 1085 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 item_link(item) |
11 | item.location(nil, false) |
12 | end |
13 | |
14 | alias_method :post_link, :item_link |
15 | alias_method :comment_link, :item_link |
16 | alias_method :trackback_link, :item_link |
17 | |
18 | def blog_title |
19 | this_blog.blog_name || "Unnamed blog" |
20 | end |
21 | |
22 | def tag_link(tag) |
23 | url_for :controller => "articles", :action => 'tag', :id => tag.name, :only_path => false |
24 | end |
25 | |
26 | def collection_lastmod(collection) |
27 | article_updated = collection.articles.find(:first, :order => 'updated_at DESC') |
28 | article_published = collection.articles.find(:first, :order => 'published_at DESC') |
29 | |
30 | times = [] |
31 | times.push article_updated.updated_at if article_updated |
32 | times.push article_published.updated_at if article_published |
33 | |
34 | if times.empty? |
35 | Time.at(0).xmlschema |
36 | else |
37 | times.max.xmlschema |
38 | end |
39 | end |
40 | |
41 | def category_link(category) |
42 | url_for :controller => "articles", :action => 'category', :id => category.permalink, :only_path => false |
43 | end |
44 | end |