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:
- 562 Bytes
1 | class Admin::ThemesController < Admin::BaseController |
2 | |
3 | def index |
4 | @themes = Theme.find_all |
5 | @themes.each do |theme| |
6 | theme.description_html = TextFilter.filter_text(this_blog, theme.description, nil, [:markdown,:smartypants]) |
7 | end |
8 | @active = this_blog.current_theme |
9 | end |
10 | |
11 | def preview |
12 | send_file "#{Theme.themes_root}/#{params[:theme]}/preview.png", :type => 'image/png', :disposition => 'inline', :stream => false |
13 | end |
14 | |
15 | def switchto |
16 | this_blog.theme = params[:theme] |
17 | this_blog.save |
18 | redirect_to :action => 'index' |
19 | end |
20 | end |