Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 750 Bytes
1 | module ThemeHelper |
2 | |
3 | # NB: This overrides an undocumented rails function in order to add |
4 | # a search path. We need this to get themes working, but I'd be |
5 | # happier if we didn't have to override undocumented methods. Ho |
6 | # hum. -- pdcawley |
7 | |
8 | def search_paths |
9 | ["../themes/#{this_blog.theme}/views", # for components |
10 | "../../themes/#{this_blog.theme}/views", # for normal views |
11 | ".", |
12 | "../app/views"] |
13 | end |
14 | |
15 | def full_template_path(template_path, extension) |
16 | search_paths.each do |path| |
17 | themed_path = File.join(@base_path, path, "#{template_path}.#{extension}") |
18 | return themed_path if File.exist?(themed_path) |
19 | end |
20 | # Can't find a themed version, so fall back to the default behaviour |
21 | super |
22 | end |
23 | end |