Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 13
- Log:
Initial import of Typo 2.6.0 sources from a downloaded Tarball.
Typo is a Ruby On Rails based blog engine.
- Author:
- adh
- Date:
- Sat Jul 22 22:25:02 +0100 2006
- Size:
- 502 Bytes
1 | class Admin::ThemesController < Admin::BaseController |
2 | |
3 | def index |
4 | @themes = Theme.find_all |
5 | @active = Theme.current |
6 | end |
7 | |
8 | def preview |
9 | send_file "#{Theme.themes_root}/#{params[:theme]}/preview.png", :type => 'image/png', :disposition => 'inline', :stream => false |
10 | end |
11 | |
12 | def switchto |
13 | |
14 | setting = (Setting.find_by_name('theme') or Setting.new("name" => 'theme')) |
15 | |
16 | setting.value = params[:theme] |
17 | setting.save |
18 | |
19 | redirect_to :action => 'index' |
20 | |
21 | end |
22 | |
23 | end |