SECTION=Navigation::SECTION_CONFIGURATION
- # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :setup_database ], :redirect_to => { :action => :index }
def index
if DatabaseVersion.uptodate?
- render :template => 'setup/index'
+ redirect_to home_path
elsif ActiveRecord::Base.connected?
render :template => (DatabaseVersion.upgradable? ? 'setup/form' : 'setup/not_upgradable'), :layout => 'nonav'
else
+++ /dev/null
-<h2>Database settings.</h2>
-<table>
- <tr>
- <td>URL: </td>
- <td><%= configuration('sonar.jdbc.url', '') -%>
- </tr>
- <tr>
- <td>Login: </td>
- <td><%= configuration('sonar.jdbc.username', '') -%>
- </tr>
- <tr>
- <td>Driver: </td>
- <td><%= configuration('sonar.jdbc.driverClassName', '') -%>
- </tr>
-</table>