webroar 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/README +1 -1
- data/doc/user-guide.html +125 -85
- data/doc/user-guide.txt +2 -2
- data/lib/constant.rb +23 -16
- data/lib/db_connect.rb +2 -3
- data/lib/installer.rb +17 -10
- data/lib/user_interaction.rb +21 -10
- data/lib/webroar_command.rb +21 -23
- data/src/admin_panel/Gemfile +8 -0
- data/src/admin_panel/Rakefile +2 -5
- data/src/admin_panel/app/controllers/application_controller.rb +1 -1
- data/src/admin_panel/app/controllers/exceptions_controller.rb +25 -26
- data/src/admin_panel/app/controllers/graph_controller.rb +2 -1
- data/src/admin_panel/app/helpers/admin_helper.rb +1 -1
- data/src/admin_panel/app/{models → mailers}/mailer.rb +5 -8
- data/src/admin_panel/app/models/app.rb +1 -1
- data/src/admin_panel/app/models/app_exception.rb +15 -11
- data/src/admin_panel/app/models/app_time_sample.rb +40 -10
- data/src/admin_panel/app/models/application_specification.rb +71 -41
- data/src/admin_panel/app/models/resource_usage.rb +76 -55
- data/src/admin_panel/app/models/url_breakup_time_sample.rb +6 -11
- data/src/admin_panel/app/models/url_time_sample.rb +57 -13
- data/src/admin_panel/app/views/admin/_application_table.html.erb +5 -5
- data/src/admin_panel/app/views/admin/_feedback_partial.html.erb +4 -4
- data/src/admin_panel/app/views/admin/_report_bug_partial.html.erb +5 -5
- data/src/admin_panel/app/views/admin/change_password_form.html.erb +3 -3
- data/src/admin_panel/app/views/admin/configuration.html.erb +6 -6
- data/src/admin_panel/app/views/admin/home.html.erb +4 -4
- data/src/admin_panel/app/views/admin/index.html.erb +5 -5
- data/src/admin_panel/app/views/application_specification/_application_specification_form.html.erb +15 -6
- data/src/admin_panel/app/views/exceptions/_add_and_list_exception_classes.html.erb +7 -6
- data/src/admin_panel/app/views/exceptions/_exception_backtrace_partial.html.erb +1 -1
- data/src/admin_panel/app/views/exceptions/_exception_environment_partial.html.erb +30 -30
- data/src/admin_panel/app/views/exceptions/_exception_list_partial.html.erb +11 -11
- data/src/admin_panel/app/views/exceptions/_show.html.erb +8 -8
- data/src/admin_panel/app/views/exceptions/index.html.erb +0 -1
- data/src/admin_panel/app/views/graph/_get_database_data.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_get_resource_usage_data_app.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_get_resource_usage_data_server.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_get_throughput_data.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_get_url_data.html.erb +4 -4
- data/src/admin_panel/app/views/graph/_pie.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_query_date.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_query_period.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_slider_partial.html.erb +5 -4
- data/src/admin_panel/app/views/graph/index.html.erb +0 -1
- data/src/admin_panel/app/views/headers/_add_expires_text_box.html.erb +5 -5
- data/src/admin_panel/app/views/headers/_expires_by_type_form.html.erb +1 -1
- data/src/admin_panel/app/views/headers/_headers_table.html.erb +12 -12
- data/src/admin_panel/app/views/layouts/application.html.erb +71 -51
- data/src/admin_panel/app/views/mail_specification/_current_spec.html.erb +4 -4
- data/src/admin_panel/app/views/mail_specification/_sendmail_form.html.erb +3 -3
- data/src/admin_panel/app/views/mail_specification/_smtp_form.html.erb +3 -3
- data/src/admin_panel/app/views/server_specification/_add_div.html.erb +4 -4
- data/src/admin_panel/app/views/server_specification/_ssl_support_form.html.erb +3 -2
- data/src/admin_panel/config.ru +4 -0
- data/src/admin_panel/config/application.rb +46 -0
- data/src/admin_panel/config/boot.rb +4 -112
- data/src/admin_panel/config/environment.rb +4 -85
- data/src/admin_panel/config/environments/development.rb +20 -13
- data/src/admin_panel/config/environments/production.rb +44 -17
- data/src/admin_panel/config/environments/test.rb +31 -18
- data/src/admin_panel/config/initializers/application_constants.rb +13 -11
- data/src/admin_panel/config/initializers/secret_token.rb +7 -0
- data/src/admin_panel/config/initializers/session_store.rb +8 -0
- data/src/admin_panel/config/initializers/ssl.rb +6 -2
- data/src/admin_panel/config/routes.rb +15 -57
- data/src/admin_panel/doc/README_FOR_APP +1 -1
- data/src/admin_panel/doc/app/ActionView.html +229 -0
- data/src/admin_panel/doc/app/ActionView/Helpers.html +229 -0
- data/src/admin_panel/doc/app/ActionView/Helpers/AssetTagHelper.html +277 -0
- data/src/admin_panel/doc/app/AdminController.html +814 -0
- data/src/admin_panel/doc/app/AdminHelper.html +495 -0
- data/src/admin_panel/doc/app/Analytics.html +272 -0
- data/src/admin_panel/doc/app/Analytics/Database.html +401 -0
- data/src/admin_panel/doc/app/Analytics/ResourceUsage.html +683 -0
- data/src/admin_panel/doc/app/Analytics/Throughput.html +488 -0
- data/src/admin_panel/doc/app/Analytics/Url.html +484 -0
- data/src/admin_panel/doc/app/Analytics/UrlBreakup.html +537 -0
- data/src/admin_panel/doc/app/App.html +489 -0
- data/src/admin_panel/doc/app/AppException.html +710 -0
- data/src/admin_panel/doc/app/AppTimeSample.html +620 -0
- data/src/admin_panel/doc/app/ApplicationController.html +239 -0
- data/src/admin_panel/doc/app/ApplicationHelper.html +296 -0
- data/src/admin_panel/doc/app/ApplicationSpecification.html +876 -0
- data/src/admin_panel/doc/app/ApplicationSpecificationController.html +552 -0
- data/src/admin_panel/doc/app/ApplicationSpecificationHelper.html +219 -0
- data/src/admin_panel/doc/app/Control.html +431 -0
- data/src/admin_panel/doc/app/ExceptionDetail.html +227 -0
- data/src/admin_panel/doc/app/ExceptionsController.html +754 -0
- data/src/admin_panel/doc/app/ExceptionsHelper.html +219 -0
- data/src/admin_panel/doc/app/GraphController.html +1101 -0
- data/src/admin_panel/doc/app/GraphHelper.html +285 -0
- data/src/admin_panel/doc/app/Headers.html +549 -0
- data/src/admin_panel/doc/app/HeadersController.html +507 -0
- data/src/admin_panel/doc/app/HeadersHelper.html +219 -0
- data/src/admin_panel/doc/app/MailSpecification.html +685 -0
- data/src/admin_panel/doc/app/MailSpecificationController.html +541 -0
- data/src/admin_panel/doc/app/MailSpecificationHelper.html +219 -0
- data/src/admin_panel/doc/app/Mailer.html +589 -0
- data/src/admin_panel/doc/app/Object.html +240 -0
- data/src/admin_panel/doc/app/PseudoModel.html +354 -0
- data/src/admin_panel/doc/app/ResourceUsage.html +656 -0
- data/src/admin_panel/doc/app/SCGI.html +674 -0
- data/src/admin_panel/doc/app/ServerSpecification.html +479 -0
- data/src/admin_panel/doc/app/ServerSpecificationController.html +500 -0
- data/src/admin_panel/doc/app/ServerSpecificationHelper.html +219 -0
- data/src/admin_panel/doc/app/SignalHelper.html +287 -0
- data/src/admin_panel/doc/app/UrlBreakupTimeSample.html +287 -0
- data/src/admin_panel/doc/app/UrlTimeSample.html +986 -0
- data/src/admin_panel/doc/app/User.html +290 -0
- data/src/admin_panel/doc/app/YAMLConfig.html +247 -0
- data/src/admin_panel/doc/app/YAMLWriter.html +284 -0
- data/src/admin_panel/doc/app/app/controllers/admin_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/application_controller_rb.html +54 -0
- data/src/admin_panel/doc/app/app/controllers/application_specification_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/exceptions_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/graph_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/headers_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/mail_specification_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/server_specification_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/admin_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/application_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/application_specification_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/exceptions_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/graph_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/headers_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/mail_specification_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/server_specification_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/mailers/mailer_rb.html +56 -0
- data/src/admin_panel/doc/app/app/models/app_exception_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/app_rb.html +54 -0
- data/src/admin_panel/doc/app/app/models/app_time_sample_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/application_specification_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/exception_detail_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/headers_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/mail_specification_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/pseudo_model_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/resource_usage_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/server_specification_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/url_breakup_time_sample_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/url_time_sample_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/user_rb.html +52 -0
- data/src/admin_panel/doc/app/created.rid +42 -1
- data/src/admin_panel/doc/app/doc/README_FOR_APP.html +172 -0
- data/src/admin_panel/doc/app/images/brick.png +0 -0
- data/src/admin_panel/doc/app/images/brick_link.png +0 -0
- data/src/admin_panel/doc/app/images/bug.png +0 -0
- data/src/admin_panel/doc/app/images/bullet_black.png +0 -0
- data/src/admin_panel/doc/app/images/bullet_toggle_minus.png +0 -0
- data/src/admin_panel/doc/app/images/bullet_toggle_plus.png +0 -0
- data/src/admin_panel/doc/app/images/date.png +0 -0
- data/src/admin_panel/doc/app/images/find.png +0 -0
- data/src/admin_panel/doc/app/images/loadingAnimation.gif +0 -0
- data/src/admin_panel/doc/app/images/macFFBgHack.png +0 -0
- data/src/admin_panel/doc/app/images/package.png +0 -0
- data/src/admin_panel/doc/app/images/page_green.png +0 -0
- data/src/admin_panel/doc/app/images/page_white_text.png +0 -0
- data/src/admin_panel/doc/app/images/page_white_width.png +0 -0
- data/src/admin_panel/doc/app/images/plugin.png +0 -0
- data/src/admin_panel/doc/app/images/ruby.png +0 -0
- data/src/admin_panel/doc/app/images/tag_green.png +0 -0
- data/src/admin_panel/doc/app/images/wrench.png +0 -0
- data/src/admin_panel/doc/app/images/wrench_orange.png +0 -0
- data/src/admin_panel/doc/app/images/zoom.png +0 -0
- data/src/admin_panel/doc/app/index.html +564 -20
- data/src/admin_panel/doc/app/js/darkfish.js +116 -0
- data/src/admin_panel/doc/app/js/jquery.js +32 -0
- data/src/admin_panel/doc/app/js/quicksearch.js +114 -0
- data/src/admin_panel/doc/app/js/thickbox-compressed.js +10 -0
- data/src/admin_panel/doc/app/lib/asset_tag_helper_ext_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/control_rb.html +58 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/database_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/resource_usage_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/throughput_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/url_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/url_breakup_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/helper_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/scgi_rb.html +54 -0
- data/src/admin_panel/doc/app/lib/yaml_writer_rb.html +52 -0
- data/src/admin_panel/doc/app/rdoc.css +763 -0
- data/src/admin_panel/lib/helper.rb +6 -2
- data/src/admin_panel/public/stylesheets/other/login.css +8 -4
- data/src/admin_panel/public/stylesheets/other/style.css +21 -17
- data/src/admin_panel/script/rails +6 -0
- data/src/admin_panel/test/test_helper.rb +2 -2
- data/src/admin_panel/vendor/plugins/calendar_date_select/History.txt +281 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/MIT-LICENSE +20 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/Manifest.txt +42 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/README.txt +17 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/Rakefile +37 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/VERSION +1 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/calendar_date_select.gemspec +95 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/init.rb +1 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/functional/cds_test.html +376 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/functional/format_iso_date_test.html +52 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/prototype.js +4184 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/test.css +40 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/unit/cds_helper_methods.html +46 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/unittest.js +564 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select.rb +33 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select/calendar_date_select.rb +122 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select/form_helpers.rb +237 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select/includes_helper.rb +29 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/blank_iframe.html +2 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/images/calendar_date_select/calendar.gif +0 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/calendar_date_select.js +459 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_american.js +35 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_danish.js +31 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_db.js +27 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr.js +7 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +7 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_finnish.js +32 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_hyphen_ampm.js +37 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_iso_date.js +29 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_italian.js +24 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ar.js +10 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/cs.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/da.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/de.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/es.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fi.js +10 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fr.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/hu.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/it.js +9 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ja.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/nl.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pl.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pt.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ru.js +10 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/sl.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/sv.js +9 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/blue.css +130 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/default.css +135 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/green.css +142 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/plain.css +128 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/red.css +135 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/silver.css +133 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/calendar_date_select/calendar_date_select_spec.rb +14 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/calendar_date_select/form_helpers_spec.rb +189 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/calendar_date_select/includes_helper_spec.rb +46 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/spec_helper.rb +26 -0
- data/src/admin_panel/vendor/plugins/open_flash_chart_2_plugin/install.rb +2 -2
- data/src/admin_panel/vendor/plugins/open_flash_chart_2_plugin/uninstall.rb +2 -2
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/README.markdown +13 -0
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/init.rb +1 -0
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb +432 -0
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/test/test_prototype_helper.rb +297 -0
- data/src/helper/wr_config.c +1 -1
- data/src/ruby_lib/analyzer/message_analyzer.rb +1 -0
- data/src/ruby_lib/analyzer/webroar_analyzer.rb +2 -2
- data/src/ruby_lib/profiler/message_dispatcher.rb +1 -1
- data/src/ruby_lib/ruby_interface/version.rb +2 -2
- data/src/ruby_lib/webroar_app_loader.rb +1 -1
- data/tasks/gem.rake +5 -7
- data/tasks/test.rake +1 -0
- data/test/spec/analytics_spec.rb +25 -24
- data/test/spec/test_app/README +142 -129
- data/test/spec/test_app/Rakefile +2 -5
- data/test/spec/test_app/app/controllers/application_controller.rb +3 -8
- data/test/spec/test_app/app/controllers/test_controller.rb +3 -3
- data/test/spec/test_app/app/controllers/users_controller.rb +8 -8
- data/test/spec/test_app/app/helpers/application_helper.rb +2 -1
- data/test/spec/test_app/app/helpers/test_helper.rb +2 -0
- data/test/spec/test_app/app/helpers/users_helper.rb +2 -0
- data/test/spec/test_app/app/models/user.rb +2 -0
- data/test/spec/test_app/app/views/layouts/{users.html.erb → application.html.erb} +6 -9
- data/test/spec/test_app/app/views/test/post_data.html.erb +2 -2
- data/test/spec/test_app/app/views/test/upload_file.html.erb +1 -1
- data/test/spec/test_app/{db/migrate/20090602102438_create_users.rb → app/views/users/_form.html.erb} +22 -11
- data/test/spec/test_app/app/views/users/edit.html.erb +19 -28
- data/test/spec/test_app/app/views/users/index.html.erb +23 -19
- data/test/spec/test_app/app/views/users/new.html.erb +19 -28
- data/test/spec/test_app/app/views/users/show.html.erb +21 -18
- data/test/spec/test_app/config/application.rb +45 -0
- data/test/spec/test_app/config/boot.rb +4 -112
- data/test/spec/test_app/config/database.yml +1 -1
- data/test/spec/test_app/config/environment.rb +4 -41
- data/test/spec/test_app/config/environments/development.rb +22 -13
- data/test/spec/test_app/config/environments/production.rb +41 -20
- data/test/spec/test_app/config/environments/test.rb +35 -28
- data/test/spec/test_app/config/initializers/backtrace_silencers.rb +2 -2
- data/test/spec/test_app/config/initializers/inflections.rb +1 -1
- data/test/spec/test_app/config/initializers/secret_token.rb +7 -0
- data/test/spec/test_app/config/initializers/session_store.rb +3 -10
- data/test/spec/test_app/config/locales/en.yml +5 -0
- data/test/spec/test_app/config/routes.rb +37 -22
- data/test/spec/test_app/db/migrate/20110906113329_create_users.rb +13 -0
- data/test/spec/test_app/db/seeds.rb +7 -0
- data/test/spec/test_app/public/404.html +15 -19
- data/test/spec/test_app/public/422.html +15 -19
- data/test/spec/test_app/public/500.html +14 -18
- data/test/spec/test_app/public/index.html +41 -77
- data/test/spec/test_app/public/javascripts/controls.js +5 -3
- data/test/spec/test_app/public/javascripts/dragdrop.js +7 -6
- data/test/spec/test_app/public/javascripts/effects.js +8 -13
- data/test/spec/test_app/public/javascripts/prototype.js +3381 -1700
- data/test/spec/test_app/public/javascripts/rails.js +191 -0
- data/test/spec/test_app/public/stylesheets/scaffold.css +15 -13
- data/test/spec/test_app/script/rails +6 -0
- metadata +340 -163
- data/src/admin_panel/Gemfile.lock +0 -79
- data/src/admin_panel/doc/app/classes/ActionView.html +0 -111
- data/src/admin_panel/doc/app/classes/ActionView/Helpers.html +0 -111
- data/src/admin_panel/doc/app/classes/ActionView/Helpers/AssetTagHelper.html +0 -149
- data/src/admin_panel/doc/app/classes/AdminController.html +0 -628
- data/src/admin_panel/doc/app/classes/AdminHelper.html +0 -482
- data/src/admin_panel/doc/app/classes/Analytics.html +0 -138
- data/src/admin_panel/doc/app/classes/Analytics/Database.html +0 -245
- data/src/admin_panel/doc/app/classes/Analytics/ResourceUsage.html +0 -478
- data/src/admin_panel/doc/app/classes/Analytics/Throughput.html +0 -316
- data/src/admin_panel/doc/app/classes/Analytics/Url.html +0 -314
- data/src/admin_panel/doc/app/classes/Analytics/UrlBreakup.html +0 -372
- data/src/admin_panel/doc/app/classes/App.html +0 -298
- data/src/admin_panel/doc/app/classes/AppException.html +0 -330
- data/src/admin_panel/doc/app/classes/AppTimeSample.html +0 -427
- data/src/admin_panel/doc/app/classes/ApplicationController.html +0 -118
- data/src/admin_panel/doc/app/classes/ApplicationHelper.html +0 -172
- data/src/admin_panel/doc/app/classes/ApplicationSpecification.html +0 -641
- data/src/admin_panel/doc/app/classes/ApplicationSpecificationController.html +0 -354
- data/src/admin_panel/doc/app/classes/Control.html +0 -273
- data/src/admin_panel/doc/app/classes/ExceptionsController.html +0 -612
- data/src/admin_panel/doc/app/classes/ExceptionsHelper.html +0 -105
- data/src/admin_panel/doc/app/classes/GraphController.html +0 -804
- data/src/admin_panel/doc/app/classes/GraphHelper.html +0 -164
- data/src/admin_panel/doc/app/classes/MailSpecification.html +0 -357
- data/src/admin_panel/doc/app/classes/MailSpecificationController.html +0 -304
- data/src/admin_panel/doc/app/classes/PseudoModel.html +0 -206
- data/src/admin_panel/doc/app/classes/ResourceUsage.html +0 -425
- data/src/admin_panel/doc/app/classes/SCGI.html +0 -406
- data/src/admin_panel/doc/app/classes/ServerSpecification.html +0 -325
- data/src/admin_panel/doc/app/classes/ServerSpecificationController.html +0 -273
- data/src/admin_panel/doc/app/classes/UrlBreakupTimeSample.html +0 -169
- data/src/admin_panel/doc/app/classes/UrlTimeSample.html +0 -708
- data/src/admin_panel/doc/app/classes/User.html +0 -165
- data/src/admin_panel/doc/app/classes/YAMLWriter.html +0 -159
- data/src/admin_panel/doc/app/files/app/controllers/admin_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/application_controller_rb.html +0 -108
- data/src/admin_panel/doc/app/files/app/controllers/application_specification_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/exceptions_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/graph_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/mail_specification_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/server_specification_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/admin_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/application_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/exceptions_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/graph_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/app_exception_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/app_rb.html +0 -108
- data/src/admin_panel/doc/app/files/app/models/app_time_sample_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/application_specification_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/mail_specification_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/pseudo_model_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/resource_usage_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/server_specification_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/url_breakup_time_sample_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/url_time_sample_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/user_rb.html +0 -101
- data/src/admin_panel/doc/app/files/doc/README_FOR_APP.html +0 -109
- data/src/admin_panel/doc/app/files/lib/asset_tag_helper_ext_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/control_rb.html +0 -110
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/database_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/resource_usage_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/throughput_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/url_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/url_breakup_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/scgi_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/yaml_writer_rb.html +0 -101
- data/src/admin_panel/doc/app/fr_class_index.html +0 -60
- data/src/admin_panel/doc/app/fr_file_index.html +0 -58
- data/src/admin_panel/doc/app/fr_method_index.html +0 -206
- data/src/admin_panel/doc/app/rdoc-style.css +0 -208
- data/src/admin_panel/public/dispatch.cgi +0 -10
- data/src/admin_panel/public/dispatch.fcgi +0 -24
- data/src/admin_panel/public/dispatch.rb +0 -10
- data/src/admin_panel/script/about +0 -4
- data/src/admin_panel/script/console +0 -3
- data/src/admin_panel/script/dbconsole +0 -3
- data/src/admin_panel/script/destroy +0 -3
- data/src/admin_panel/script/generate +0 -3
- data/src/admin_panel/script/performance/benchmarker +0 -3
- data/src/admin_panel/script/performance/profiler +0 -3
- data/src/admin_panel/script/performance/request +0 -3
- data/src/admin_panel/script/plugin +0 -3
- data/src/admin_panel/script/process/inspector +0 -3
- data/src/admin_panel/script/process/reaper +0 -3
- data/src/admin_panel/script/process/spawner +0 -3
- data/src/admin_panel/script/runner +0 -3
- data/src/admin_panel/script/server +0 -3
- data/test/spec/test_app/config/initializers/new_rails_defaults.rb +0 -19
- data/test/spec/test_app/script/about +0 -4
- data/test/spec/test_app/script/console +0 -3
- data/test/spec/test_app/script/dbconsole +0 -3
- data/test/spec/test_app/script/destroy +0 -3
- data/test/spec/test_app/script/generate +0 -3
- data/test/spec/test_app/script/performance/benchmarker +0 -3
- data/test/spec/test_app/script/performance/profiler +0 -3
- data/test/spec/test_app/script/plugin +0 -3
- data/test/spec/test_app/script/runner +0 -3
- data/test/spec/test_app/script/server +0 -3
- data/test/spec/test_app/vendor/.placeholder +0 -0
@@ -30,6 +30,5 @@
|
|
30
30
|
<div id = 'exceptions_listing_div'>
|
31
31
|
<%=render :partial => 'exceptions_listing_partial'%>
|
32
32
|
</div>
|
33
|
-
<br>
|
34
33
|
<%= observe_field 'application_name', :update => 'exceptions_listing_div', :url => {:controller => 'exceptions', :action => 'list' }, :with => 'application_name'%>
|
35
34
|
<%end%>
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
<%# this section is for Ploting % of time spent in Data Base Layer by an application%>
|
28
28
|
<div id = 'percentage_db_usage_graph'>
|
29
|
-
|
29
|
+
<%=raw(@percentage_db_usage_graph)%>
|
30
30
|
</div>
|
31
31
|
<br/><br/>
|
32
32
|
<%=render :partial=>'slider_partial',:locals=>{:count=>'first'}%>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<%=render :partial => 'javascript_partial', :locals => {:count => 'first', :start_hour => @start_hour, :end_hour => @end_hour, :app_id => app_id, :type => "app_cpu_usage_graph"}%>
|
24
24
|
<%=render :partial => 'javascript_partial', :locals => {:count => 'second', :start_hour => @start_hour, :end_hour => @end_hour, :app_id => app_id, :type => "app_memory_usage_graph"}%>
|
25
25
|
<div id = 'app_cpu_usage_graph'>
|
26
|
-
|
26
|
+
<%=raw(@app_cpu_usage_graph)%>
|
27
27
|
</div>
|
28
28
|
<br/><br/><br>
|
29
29
|
<%=render :partial => 'slider_partial', :locals => {:count => 'first'}%>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<br/>
|
32
32
|
<%# this section is for Ploting memory Usage Graph for an application%>
|
33
33
|
<div id = 'app_memory_usage_graph'>
|
34
|
-
|
34
|
+
<%=raw(@app_memory_usage_graph)%>
|
35
35
|
</div>
|
36
36
|
<br/><br/><br>
|
37
37
|
<%=render :partial => 'slider_partial', :locals => {:count => 'second'}%>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<%= render :partial => 'query_date', :locals => {:graph_id => 4, :update_div => 'resource_usage_graph_server', :submit_action => 'resource_usage_graph_server'} %>
|
25
25
|
<%# this section is for Ploting CPU Usage of server%>
|
26
26
|
<div id = 'server_cpu_usage_graph' >
|
27
|
-
|
27
|
+
<%=raw(@server_cpu_usage_graph)%>
|
28
28
|
</div>
|
29
29
|
<br/><br/><br>
|
30
30
|
<%=render :partial => 'slider_partial', :locals => {:count => 'first'}%>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<br/>
|
33
33
|
<%# this section is for Ploting Memory Usage of server%>
|
34
34
|
<div id = 'server_memory_usage_graph' >
|
35
|
-
|
35
|
+
<%=raw(@server_memory_usage_graph)%>
|
36
36
|
</div>
|
37
37
|
<br/><br/><br>
|
38
38
|
<%=render :partial => 'slider_partial', :locals => {:count => 'second'}%>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<%=render :partial => 'javascript_partial', :locals => {:count => 'second', :start_hour => @start_hour, :end_hour => @end_hour, :app_id => app_id, :type => "app_throughput_graph"}%>
|
28
28
|
<%# this section is for Ploting average response time Graph for an application%>
|
29
29
|
<div id = 'avg_res_time_graph' >
|
30
|
-
|
30
|
+
<%=raw(@avg_res_time_graph)%>
|
31
31
|
</div>
|
32
32
|
<br/><br/><br>
|
33
33
|
<%=render :partial => 'slider_partial', :locals => {:count => 'first'}%>
|
@@ -35,7 +35,7 @@
|
|
35
35
|
<br/>
|
36
36
|
<%# this section is for Ploting throughput Graph for an application%>
|
37
37
|
<div id='app_throughput_graph' >
|
38
|
-
|
38
|
+
<%=raw(@app_throughput_graph)%>
|
39
39
|
</div>
|
40
40
|
<br/><br/><br>
|
41
41
|
<%=render :partial => 'slider_partial', :locals => {:count => 'second'}%>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<% else%>
|
24
24
|
<%# this section is for Ploting Most Time Consuming url bar Graph for an application%>
|
25
25
|
<div id = 'time_consuming_url_graph'>
|
26
|
-
|
26
|
+
<%=raw(@time_consuming_url_graph)%>
|
27
27
|
</div>
|
28
28
|
<div class='text_align_right'><%=link_to_function "Help",:onclick=>"addHelp('most',event)"%></div>
|
29
29
|
<br/>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<br/>
|
34
34
|
<%# this section is for Ploting Url Hits bar Graph for an application%>
|
35
35
|
<div id = 'url_hits_graph'>
|
36
|
-
|
36
|
+
<%=raw(@url_hits_graph)%>
|
37
37
|
</div>
|
38
38
|
<div class='text_align_right'><%=link_to_function "Help",:onclick=>"addHelp('hits',event)"%></div>
|
39
39
|
<br/>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<br/>
|
44
44
|
<%# this section is for Ploting Slowest Url bar Graph for an application%>
|
45
45
|
<div id = 'slowest_url_graph'>
|
46
|
-
|
46
|
+
<%=raw(@slowest_url_graph)%>
|
47
47
|
</div>
|
48
48
|
<div class='text_align_right'><%=link_to_function "Help",:onclick=>"addHelp('slowest',event)"%></div>
|
49
49
|
<br/>
|
@@ -53,7 +53,7 @@
|
|
53
53
|
<br/>
|
54
54
|
<%# this section is for Ploting Top DataBase Using Urls Usage for an application%>
|
55
55
|
<div id = 'db_consuming_url_graph'>
|
56
|
-
|
56
|
+
<%=raw(@db_consuming_url_graph)%>
|
57
57
|
</div>
|
58
58
|
<div class='text_align_right'><%=link_to_function "Help",:onclick=>"addHelp('db',event)"%></div>
|
59
59
|
<br/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<%if @url_rank%>
|
25
25
|
<div class='text_align_right error'><%=@url_rank%><%=@suffix%> in the most time consuming urls list.</div>
|
26
26
|
<%end%>
|
27
|
-
<%= @url_breakup_graph%>
|
27
|
+
<%= raw(@url_breakup_graph)%>
|
28
28
|
<br/>
|
29
29
|
<%if @data_x %>
|
30
30
|
<%if @data_x.size>0%>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
<%end%>
|
37
37
|
<br/>
|
38
38
|
<div class = 'slider_div'>
|
39
|
-
<table width = 60
|
39
|
+
<table width = 60% align='center'>
|
40
40
|
<tr>
|
41
41
|
<th class = 'sub_header'>S.No</th>
|
42
42
|
<th colspan = 2 class = 'sub_header'></th>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<div id = 'err_msg_div'></div>
|
22
22
|
<div class='text_align_right'>
|
23
23
|
|
24
|
-
|
24
|
+
<%= form_remote_tag :update => {:failure => 'err_msg_div', :success => update_div}, :url=>{:controller=>'graph', :action=> submit_action , :app_id=>@app_id} do%>
|
25
25
|
Date : <%= calendar_date_select_tag "date",
|
26
26
|
session[:start_time].strftime("%B %d, %Y"),
|
27
27
|
:year_range => 3.years.ago..0.years.ago,
|
@@ -19,7 +19,7 @@
|
|
19
19
|
#%>
|
20
20
|
<div id = 'err_msg_div'></div>
|
21
21
|
<div class='text_align_right'>
|
22
|
-
|
22
|
+
<%= form_remote_tag :update => {:failure => 'err_msg_div', :success => update_div}, :url=>{:controller=>'graph', :action=> submit_action , :app_id=>@app_id} do%>
|
23
23
|
From : <%= calendar_date_select_tag "from_date",
|
24
24
|
session[:from_date].strftime("%B %d, %Y"),
|
25
25
|
:year_range => 3.years.ago..0.years.ago,
|
@@ -16,11 +16,12 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with WebROaR. If not, see <http://www.gnu.org/licenses/>.
|
19
|
-
|
19
|
+
#
|
20
|
+
%>
|
20
21
|
|
21
|
-
<div id='slider_div'>
|
22
|
-
<div id
|
22
|
+
<div id='slider_div' align='center'>
|
23
|
+
<div align='center' id='slider_new_<%=count%>' style='width:420px'></div>
|
23
24
|
<br/>
|
24
|
-
<div style = "width:
|
25
|
+
<div style = "width:456px;color:#666666;"><span>00:00</span><span style = "margin-left:35px">04:00</span><span style = "margin-left:35px">08:00</span><span style = "margin-left:35px">12:00</span><span style = "margin-left:35px">16:00</span><span style = "margin-left:35px">20:00</span><span style = "margin-left:35px">23:59</span></div>
|
25
26
|
</div>
|
26
27
|
<br/>
|
@@ -19,10 +19,10 @@
|
|
19
19
|
#%>
|
20
20
|
|
21
21
|
<%old_value = Headers.get_expires_value()%>
|
22
|
-
|
23
|
-
<%=text_field :data, :value, :size => '10', :value =>
|
22
|
+
<%= remote_form_for :data, :update => params[:div_id], :html => { :onsubmit => "if(!validate_headers_expire(this,'#{params[:div_id]}','#{old_value}')){return false;}"} , :url => {:controller => 'headers', :action => 'save_expires_value', :div_id => params[:div_id], :old_value => old_value} do %>
|
23
|
+
<%=text_field :data, :value, :size => '10', :value => old_value%>
|
24
24
|
<%=submit_tag 'Save'%>
|
25
|
-
<%end%>
|
26
|
-
|
25
|
+
<% end %>
|
26
|
+
<%= remote_form_for :cancel, :update => params[:div_id], :url => {:controller => 'headers', :action => 'cancel_expires_value_edit', :div_id => params[:div_id], :old_value => old_value} do %>
|
27
27
|
<%=submit_tag 'Cancel'%>
|
28
|
-
<%end%>
|
28
|
+
<% end %>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
# along with WebROaR. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
#%>
|
20
20
|
|
21
|
-
|
21
|
+
<%= remote_form_for :data, :html => { :onsubmit => 'if(!validate_expire_by_type(this)){return false;}'} , :url => {:controller => 'headers', :action => 'save_expires_by_type_value' } do %>
|
22
22
|
<table width = 100% >
|
23
23
|
<tr>
|
24
24
|
<td colspan = 3 id='error_div_expire_by_type' style="padding:0px;"><% if @error_message %><%= @error_message %><% end%></td>
|
@@ -18,19 +18,19 @@
|
|
18
18
|
# along with WebROaR. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
#%>
|
20
20
|
<% expires = Headers.get_expires_value() %>
|
21
|
-
<table width = 95% >
|
21
|
+
<table width = 95% align='center'>
|
22
22
|
<tr>
|
23
23
|
<th colspan = 3>
|
24
|
-
Headers <%=link_to_function "Help", :onclick => "addHelp('headers',event)" %>
|
24
|
+
Headers <%= link_to_function "Help", :onclick => "addHelp('headers',event)" %>
|
25
25
|
</th>
|
26
26
|
</tr>
|
27
27
|
<tr>
|
28
28
|
<td width = 40% >
|
29
|
-
Expires <%=link_to_function "Help", :onclick => "addHelp('expires',event)" %>
|
29
|
+
Expires <%= link_to_function "Help", :onclick => "addHelp('expires',event)" %>
|
30
30
|
</td>
|
31
31
|
<td width = 40% >
|
32
32
|
<div id = 'expires_div'>
|
33
|
-
<%=
|
33
|
+
<%= expires %>
|
34
34
|
</div>
|
35
35
|
</td>
|
36
36
|
<td width = 20% >
|
@@ -39,17 +39,17 @@
|
|
39
39
|
</tr>
|
40
40
|
<tr>
|
41
41
|
<th colspan = 3>
|
42
|
-
Expires By Type <%=link_to_function "Help", :onclick => "addHelp('expires_by_type',event)" %>
|
42
|
+
Expires By Type <%= link_to_function "Help", :onclick => "addHelp('expires_by_type',event)" %>
|
43
43
|
</th>
|
44
44
|
</tr>
|
45
45
|
<% expires_by_type_array = Headers.get_expires_by_type_array() %>
|
46
46
|
<% if expires_by_type_array.length > 0 %>
|
47
47
|
<tr>
|
48
48
|
<td class = 'sub_header text_align_center'>
|
49
|
-
Extension <%=link_to_function "Help", :onclick => "addHelp('expires_by_type_ext',event)" %>
|
49
|
+
Extension <%= link_to_function "Help", :onclick => "addHelp('expires_by_type_ext',event)" %>
|
50
50
|
</td>
|
51
51
|
<td class = 'sub_header text_align_center'>
|
52
|
-
Expires <%=link_to_function "Help", :onclick => "addHelp('expires_by_type_expires_value',event)" %>
|
52
|
+
Expires <%= link_to_function "Help", :onclick => "addHelp('expires_by_type_expires_value',event)" %>
|
53
53
|
</td>
|
54
54
|
<td class = 'sub_header text_align_center'></td>
|
55
55
|
</tr>
|
@@ -57,13 +57,13 @@
|
|
57
57
|
<% expires_by_type_array.each do |item| %>
|
58
58
|
<tr>
|
59
59
|
<td >
|
60
|
-
<%=
|
60
|
+
<%= item['ext'] %>
|
61
61
|
</td>
|
62
62
|
<td >
|
63
|
-
<%=
|
63
|
+
<%= item['expires'] %>
|
64
64
|
</td>
|
65
65
|
<td >
|
66
|
-
<%=link_to_remote "Delete", :update => 'headers_div', :url => {:controller => 'headers', :action => 'delete_expires_by_type', :id => index}, :confirm => "Are you sure to delete?", :oncontextmenu => 'return false;' %>
|
66
|
+
<%= link_to_remote "Delete", :update => 'headers_div', :url => {:controller => 'headers', :action => 'delete_expires_by_type', :id => index}, :confirm => "Are you sure to delete?", :oncontextmenu => 'return false;' %>
|
67
67
|
</td>
|
68
68
|
</tr>
|
69
69
|
<% index += 1%>
|
@@ -80,8 +80,8 @@
|
|
80
80
|
</tr>
|
81
81
|
<% end %>
|
82
82
|
<tr>
|
83
|
-
<td align
|
84
|
-
<%=link_to_remote "Add Expires By Type", :update => 'expires_by_type_form', :url => {:controller => 'headers', :action => 'add_expires_by_type_form'} %>
|
83
|
+
<td style="text-align:right;" colspan='3'>
|
84
|
+
<%= link_to_remote "Add Expires By Type", :update => 'expires_by_type_form', :url => {:controller => 'headers', :action => 'add_expires_by_type_form'} %>
|
85
85
|
</td>
|
86
86
|
</tr>
|
87
87
|
</table>
|
@@ -16,19 +16,20 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with WebROaR. If not, see <http://www.gnu.org/licenses/>.
|
19
|
-
|
19
|
+
#
|
20
|
+
%>
|
20
21
|
|
21
22
|
<html>
|
22
23
|
<head>
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
24
|
+
<title>WebROaR - Admin Panel</title>
|
25
|
+
<%= javascript_include_tag :defaults %>
|
26
|
+
<%= javascript_include_tag 'application' %>
|
27
|
+
<%= javascript_include_tag 'swfobject' %>
|
28
|
+
<%= stylesheet_link_tag 'ui.all.css','netscape/style.css' %>
|
29
|
+
<%= javascript_include_tag 'jquery-1.3.2'%>
|
30
|
+
<%= javascript_include_tag 'ui.core.js'%>
|
31
|
+
<%= javascript_include_tag 'ui.slider.js'%>
|
32
|
+
<script>
|
32
33
|
$j=jQuery.noConflict();
|
33
34
|
<!--
|
34
35
|
var browserName=navigator.appName;
|
@@ -36,83 +37,102 @@
|
|
36
37
|
{
|
37
38
|
if(navigator.userAgent.match("Safari"))
|
38
39
|
{
|
39
|
-
document.write('<%= stylesheet_link_tag 'safari/style.css' %>');
|
40
|
-
|
40
|
+
document.write('<%= stylesheet_link_tag 'safari/style.css' %>');
|
41
41
|
}
|
42
42
|
else
|
43
43
|
{
|
44
|
-
document.write('<%= stylesheet_link_tag 'netscape/style.css' %>');
|
44
|
+
document.write('<%= stylesheet_link_tag 'netscape/style.css' %>');
|
45
45
|
}
|
46
46
|
}
|
47
47
|
else
|
48
48
|
{
|
49
|
-
document.write('<%= stylesheet_link_tag 'other/style.css' %>');
|
50
|
-
|
51
|
-
|
49
|
+
document.write('<%= stylesheet_link_tag 'other/style.css' %>');
|
50
|
+
}
|
52
51
|
-->
|
53
52
|
</script>
|
54
|
-
<script type="text/javascript"
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
53
|
+
<script type="text/javascript"><
|
54
|
+
!--
|
55
|
+
function MM_swap(name,classname) {
|
56
|
+
Element.toggleClassName(name,classname);
|
57
|
+
}
|
58
|
+
|
59
|
+
//-->
|
60
60
|
</script>
|
61
61
|
<%= link_tag("/favicon.ico", :rel => "shortcut icon") %>
|
62
62
|
</head>
|
63
63
|
<body class='text_align_center'>
|
64
64
|
<div id = "body_container">
|
65
65
|
<div id = 'header'>
|
66
|
-
<%=link_to image_tag("logout.gif", :border => 0, :size => '17x17'), logout_path%>
|
67
|
-
<%=link_to 'Logout', logout_path%><br>
|
68
|
-
<div id = 'time_div'><%=Time.now.strftime("%d-%b-%Y %H:%M")%></div>
|
66
|
+
<%= link_to image_tag("logout.gif", :border => 0, :size => '17x17'), logout_path%>
|
67
|
+
<%= link_to 'Logout', logout_path%><br>
|
68
|
+
<div id = 'time_div'><%= Time.now.strftime("%d-%b-%Y %H:%M")%></div>
|
69
69
|
</div>
|
70
70
|
<div id = 'container_menu'>
|
71
71
|
<div id = 'logo_div'>
|
72
|
-
<%=link_to image_tag("webroar-logo.gif", :border => 0), home_path%>
|
72
|
+
<%= link_to image_tag("webroar-logo.gif", :border => 0), home_path%>
|
73
73
|
</div>
|
74
74
|
<div id = 'menu_tab_div'>
|
75
|
-
<%tab1, tab2, tab3, tab4, tab5, tab6 = get_tab_class_name(controller_name, action_name.to_s)%>
|
75
|
+
<% tab1, tab2, tab3, tab4, tab5, tab6 = get_tab_class_name(controller_name, action_name.to_s)%>
|
76
76
|
<table cellpadding = "0" cellspacing = "0">
|
77
77
|
<tr>
|
78
|
-
<td><%=image_tag 'left_menu.gif', :border => '0'%></td>
|
78
|
+
<td><%= image_tag 'left_menu.gif', :border => '0'%></td>
|
79
79
|
<td width = "730" bgcolor = "#990b0a"><table width = "100%" border = "0" cellpadding = "0" cellspacing = "0">
|
80
80
|
<tr>
|
81
81
|
<td width = "20"> </td>
|
82
|
-
<td width = "20"><%str = "<div id = 'Image10' name = 'Image10' class = #{tab1[0]}></div>"%>
|
83
|
-
<%str1 = "MM_swap('Image10', '#{tab1[1]}')"%>
|
84
|
-
<%=link_to str,home_path,{:onmouseout => str1, :onmouseover => str1}%></td>
|
82
|
+
<td width = "20"><% str = "<div id = 'Image10' name = 'Image10' class = #{tab1[0]}></div>"%>
|
83
|
+
<% str1 = "MM_swap('Image10', '#{tab1[1]}')"%>
|
84
|
+
<%= link_to raw(str),home_path,{:onmouseout => str1, :onmouseover => str1}%></td>
|
85
85
|
<td width = "20"> </td>
|
86
|
-
<td width = "20"><%str = "<div id = 'Image11' name = 'Image11' class = #{tab2[0]}></div>"%>
|
87
|
-
<%str1 = "MM_swap('Image11', '#{tab2[1]}')"%>
|
88
|
-
<%=link_to str, configuration_path,{:onmouseout => str1, :onmouseover => str1}%></td>
|
86
|
+
<td width = "20"><% str = "<div id = 'Image11' name = 'Image11' class = #{tab2[0]}></div>"%>
|
87
|
+
<% str1 = "MM_swap('Image11', '#{tab2[1]}')"%>
|
88
|
+
<%= link_to raw(str), configuration_path,{:onmouseout => str1, :onmouseover => str1}%></td>
|
89
89
|
<td width = "20"> </td>
|
90
|
-
<td width = "29"><%str = "<div id = 'Image12' name = 'Image12' class = #{tab3[0]}></div>"%>
|
91
|
-
<%str1="MM_swap('Image12', '#{tab3[1]}')"%>
|
92
|
-
<%=link_to str, analytics_path, {:onmouseout => str1, :onmouseover => str1}%></td>
|
90
|
+
<td width = "29"><% str = "<div id = 'Image12' name = 'Image12' class = #{tab3[0]}></div>"%>
|
91
|
+
<% str1="MM_swap('Image12', '#{tab3[1]}')"%>
|
92
|
+
<%= link_to raw(str), analytics_path, {:onmouseout => str1, :onmouseover => str1}%></td>
|
93
93
|
<td width = "20"> </td>
|
94
|
-
<td width = "29"><%str = "<div id = 'Image13' name = 'Image13' class = #{tab4[0]}></div>"%>
|
95
|
-
<%str1 = "MM_swap('Image13', '#{tab4[1]}')"%>
|
96
|
-
<%=link_to str, exceptions_path, {:onmouseout => str1, :onmouseover => str1}%></td>
|
94
|
+
<td width = "29"><% str = "<div id = 'Image13' name = 'Image13' class = #{tab4[0]}></div>"%>
|
95
|
+
<% str1 = "MM_swap('Image13', '#{tab4[1]}')"%>
|
96
|
+
<%= link_to raw(str), exceptions_path, {:onmouseout => str1, :onmouseover => str1}%></td>
|
97
97
|
<td width = "20"> </td>
|
98
|
-
<td width = "29"><%str = "<div id = 'Image14' name = 'Image14' class = #{tab5[0]}></div>"%>
|
99
|
-
<%str1 = "MM_swap('Image14', '#{tab5[1]}')"%>
|
100
|
-
<%=link_to str, settings_path, {:onmouseout => str1, :onmouseover => str1}%></td>
|
98
|
+
<td width = "29"><% str = "<div id = 'Image14' name = 'Image14' class = #{tab5[0]}></div>"%>
|
99
|
+
<% str1 = "MM_swap('Image14', '#{tab5[1]}')"%>
|
100
|
+
<%= link_to raw(str), settings_path, {:onmouseout => str1, :onmouseover => str1}%></td>
|
101
101
|
<td width = "20"> </td>
|
102
|
-
<td width = "29"><%str = "<div id = 'Image15' name = 'Image15' class = #{tab6[0]}></div>"%>
|
103
|
-
<%str1 = "MM_swap('Image15', '#{tab6[1]}')"%>
|
104
|
-
<%=link_to str, contact_us_path, {:onmouseout => str1, :onmouseover => str1}%></td>
|
102
|
+
<td width = "29"><% str = "<div id = 'Image15' name = 'Image15' class = #{tab6[0]}></div>"%>
|
103
|
+
<% str1 = "MM_swap('Image15', '#{tab6[1]}')"%>
|
104
|
+
<%= link_to raw(str), contact_us_path, {:onmouseout => str1, :onmouseover => str1}%></td>
|
105
105
|
<td width = "20"> </td>
|
106
106
|
</tr>
|
107
107
|
</table></td>
|
108
|
-
<td><%=image_tag 'right_menu.gif', :border => '0'%></td>
|
108
|
+
<td><%= image_tag 'right_menu.gif', :border => '0'%></td>
|
109
109
|
</tr>
|
110
110
|
</table>
|
111
111
|
</div>
|
112
112
|
</div>
|
113
113
|
<div id = 'container'>
|
114
|
-
|
114
|
+
<%= yield%>
|
115
|
+
<br>
|
115
116
|
</div>
|
117
|
+
<script>
|
118
|
+
function changeContainerHeight() {
|
119
|
+
var browserName=navigator.appName;
|
120
|
+
if(!(browserName == "Netscape")) {
|
121
|
+
var ie_name = navigator.userAgent.match("MSIE [0-9].[0-9]");
|
122
|
+
if(ie_name)
|
123
|
+
var ie = ie_name.toString();
|
124
|
+
else
|
125
|
+
return;
|
126
|
+
var ie_version = ie.split(" ")[ie.split(" ").length-1];
|
127
|
+
if(parseFloat(ie_version)>=8.0) {
|
128
|
+
$("container").setStyle({minHeight : 680});
|
129
|
+
} else {
|
130
|
+
$("container").setStyle({height : 680});
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
changeContainerHeight();
|
135
|
+
</script>
|
116
136
|
<div id = 'bottom_link_div'>
|
117
137
|
Copyright © 2009 Goonj LLC
|
118
138
|
</div>
|
@@ -125,11 +145,11 @@
|
|
125
145
|
<tr>
|
126
146
|
<td align="center" valign="center">
|
127
147
|
<div id = 'message_box_header'>
|
128
|
-
<%=link_to image_tag('close.gif', :size => '15x15', :border => 0), '#' , :onClick => '$("message_box").hide(); $("overlay").hide(); return false;' %>
|
148
|
+
<%= link_to image_tag('close.gif', :size => '15x15', :border => 0), '#' , :onClick => '$("message_box").hide(); $("overlay").hide(); return false;' %>
|
129
149
|
</div>
|
130
150
|
<div id = 'message_box_body'>
|
131
|
-
<%=flash[:server_message]%><br/>
|
132
|
-
<%=flash[:error]%>
|
151
|
+
<%= flash[:server_message]%><br/>
|
152
|
+
<%= flash[:error]%>
|
133
153
|
<br/>
|
134
154
|
<%= button_to_function 'Ok', :onClick => '$("message_box").hide(); $("overlay").hide(); return false;'%>
|
135
155
|
</div>
|