Sha256: c3b360aa65cca027290943548faf681b6ddb6d99165a537ad99ff8b450ce3fe7
Contents?: true
Size: 1.63 KB
Versions: 4
Compression:
Stored size: 1.63 KB
Contents
<div style="width: 100%"> <% require "toaster/model/automation" require "toaster/test/test_suite" $session = session message = nil backups = [] testresult_collections = [] $session['db.host'] = $session['db.host'] || DB.instance.db_host $session['db.port'] = $session['db.port'] || DB.instance.db_port $session['db.name'] = $session['db.name'] || DB.instance.db_name if param('saveSettings') != "" connection_changed = param('dbHost') != $session['db.host'] || param('dbPort') != $session['db.port'] || param('dbDB') != $session['db.name'] $session['db.host'] = param('dbHost') if param('dbHost') != "" $session['db.port'] = param('dbPort') if param('dbPort') != "" $session['db.name'] = param('dbDB') if param('dbDB') != "" $session['service.host'] = param('serviceHost') $session['service.port'] = param('servicePort') message = "Settings successfully applied." if connection_changed #load_cache() Toaster::Cache.clear() message += " Cache has been cleaned due to changes in connection settings." end end %> <form action="" method="post"> <input type="hidden" name="sessionID" value="<%= $session['session_id'] %>"/> <h2>Settings</h2> <% if message %> <div class="info"><%= message %></div> <% end %> <% if !Toaster::Config.get("testing.hosted_mode") %> <h3>Test Agent Service</h3> <table> <tr><td>Service Host:</td><td><input name="serviceHost" value="<%= $session['service.host'] %>"/><td/></tr> <tr><td>Service Port:</td><td><input name="servicePort" value="<%= $session['service.port'] %>"/><td/></tr> <tr><td></td><td><input type="submit" value="Update" name="saveSettings"/><td/></tr> </table> <% end %> </form> </div>
Version data entries
4 entries across 4 versions & 1 rubygems