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:
- 1080 Bytes
1 | class Admin::GeneralController < Admin::BaseController |
2 | def index |
3 | if this_blog.base_url.blank? |
4 | this_blog.base_url = blog_base_url |
5 | end |
6 | @page_cache_size = PageCache.count |
7 | end |
8 | |
9 | def redirect |
10 | flash[:notice] = "Please review and save the settings before continuing" |
11 | redirect_to :action => "index" |
12 | end |
13 | |
14 | def update_database |
15 | @current_version = Migrator.current_schema_version |
16 | @needed_version = Migrator.max_schema_version |
17 | @support = Migrator.db_supports_migrations? |
18 | @needed_migrations = Migrator.available_migrations[@current_version..@needed_version].collect do |mig| |
19 | mig.scan(/\d+\_([\w_]+)\.rb$/).flatten.first.humanize |
20 | end |
21 | end |
22 | |
23 | def migrate |
24 | if request.post? |
25 | Migrator.migrate |
26 | redirect_to :action => 'update_database' |
27 | end |
28 | end |
29 | |
30 | def update |
31 | if request.post? |
32 | Blog.transaction do |
33 | params[:setting].each { |k,v| this_blog.send("#{k.to_s}=", v) } |
34 | this_blog.save |
35 | flash[:notice] = 'config updated.' |
36 | end |
37 | redirect_to :action => 'index' |
38 | end |
39 | end |
40 | |
41 | private |
42 | end |