diff --git a/.gitignore b/.gitignore index 56172aaff..c834d231d 100644 --- a/.gitignore +++ b/.gitignore @@ -18,5 +18,8 @@ orig.public public/maps/* config/initializers/site_keys.rb .Rproj.user +public/assets +script/load.bety.sh - +# Ignore encrypted secrets key file. +config/secrets.yml.key diff --git a/.ruby-gemset b/.ruby-gemset index b37d060df..1d2770e17 100644 --- a/.ruby-gemset +++ b/.ruby-gemset @@ -1 +1 @@ -betydb_rails3 +betydb_rails5 diff --git a/.ruby-version b/.ruby-version index d427c89b6..a831048a2 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-2.1.5 +ruby-2.3.0 diff --git a/.travis.yml b/.travis.yml index baaad9d05..1b206e858 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,6 @@ sudo: false # versions of ruby to use # see the list at http://rubies.travis-ci.org/ rvm: - - 2.1.5 - - 2.1.8 - 2.2.4 - 2.3.0 diff --git a/Dockerfile b/Dockerfile index e2fa2de5b..48c079548 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:2.1 +FROM ruby:2.3 MAINTAINER Max Burnette # Install dependencies @@ -6,7 +6,9 @@ RUN apt-get update \ && apt-get install --no-install-recommends -y \ curl \ git \ + libgeos-dev \ netcat \ + nodejs \ postgresql-client \ && rm -rf /var/lib/apt/lists/* @@ -15,15 +17,17 @@ WORKDIR /home/bety # install gems (allowing for caching) COPY /Gemfile* /home/bety/ -RUN gem install bundler && \ - bundle install --without javascript_testing --path vendor/bundle +RUN gem install bundler \ + && bundle install --with docker --without "test development production debug javascript_testing" + # port that is exposed (standard ruby port) -EXPOSE 3000 +EXPOSE 8000 # copy rest of the files COPY / /home/bety COPY /docker/database.yml /home/bety/config/database.yml +COPY /docker/config.ru /home/bety/config.ru # download dump.bety and load.bety scripts and configure app RUN curl -LOs https://raw.githubusercontent.com/PecanProject/pecan/master/scripts/load.bety.sh \ @@ -41,11 +45,18 @@ ARG BETY_GIT_DATE="unknown" ENV LOCAL_SERVER=99 \ REMOTE_SERVERS="0 1 2 5" \ RAILS_ENV="production" \ + RAILS_RELATIVE_URL_ROOT="" \ + SECRET_KEY_BASE="ThisIsNotReallySuchAGreatSecret" \ + UNICORN_WORKER_PROCESSES="3" \ + UNICORN_PORT="8000" \ BETY_GIT_TAGS=${BETY_GIT_TAGS} \ BETY_GIT_BRANCH=${BETY_GIT_BRANCH} \ BETY_GIT_CHECKSUM=${BETY_GIT_CHECKSUM} \ BETY_GIT_DATE=${BETY_GIT_DATE} +# expose public files +VOLUME ["/home/bety/public"] + # default command to run bety web-app ENTRYPOINT ["/home/bety/docker/entrypoint.sh"] -CMD ["server"] +CMD ["unicorn"] diff --git a/Gemfile b/Gemfile index a7577b585..2d9206e10 100644 --- a/Gemfile +++ b/Gemfile @@ -1,16 +1,15 @@ source "http://rubygems.org" -gem "rails", "4.2.10" +gem "rails", "5.1.5" # needed for rails 3.1 and above until we phase out prototype: -gem 'prototype-rails', github: 'rails/prototype-rails', branch: '4.2' # see https://github.com/rails/prototype-rails/issues/37 -gem "query_reviewer", "0.1.6" +## gem 'prototype-rails', github: 'rails/prototype-rails', branch: '4.2' # see https://github.com/rails/prototype-rails/issues/37 gem "nokogiri" gem "narray", "0.6.0.4" gem "choice", "0.1.6" gem "comma", "3.0.4" gem "json" gem "rgeo", "~> 0.5.0" -gem "multi_json", "1.3.6" +gem "multi_json" gem "railroad", "0.5.0" gem "recaptcha", "4.8.0", :require => "recaptcha/rails" gem "ruby-graphviz", "1.0.8" @@ -25,10 +24,13 @@ gem 'rabl' gem 'yajl-ruby', '~> 1.3.1' gem 'rubyzip', '~> 1.2.1' gem 'activerecord-session_store' # no longer part of Rails proper -gem 'protected_attributes' # Use this until and unless we start using Strong Parameters. +gem 'protected_attributes_continued' # Use this until and unless we start using Strong Parameters. +gem 'sass-rails' +gem 'coffee-rails' +gem 'uglifier' -# to-do: remove prototype dependencies so we no longer need this gem -gem 'prototype_legacy_helper', '0.0.0', :git => 'git://github.com/rails/prototype_legacy_helper.git' +gem 'jquery-rails' +gem 'jquery-ui-rails' gem 'memoist' @@ -53,13 +55,17 @@ group :development, :test do gem "yard" end - +group :development, :test do + gem "pry-rails" + gem "pry-byebug" +end group :test do # phasing out webrat: # gem "webrat", "0.7.1" - gem "capybara" + gem "capybara", "~> 2.8" gem "database_cleaner" + gem "rails-controller-testing" # TO-DO: rewrite the specs that rely on this end # If you have difficulty installing or don't wish to install capybara-webkit, @@ -68,7 +74,7 @@ end # bundle install --without javascript_testing # group :javascript_testing do - gem "capybara-webkit", "1.7.1" + gem "capybara-webkit", "~>1.7" end # This group is used by RSpec if the environment variable RAILS_DEBUG is set to @@ -78,19 +84,20 @@ group :debug do gem "pry" end -# Comment this out if you can't or don't wish to install capybara-webkit: - group :production do - # gem "rmagick", "2.13.1" gem "passenger" end +group :docker do + gem 'unicorn' +end + # API-related Gems: gem "rspec_api_documentation" gem "json-schema" # needed by rspec_api_documentation -gem "apipie-rails" +gem "apipie-rails", "0.5.6" # Although it was previously noted that test-unit seems to be needed by # apipie-rails and prototype-rails, it interferes with routing specs, so we are diff --git a/Gemfile.lock b/Gemfile.lock index 83f34285e..0a77f2f08 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,164 +1,180 @@ -GIT - remote: git://github.com/rails/prototype-rails.git - revision: 0fed929ff48c10c3b978edd3baa983a81f404dbf - branch: 4.2 - specs: - prototype-rails (4.0.0) - rails (~> 4.0) - -GIT - remote: git://github.com/rails/prototype_legacy_helper.git - revision: a2cd95c3e3c1a4f7a9566efdab5ce59c886cb05f - specs: - prototype_legacy_helper (0.0.0) - GEM remote: http://rubygems.org/ specs: - actionmailer (4.2.10) - actionpack (= 4.2.10) - actionview (= 4.2.10) - activejob (= 4.2.10) + actioncable (5.1.5) + actionpack (= 5.1.5) + nio4r (~> 2.0) + websocket-driver (~> 0.6.1) + actionmailer (5.1.5) + actionpack (= 5.1.5) + actionview (= 5.1.5) + activejob (= 5.1.5) mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.10) - actionview (= 4.2.10) - activesupport (= 4.2.10) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) + rails-dom-testing (~> 2.0) + actionpack (5.1.5) + actionview (= 5.1.5) + activesupport (= 5.1.5) + rack (~> 2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.10) - activesupport (= 4.2.10) + actionview (5.1.5) + activesupport (= 5.1.5) builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (4.2.10) - activesupport (= 4.2.10) - globalid (>= 0.3.0) - activemodel (4.2.10) - activesupport (= 4.2.10) - builder (~> 3.1) - activerecord (4.2.10) - activemodel (= 4.2.10) - activesupport (= 4.2.10) - arel (~> 6.0) - activerecord-postgis-adapter (3.1.5) - activerecord (~> 4.2) - rgeo-activerecord (>= 4.0.4) - activerecord-session_store (0.1.2) - actionpack (>= 4.0.0, < 5) - activerecord (>= 4.0.0, < 5) - railties (>= 4.0.0, < 5) - activesupport (4.2.10) + activejob (5.1.5) + activesupport (= 5.1.5) + globalid (>= 0.3.6) + activemodel (5.1.5) + activesupport (= 5.1.5) + activerecord (5.1.5) + activemodel (= 5.1.5) + activesupport (= 5.1.5) + arel (~> 8.0) + activerecord-postgis-adapter (5.0.3) + activerecord (~> 5.1) + rgeo-activerecord (~> 5.1) + activerecord-session_store (1.1.1) + actionpack (>= 4.0) + activerecord (>= 4.0) + multi_json (~> 1.11, >= 1.11.2) + rack (>= 1.5.2, < 3) + railties (>= 4.0) + activesupport (5.1.5) + concurrent-ruby (~> 1.0, >= 1.0.2) i18n (~> 0.7) minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) addressable (2.5.2) public_suffix (>= 2.0.2, < 4.0) - apipie-rails (0.4.0) - json - rails (>= 4.0) - arel (6.0.4) + apipie-rails (0.5.6) + rails (>= 4.1) + arel (8.0.0) bootstrap-will_paginate (1.0.0) will_paginate builder (3.2.3) - capybara (2.5.0) - mime-types (>= 1.16) + byebug (10.0.2) + capybara (2.18.0) + addressable + mini_mime (>= 0.1.3) nokogiri (>= 1.3.3) rack (>= 1.0.0) rack-test (>= 0.5.4) - xpath (~> 2.0) - capybara-webkit (1.7.1) - capybara (>= 2.3.0, < 2.6.0) + xpath (>= 2.0, < 4.0) + capybara-webkit (1.15.0) + capybara (>= 2.3, < 4.0) json - childprocess (0.8.0) + childprocess (0.9.0) ffi (~> 1.0, >= 1.0.11) choice (0.1.6) coderay (1.1.2) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) comma (3.0.4) concurrent-ruby (1.0.5) - crass (1.0.3) - database_cleaner (1.6.2) + crass (1.0.4) + database_cleaner (1.7.0) diff-lcs (1.3) dynamic_form (1.1.4) - erubis (2.7.0) - ffi (1.9.18) + erubi (1.7.1) + execjs (2.7.0) + ffi (1.9.23) globalid (0.4.1) activesupport (>= 4.2.0) - i18n (0.9.3) + i18n (0.9.5) concurrent-ruby (~> 1.0) + jquery-rails (4.3.3) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + jquery-ui-rails (6.0.1) + railties (>= 3.2.16) json (2.1.0) json-schema (2.8.0) addressable (>= 2.4) - loofah (2.1.1) + kgio (2.11.2) + loofah (2.2.2) crass (~> 1.0.2) nokogiri (>= 1.5.9) mail (2.7.0) mini_mime (>= 0.1.1) memoist (0.16.0) method_source (0.9.0) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) mini_mime (1.0.0) mini_portile2 (2.3.0) minitest (5.11.3) - multi_json (1.3.6) + multi_json (1.13.1) mustache (1.0.5) narray (0.6.0.4) - nokogiri (1.8.1) + nio4r (2.3.0) + nokogiri (1.8.2) mini_portile2 (~> 2.3.0) - passenger (5.1.12) + passenger (5.3.4) rack rake (>= 0.8.1) - pg (0.21.0) - protected_attributes (1.1.4) - activemodel (>= 4.0.1, < 5.0) + pg (1.0.0) + protected_attributes_continued (1.3.0) + activemodel (~> 5.0) pry (0.11.3) coderay (~> 1.1.0) method_source (~> 0.9.0) - public_suffix (3.0.1) - query_reviewer (0.1.6) + pry-byebug (3.6.0) + byebug (~> 10.0) + pry (~> 0.10) + pry-rails (0.3.6) + pry (>= 0.10.4) + public_suffix (3.0.2) rabl (0.13.1) activesupport (>= 2.3.14) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) + rack (2.0.5) + rack-test (1.0.0) + rack (>= 1.0, < 3) railroad (0.5.0) - rails (4.2.10) - actionmailer (= 4.2.10) - actionpack (= 4.2.10) - actionview (= 4.2.10) - activejob (= 4.2.10) - activemodel (= 4.2.10) - activerecord (= 4.2.10) - activesupport (= 4.2.10) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.10) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.9) - activesupport (>= 4.2.0, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) + rails (5.1.5) + actioncable (= 5.1.5) + actionmailer (= 5.1.5) + actionpack (= 5.1.5) + actionview (= 5.1.5) + activejob (= 5.1.5) + activemodel (= 5.1.5) + activerecord (= 5.1.5) + activesupport (= 5.1.5) + bundler (>= 1.3.0) + railties (= 5.1.5) + sprockets-rails (>= 2.0.0) + rails-controller-testing (1.0.2) + actionpack (~> 5.x, >= 5.0.1) + actionview (~> 5.x, >= 5.0.1) + activesupport (~> 5.x) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.4) + loofah (~> 2.2, >= 2.2.2) rails3-restful-authentication (3.0.1) - railties (4.2.10) - actionpack (= 4.2.10) - activesupport (= 4.2.10) + railties (5.1.5) + actionpack (= 5.1.5) + activesupport (= 5.1.5) + method_source rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) - rake (12.3.0) + raindrops (0.19.0) + rake (12.3.1) + rb-fsevent (0.10.3) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) recaptcha (4.8.0) json rgeo (0.5.3) - rgeo-activerecord (4.0.5) - activerecord (~> 4.2) + rgeo-activerecord (5.1.1) + activerecord (~> 5.0) rgeo (~> 0.3) rspec (3.7.0) rspec-core (~> 3.7.0) @@ -180,7 +196,7 @@ GEM rspec-expectations (~> 3.7.0) rspec-mocks (~> 3.7.0) rspec-support (~> 3.7.0) - rspec-support (3.7.0) + rspec-support (3.7.1) rspec_api_documentation (5.1.0) activesupport (>= 3.0.0) mustache (~> 1.0, >= 0.99.4) @@ -189,10 +205,21 @@ GEM rubyzip (1.2.1) safe_attributes (1.0.10) activerecord (>= 3.0.0) + sass (3.5.6) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) seer (0.10.0) - selenium-webdriver (3.8.0) + selenium-webdriver (3.11.0) childprocess (~> 0.5) - rubyzip (~> 1.0) + rubyzip (~> 1.2) sprockets (3.7.1) concurrent-ruby (~> 1.0) rack (> 1, < 3) @@ -202,12 +229,21 @@ GEM sprockets (>= 3.0.0) thor (0.20.0) thread_safe (0.3.6) + tilt (2.0.8) trollop (2.1.2) - tzinfo (1.2.4) + tzinfo (1.2.5) thread_safe (~> 0.1) + uglifier (4.1.9) + execjs (>= 0.3.0, < 3) + unicorn (5.4.0) + kgio (~> 2.6) + raindrops (~> 0.7) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) will_paginate (3.1.6) - xpath (2.1.0) - nokogiri (~> 1.3) + xpath (3.0.0) + nokogiri (~> 1.8) yajl-ruby (1.3.1) yard (0.9.12) @@ -217,30 +253,33 @@ PLATFORMS DEPENDENCIES activerecord-postgis-adapter activerecord-session_store - apipie-rails + apipie-rails (= 0.5.6) bootstrap-will_paginate - capybara - capybara-webkit (= 1.7.1) + capybara (~> 2.8) + capybara-webkit (~> 1.7) choice (= 0.1.6) + coffee-rails comma (= 3.0.4) database_cleaner dynamic_form + jquery-rails + jquery-ui-rails json json-schema memoist - multi_json (= 1.3.6) + multi_json narray (= 0.6.0.4) nokogiri passenger pg - protected_attributes - prototype-rails! - prototype_legacy_helper (= 0.0.0)! + protected_attributes_continued pry - query_reviewer (= 0.1.6) + pry-byebug + pry-rails rabl railroad (= 0.5.0) - rails (= 4.2.10) + rails (= 5.1.5) + rails-controller-testing rails3-restful-authentication (~> 3.0.1) recaptcha (= 4.8.0) rgeo (~> 0.5.0) @@ -249,10 +288,13 @@ DEPENDENCIES ruby-graphviz (= 1.0.8) rubyzip (~> 1.2.1) safe_attributes + sass-rails seer (= 0.10.0) selenium-webdriver trollop tzinfo + uglifier + unicorn will_paginate yajl-ruby (~> 1.3.1) yard diff --git a/README.md b/README.md index 69eab408a..00485bd36 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,27 @@ This is the source code for the [Biofuel Ecophysiological Traits and Yields data The website is primarily written in Ruby-on-Rails, and has a PostgreSQL backend. BETYdb provides an interface for contributing and accessing data, and is the informatics backend for the [Predictive Ecosystem Analyzer (PEcAn)](http://www.pecanproject.org). +## Running BETY using Docker + +To get started with BETY you can use the docker-compose.yml file included. This will start the database (postgresql with postgis version 9.5) as well as the BETY container. If this is the first time you start it you will need to initialize the database, this can be done using the following commands: + +``` +docker-compose -p bety up -d postgres +docker run --rm --network bety_bety pecan/bety initialize +``` + +Once bety finishes inializing the database, or to restart BETY, you can bring up the all the containers using: + +``` +docker-compose -p bety up -d +``` + +To change the path BETY runs under you can change the path using the environment variable RAILS_RELATIVE_URL_ROOT, for example to just run bety you can use the following command. This will precompile any of the static assets and run BETY. + +``` +docker run -e RAILS_RELATIVE_URL_ROOT="/bety" pecan/bety +``` + ## Documentation. * Technical Documentation: https://pecan.gitbooks.io/betydb-documentation/content/ diff --git a/Rakefile b/Rakefile index f01e21ae9..8309d623a 100644 --- a/Rakefile +++ b/Rakefile @@ -4,4 +4,4 @@ require File.expand_path('../config/application', __FILE__) require 'rake' -BetyRails3::Application.load_tasks +BetyRails5::Application.load_tasks diff --git a/public/images/.gitignore b/app/assets/images/.gitignore similarity index 100% rename from public/images/.gitignore rename to app/assets/images/.gitignore diff --git a/public/images/4.jpg b/app/assets/images/4.jpg similarity index 100% rename from public/images/4.jpg rename to app/assets/images/4.jpg diff --git a/public/images/EBI-Logo.jpg b/app/assets/images/EBI-Logo.jpg similarity index 100% rename from public/images/EBI-Logo.jpg rename to app/assets/images/EBI-Logo.jpg diff --git a/public/images/Sorting icons.psd b/app/assets/images/Sorting icons.psd similarity index 100% rename from public/images/Sorting icons.psd rename to app/assets/images/Sorting icons.psd diff --git a/public/images/arrow-gr.png b/app/assets/images/arrow-gr.png similarity index 100% rename from public/images/arrow-gr.png rename to app/assets/images/arrow-gr.png diff --git a/public/images/back_disabled.png b/app/assets/images/back_disabled.png similarity index 100% rename from public/images/back_disabled.png rename to app/assets/images/back_disabled.png diff --git a/public/images/back_enabled.png b/app/assets/images/back_enabled.png similarity index 100% rename from public/images/back_enabled.png rename to app/assets/images/back_enabled.png diff --git a/public/images/back_enabled_hover.png b/app/assets/images/back_enabled_hover.png similarity index 100% rename from public/images/back_enabled_hover.png rename to app/assets/images/back_enabled_hover.png diff --git a/public/images/bety-db.png b/app/assets/images/bety-db.png similarity index 100% rename from public/images/bety-db.png rename to app/assets/images/bety-db.png diff --git a/public/images/bg-grain-grey.jpg b/app/assets/images/bg-grain-grey.jpg similarity index 100% rename from public/images/bg-grain-grey.jpg rename to app/assets/images/bg-grain-grey.jpg diff --git a/public/images/bg-nav-item.png b/app/assets/images/bg-nav-item.png similarity index 100% rename from public/images/bg-nav-item.png rename to app/assets/images/bg-nav-item.png diff --git a/public/images/bg-nav.jpg b/app/assets/images/bg-nav.jpg similarity index 100% rename from public/images/bg-nav.jpg rename to app/assets/images/bg-nav.jpg diff --git a/public/images/blu-circle_maps.png b/app/assets/images/blu-circle_maps.png similarity index 100% rename from public/images/blu-circle_maps.png rename to app/assets/images/blu-circle_maps.png diff --git a/public/images/blueball.gif b/app/assets/images/blueball.gif similarity index 100% rename from public/images/blueball.gif rename to app/assets/images/blueball.gif diff --git a/public/images/blueball.png b/app/assets/images/blueball.png similarity index 100% rename from public/images/blueball.png rename to app/assets/images/blueball.png diff --git a/public/images/ch_beg_r.gif b/app/assets/images/ch_beg_r.gif similarity index 100% rename from public/images/ch_beg_r.gif rename to app/assets/images/ch_beg_r.gif diff --git a/public/images/ch_beg_r.png b/app/assets/images/ch_beg_r.png similarity index 100% rename from public/images/ch_beg_r.png rename to app/assets/images/ch_beg_r.png diff --git a/public/images/ch_begin.gif b/app/assets/images/ch_begin.gif similarity index 100% rename from public/images/ch_begin.gif rename to app/assets/images/ch_begin.gif diff --git a/public/images/ch_begin.png b/app/assets/images/ch_begin.png similarity index 100% rename from public/images/ch_begin.png rename to app/assets/images/ch_begin.png diff --git a/public/images/ch_del_r.gif b/app/assets/images/ch_del_r.gif similarity index 100% rename from public/images/ch_del_r.gif rename to app/assets/images/ch_del_r.gif diff --git a/public/images/ch_del_r.png b/app/assets/images/ch_del_r.png similarity index 100% rename from public/images/ch_del_r.png rename to app/assets/images/ch_del_r.png diff --git a/public/images/ch_delet.gif b/app/assets/images/ch_delet.gif similarity index 100% rename from public/images/ch_delet.gif rename to app/assets/images/ch_delet.gif diff --git a/public/images/ch_delet.png b/app/assets/images/ch_delet.png similarity index 100% rename from public/images/ch_delet.png rename to app/assets/images/ch_delet.png diff --git a/public/images/ch_end.gif b/app/assets/images/ch_end.gif similarity index 100% rename from public/images/ch_end.gif rename to app/assets/images/ch_end.gif diff --git a/public/images/ch_end.png b/app/assets/images/ch_end.png similarity index 100% rename from public/images/ch_end.png rename to app/assets/images/ch_end.png diff --git a/public/images/ch_end_r.gif b/app/assets/images/ch_end_r.gif similarity index 100% rename from public/images/ch_end_r.gif rename to app/assets/images/ch_end_r.gif diff --git a/public/images/ch_end_r.png b/app/assets/images/ch_end_r.png similarity index 100% rename from public/images/ch_end_r.png rename to app/assets/images/ch_end_r.png diff --git a/public/images/check.gif b/app/assets/images/check.gif similarity index 100% rename from public/images/check.gif rename to app/assets/images/check.gif diff --git a/public/images/citations_new.png b/app/assets/images/citations_new.png similarity index 100% rename from public/images/citations_new.png rename to app/assets/images/citations_new.png diff --git a/public/images/contents.gif b/app/assets/images/contents.gif similarity index 100% rename from public/images/contents.gif rename to app/assets/images/contents.gif diff --git a/public/images/contents.png b/app/assets/images/contents.png similarity index 100% rename from public/images/contents.png rename to app/assets/images/contents.png diff --git a/public/images/crossref.gif b/app/assets/images/crossref.gif similarity index 100% rename from public/images/crossref.gif rename to app/assets/images/crossref.gif diff --git a/public/images/crossref.png b/app/assets/images/crossref.png similarity index 100% rename from public/images/crossref.png rename to app/assets/images/crossref.png diff --git a/public/images/custom/arpa-e-logo.png b/app/assets/images/custom/arpa-e-logo.png similarity index 100% rename from public/images/custom/arpa-e-logo.png rename to app/assets/images/custom/arpa-e-logo.png diff --git a/public/images/custom/doe-logo.png b/app/assets/images/custom/doe-logo.png similarity index 100% rename from public/images/custom/doe-logo.png rename to app/assets/images/custom/doe-logo.png diff --git a/public/images/custom/mac_sorghum.jpg b/app/assets/images/custom/mac_sorghum.jpg similarity index 100% rename from public/images/custom/mac_sorghum.jpg rename to app/assets/images/custom/mac_sorghum.jpg diff --git a/public/images/custom/terraref-logo.png b/app/assets/images/custom/terraref-logo.png similarity index 100% rename from public/images/custom/terraref-logo.png rename to app/assets/images/custom/terraref-logo.png diff --git a/public/images/database_stats.png b/app/assets/images/database_stats.png similarity index 100% rename from public/images/database_stats.png rename to app/assets/images/database_stats.png diff --git a/public/images/db_header.png b/app/assets/images/db_header.png similarity index 100% rename from public/images/db_header.png rename to app/assets/images/db_header.png diff --git a/public/images/down_arrow.gif b/app/assets/images/down_arrow.gif similarity index 100% rename from public/images/down_arrow.gif rename to app/assets/images/down_arrow.gif diff --git a/public/images/drop-over.png b/app/assets/images/drop-over.png similarity index 100% rename from public/images/drop-over.png rename to app/assets/images/drop-over.png diff --git a/public/images/drop.png b/app/assets/images/drop.png similarity index 100% rename from public/images/drop.png rename to app/assets/images/drop.png diff --git a/public/images/drop2.png b/app/assets/images/drop2.png similarity index 100% rename from public/images/drop2.png rename to app/assets/images/drop2.png diff --git a/public/images/eye.png b/app/assets/images/eye.png similarity index 100% rename from public/images/eye.png rename to app/assets/images/eye.png diff --git a/public/images/favicon.ico b/app/assets/images/favicon.ico similarity index 100% rename from public/images/favicon.ico rename to app/assets/images/favicon.ico diff --git a/public/images/feedback-tab.png b/app/assets/images/feedback-tab.png similarity index 100% rename from public/images/feedback-tab.png rename to app/assets/images/feedback-tab.png diff --git a/public/images/foot-div.gif b/app/assets/images/foot-div.gif similarity index 100% rename from public/images/foot-div.gif rename to app/assets/images/foot-div.gif diff --git a/public/images/footer.gif b/app/assets/images/footer.gif similarity index 100% rename from public/images/footer.gif rename to app/assets/images/footer.gif diff --git a/public/images/footnote.gif b/app/assets/images/footnote.gif similarity index 100% rename from public/images/footnote.gif rename to app/assets/images/footnote.gif diff --git a/public/images/footnote.png b/app/assets/images/footnote.png similarity index 100% rename from public/images/footnote.png rename to app/assets/images/footnote.png diff --git a/public/images/forward_disabled.png b/app/assets/images/forward_disabled.png similarity index 100% rename from public/images/forward_disabled.png rename to app/assets/images/forward_disabled.png diff --git a/public/images/forward_enabled.png b/app/assets/images/forward_enabled.png similarity index 100% rename from public/images/forward_enabled.png rename to app/assets/images/forward_enabled.png diff --git a/public/images/forward_enabled_hover.png b/app/assets/images/forward_enabled_hover.png similarity index 100% rename from public/images/forward_enabled_hover.png rename to app/assets/images/forward_enabled_hover.png diff --git a/public/images/glyphicons-halflings-white.png b/app/assets/images/glyphicons-halflings-white.png similarity index 100% rename from public/images/glyphicons-halflings-white.png rename to app/assets/images/glyphicons-halflings-white.png diff --git a/public/images/glyphicons-halflings.png b/app/assets/images/glyphicons-halflings.png similarity index 100% rename from public/images/glyphicons-halflings.png rename to app/assets/images/glyphicons-halflings.png diff --git a/public/images/greenball.gif b/app/assets/images/greenball.gif similarity index 100% rename from public/images/greenball.gif rename to app/assets/images/greenball.gif diff --git a/public/images/greenball.png b/app/assets/images/greenball.png similarity index 100% rename from public/images/greenball.png rename to app/assets/images/greenball.png diff --git a/public/images/greencheck.png b/app/assets/images/greencheck.png similarity index 100% rename from public/images/greencheck.png rename to app/assets/images/greencheck.png diff --git a/public/images/greyball.gif b/app/assets/images/greyball.gif similarity index 100% rename from public/images/greyball.gif rename to app/assets/images/greyball.gif diff --git a/public/images/greyball.png b/app/assets/images/greyball.png similarity index 100% rename from public/images/greyball.png rename to app/assets/images/greyball.png diff --git a/public/images/grn-circle_maps.png b/app/assets/images/grn-circle_maps.png similarity index 100% rename from public/images/grn-circle_maps.png rename to app/assets/images/grn-circle_maps.png diff --git a/public/images/h/Thumbs.db b/app/assets/images/h/Thumbs.db similarity index 100% rename from public/images/h/Thumbs.db rename to app/assets/images/h/Thumbs.db diff --git a/public/images/h/_notes/dwsync.xml b/app/assets/images/h/_notes/dwsync.xml similarity index 100% rename from public/images/h/_notes/dwsync.xml rename to app/assets/images/h/_notes/dwsync.xml diff --git a/public/images/h/apple-touch-icon.png b/app/assets/images/h/apple-touch-icon.png similarity index 100% rename from public/images/h/apple-touch-icon.png rename to app/assets/images/h/apple-touch-icon.png diff --git a/public/images/h/splash.png b/app/assets/images/h/splash.png similarity index 100% rename from public/images/h/splash.png rename to app/assets/images/h/splash.png diff --git a/public/images/help.gif b/app/assets/images/help.gif similarity index 100% rename from public/images/help.gif rename to app/assets/images/help.gif diff --git a/public/images/i.png b/app/assets/images/i.png similarity index 100% rename from public/images/i.png rename to app/assets/images/i.png diff --git a/public/images/icons.html b/app/assets/images/icons.html similarity index 100% rename from public/images/icons.html rename to app/assets/images/icons.html diff --git a/public/images/igb-copy.png b/app/assets/images/igb-copy.png similarity index 100% rename from public/images/igb-copy.png rename to app/assets/images/igb-copy.png diff --git a/public/images/igb-copy2.png b/app/assets/images/igb-copy2.png similarity index 100% rename from public/images/igb-copy2.png rename to app/assets/images/igb-copy2.png diff --git a/public/images/image.gif b/app/assets/images/image.gif similarity index 100% rename from public/images/image.gif rename to app/assets/images/image.gif diff --git a/public/images/image.png b/app/assets/images/image.png similarity index 100% rename from public/images/image.png rename to app/assets/images/image.png diff --git a/public/images/img1.png b/app/assets/images/img1.png similarity index 100% rename from public/images/img1.png rename to app/assets/images/img1.png diff --git a/public/images/img10.png b/app/assets/images/img10.png similarity index 100% rename from public/images/img10.png rename to app/assets/images/img10.png diff --git a/public/images/img100.png b/app/assets/images/img100.png similarity index 100% rename from public/images/img100.png rename to app/assets/images/img100.png diff --git a/public/images/img101.png b/app/assets/images/img101.png similarity index 100% rename from public/images/img101.png rename to app/assets/images/img101.png diff --git a/public/images/img102.png b/app/assets/images/img102.png similarity index 100% rename from public/images/img102.png rename to app/assets/images/img102.png diff --git a/public/images/img103.png b/app/assets/images/img103.png similarity index 100% rename from public/images/img103.png rename to app/assets/images/img103.png diff --git a/public/images/img104.png b/app/assets/images/img104.png similarity index 100% rename from public/images/img104.png rename to app/assets/images/img104.png diff --git a/public/images/img105.png b/app/assets/images/img105.png similarity index 100% rename from public/images/img105.png rename to app/assets/images/img105.png diff --git a/public/images/img106.png b/app/assets/images/img106.png similarity index 100% rename from public/images/img106.png rename to app/assets/images/img106.png diff --git a/public/images/img107.png b/app/assets/images/img107.png similarity index 100% rename from public/images/img107.png rename to app/assets/images/img107.png diff --git a/public/images/img108.png b/app/assets/images/img108.png similarity index 100% rename from public/images/img108.png rename to app/assets/images/img108.png diff --git a/public/images/img109.png b/app/assets/images/img109.png similarity index 100% rename from public/images/img109.png rename to app/assets/images/img109.png diff --git a/public/images/img11.png b/app/assets/images/img11.png similarity index 100% rename from public/images/img11.png rename to app/assets/images/img11.png diff --git a/public/images/img110.png b/app/assets/images/img110.png similarity index 100% rename from public/images/img110.png rename to app/assets/images/img110.png diff --git a/public/images/img111.png b/app/assets/images/img111.png similarity index 100% rename from public/images/img111.png rename to app/assets/images/img111.png diff --git a/public/images/img112.png b/app/assets/images/img112.png similarity index 100% rename from public/images/img112.png rename to app/assets/images/img112.png diff --git a/public/images/img113.png b/app/assets/images/img113.png similarity index 100% rename from public/images/img113.png rename to app/assets/images/img113.png diff --git a/public/images/img114.png b/app/assets/images/img114.png similarity index 100% rename from public/images/img114.png rename to app/assets/images/img114.png diff --git a/public/images/img115.png b/app/assets/images/img115.png similarity index 100% rename from public/images/img115.png rename to app/assets/images/img115.png diff --git a/public/images/img116.png b/app/assets/images/img116.png similarity index 100% rename from public/images/img116.png rename to app/assets/images/img116.png diff --git a/public/images/img117.png b/app/assets/images/img117.png similarity index 100% rename from public/images/img117.png rename to app/assets/images/img117.png diff --git a/public/images/img118.png b/app/assets/images/img118.png similarity index 100% rename from public/images/img118.png rename to app/assets/images/img118.png diff --git a/public/images/img119.png b/app/assets/images/img119.png similarity index 100% rename from public/images/img119.png rename to app/assets/images/img119.png diff --git a/public/images/img12.png b/app/assets/images/img12.png similarity index 100% rename from public/images/img12.png rename to app/assets/images/img12.png diff --git a/public/images/img120.png b/app/assets/images/img120.png similarity index 100% rename from public/images/img120.png rename to app/assets/images/img120.png diff --git a/public/images/img121.png b/app/assets/images/img121.png similarity index 100% rename from public/images/img121.png rename to app/assets/images/img121.png diff --git a/public/images/img122.png b/app/assets/images/img122.png similarity index 100% rename from public/images/img122.png rename to app/assets/images/img122.png diff --git a/public/images/img123.png b/app/assets/images/img123.png similarity index 100% rename from public/images/img123.png rename to app/assets/images/img123.png diff --git a/public/images/img124.png b/app/assets/images/img124.png similarity index 100% rename from public/images/img124.png rename to app/assets/images/img124.png diff --git a/public/images/img125.png b/app/assets/images/img125.png similarity index 100% rename from public/images/img125.png rename to app/assets/images/img125.png diff --git a/public/images/img126.png b/app/assets/images/img126.png similarity index 100% rename from public/images/img126.png rename to app/assets/images/img126.png diff --git a/public/images/img127.png b/app/assets/images/img127.png similarity index 100% rename from public/images/img127.png rename to app/assets/images/img127.png diff --git a/public/images/img128.png b/app/assets/images/img128.png similarity index 100% rename from public/images/img128.png rename to app/assets/images/img128.png diff --git a/public/images/img129.png b/app/assets/images/img129.png similarity index 100% rename from public/images/img129.png rename to app/assets/images/img129.png diff --git a/public/images/img13.png b/app/assets/images/img13.png similarity index 100% rename from public/images/img13.png rename to app/assets/images/img13.png diff --git a/public/images/img130.png b/app/assets/images/img130.png similarity index 100% rename from public/images/img130.png rename to app/assets/images/img130.png diff --git a/public/images/img131.png b/app/assets/images/img131.png similarity index 100% rename from public/images/img131.png rename to app/assets/images/img131.png diff --git a/public/images/img132.png b/app/assets/images/img132.png similarity index 100% rename from public/images/img132.png rename to app/assets/images/img132.png diff --git a/public/images/img133.png b/app/assets/images/img133.png similarity index 100% rename from public/images/img133.png rename to app/assets/images/img133.png diff --git a/public/images/img134.png b/app/assets/images/img134.png similarity index 100% rename from public/images/img134.png rename to app/assets/images/img134.png diff --git a/public/images/img135.png b/app/assets/images/img135.png similarity index 100% rename from public/images/img135.png rename to app/assets/images/img135.png diff --git a/public/images/img136.png b/app/assets/images/img136.png similarity index 100% rename from public/images/img136.png rename to app/assets/images/img136.png diff --git a/public/images/img137.png b/app/assets/images/img137.png similarity index 100% rename from public/images/img137.png rename to app/assets/images/img137.png diff --git a/public/images/img138.png b/app/assets/images/img138.png similarity index 100% rename from public/images/img138.png rename to app/assets/images/img138.png diff --git a/public/images/img139.png b/app/assets/images/img139.png similarity index 100% rename from public/images/img139.png rename to app/assets/images/img139.png diff --git a/public/images/img15.png b/app/assets/images/img15.png similarity index 100% rename from public/images/img15.png rename to app/assets/images/img15.png diff --git a/public/images/img16.png b/app/assets/images/img16.png similarity index 100% rename from public/images/img16.png rename to app/assets/images/img16.png diff --git a/public/images/img17.png b/app/assets/images/img17.png similarity index 100% rename from public/images/img17.png rename to app/assets/images/img17.png diff --git a/public/images/img18.png b/app/assets/images/img18.png similarity index 100% rename from public/images/img18.png rename to app/assets/images/img18.png diff --git a/public/images/img19.png b/app/assets/images/img19.png similarity index 100% rename from public/images/img19.png rename to app/assets/images/img19.png diff --git a/public/images/img2.png b/app/assets/images/img2.png similarity index 100% rename from public/images/img2.png rename to app/assets/images/img2.png diff --git a/public/images/img20.png b/app/assets/images/img20.png similarity index 100% rename from public/images/img20.png rename to app/assets/images/img20.png diff --git a/public/images/img21.png b/app/assets/images/img21.png similarity index 100% rename from public/images/img21.png rename to app/assets/images/img21.png diff --git a/public/images/img22.png b/app/assets/images/img22.png similarity index 100% rename from public/images/img22.png rename to app/assets/images/img22.png diff --git a/public/images/img23.png b/app/assets/images/img23.png similarity index 100% rename from public/images/img23.png rename to app/assets/images/img23.png diff --git a/public/images/img24.png b/app/assets/images/img24.png similarity index 100% rename from public/images/img24.png rename to app/assets/images/img24.png diff --git a/public/images/img25.png b/app/assets/images/img25.png similarity index 100% rename from public/images/img25.png rename to app/assets/images/img25.png diff --git a/public/images/img26.png b/app/assets/images/img26.png similarity index 100% rename from public/images/img26.png rename to app/assets/images/img26.png diff --git a/public/images/img27.png b/app/assets/images/img27.png similarity index 100% rename from public/images/img27.png rename to app/assets/images/img27.png diff --git a/public/images/img28.png b/app/assets/images/img28.png similarity index 100% rename from public/images/img28.png rename to app/assets/images/img28.png diff --git a/public/images/img29.png b/app/assets/images/img29.png similarity index 100% rename from public/images/img29.png rename to app/assets/images/img29.png diff --git a/public/images/img3.png b/app/assets/images/img3.png similarity index 100% rename from public/images/img3.png rename to app/assets/images/img3.png diff --git a/public/images/img30.png b/app/assets/images/img30.png similarity index 100% rename from public/images/img30.png rename to app/assets/images/img30.png diff --git a/public/images/img31.png b/app/assets/images/img31.png similarity index 100% rename from public/images/img31.png rename to app/assets/images/img31.png diff --git a/public/images/img32.png b/app/assets/images/img32.png similarity index 100% rename from public/images/img32.png rename to app/assets/images/img32.png diff --git a/public/images/img33.png b/app/assets/images/img33.png similarity index 100% rename from public/images/img33.png rename to app/assets/images/img33.png diff --git a/public/images/img34.png b/app/assets/images/img34.png similarity index 100% rename from public/images/img34.png rename to app/assets/images/img34.png diff --git a/public/images/img36.png b/app/assets/images/img36.png similarity index 100% rename from public/images/img36.png rename to app/assets/images/img36.png diff --git a/public/images/img37.png b/app/assets/images/img37.png similarity index 100% rename from public/images/img37.png rename to app/assets/images/img37.png diff --git a/public/images/img38.png b/app/assets/images/img38.png similarity index 100% rename from public/images/img38.png rename to app/assets/images/img38.png diff --git a/public/images/img39.png b/app/assets/images/img39.png similarity index 100% rename from public/images/img39.png rename to app/assets/images/img39.png diff --git a/public/images/img4.png b/app/assets/images/img4.png similarity index 100% rename from public/images/img4.png rename to app/assets/images/img4.png diff --git a/public/images/img40.png b/app/assets/images/img40.png similarity index 100% rename from public/images/img40.png rename to app/assets/images/img40.png diff --git a/public/images/img41.png b/app/assets/images/img41.png similarity index 100% rename from public/images/img41.png rename to app/assets/images/img41.png diff --git a/public/images/img42.png b/app/assets/images/img42.png similarity index 100% rename from public/images/img42.png rename to app/assets/images/img42.png diff --git a/public/images/img43.png b/app/assets/images/img43.png similarity index 100% rename from public/images/img43.png rename to app/assets/images/img43.png diff --git a/public/images/img44.png b/app/assets/images/img44.png similarity index 100% rename from public/images/img44.png rename to app/assets/images/img44.png diff --git a/public/images/img45.png b/app/assets/images/img45.png similarity index 100% rename from public/images/img45.png rename to app/assets/images/img45.png diff --git a/public/images/img46.png b/app/assets/images/img46.png similarity index 100% rename from public/images/img46.png rename to app/assets/images/img46.png diff --git a/public/images/img47.png b/app/assets/images/img47.png similarity index 100% rename from public/images/img47.png rename to app/assets/images/img47.png diff --git a/public/images/img48.png b/app/assets/images/img48.png similarity index 100% rename from public/images/img48.png rename to app/assets/images/img48.png diff --git a/public/images/img49.png b/app/assets/images/img49.png similarity index 100% rename from public/images/img49.png rename to app/assets/images/img49.png diff --git a/public/images/img5.png b/app/assets/images/img5.png similarity index 100% rename from public/images/img5.png rename to app/assets/images/img5.png diff --git a/public/images/img50.png b/app/assets/images/img50.png similarity index 100% rename from public/images/img50.png rename to app/assets/images/img50.png diff --git a/public/images/img51.png b/app/assets/images/img51.png similarity index 100% rename from public/images/img51.png rename to app/assets/images/img51.png diff --git a/public/images/img52.png b/app/assets/images/img52.png similarity index 100% rename from public/images/img52.png rename to app/assets/images/img52.png diff --git a/public/images/img53.png b/app/assets/images/img53.png similarity index 100% rename from public/images/img53.png rename to app/assets/images/img53.png diff --git a/public/images/img54.png b/app/assets/images/img54.png similarity index 100% rename from public/images/img54.png rename to app/assets/images/img54.png diff --git a/public/images/img55.png b/app/assets/images/img55.png similarity index 100% rename from public/images/img55.png rename to app/assets/images/img55.png diff --git a/public/images/img56.png b/app/assets/images/img56.png similarity index 100% rename from public/images/img56.png rename to app/assets/images/img56.png diff --git a/public/images/img57.png b/app/assets/images/img57.png similarity index 100% rename from public/images/img57.png rename to app/assets/images/img57.png diff --git a/public/images/img58.png b/app/assets/images/img58.png similarity index 100% rename from public/images/img58.png rename to app/assets/images/img58.png diff --git a/public/images/img59.png b/app/assets/images/img59.png similarity index 100% rename from public/images/img59.png rename to app/assets/images/img59.png diff --git a/public/images/img6.png b/app/assets/images/img6.png similarity index 100% rename from public/images/img6.png rename to app/assets/images/img6.png diff --git a/public/images/img60.png b/app/assets/images/img60.png similarity index 100% rename from public/images/img60.png rename to app/assets/images/img60.png diff --git a/public/images/img61.png b/app/assets/images/img61.png similarity index 100% rename from public/images/img61.png rename to app/assets/images/img61.png diff --git a/public/images/img62.png b/app/assets/images/img62.png similarity index 100% rename from public/images/img62.png rename to app/assets/images/img62.png diff --git a/public/images/img63.png b/app/assets/images/img63.png similarity index 100% rename from public/images/img63.png rename to app/assets/images/img63.png diff --git a/public/images/img64.png b/app/assets/images/img64.png similarity index 100% rename from public/images/img64.png rename to app/assets/images/img64.png diff --git a/public/images/img65.png b/app/assets/images/img65.png similarity index 100% rename from public/images/img65.png rename to app/assets/images/img65.png diff --git a/public/images/img66.png b/app/assets/images/img66.png similarity index 100% rename from public/images/img66.png rename to app/assets/images/img66.png diff --git a/public/images/img67.png b/app/assets/images/img67.png similarity index 100% rename from public/images/img67.png rename to app/assets/images/img67.png diff --git a/public/images/img68.png b/app/assets/images/img68.png similarity index 100% rename from public/images/img68.png rename to app/assets/images/img68.png diff --git a/public/images/img69.png b/app/assets/images/img69.png similarity index 100% rename from public/images/img69.png rename to app/assets/images/img69.png diff --git a/public/images/img7.png b/app/assets/images/img7.png similarity index 100% rename from public/images/img7.png rename to app/assets/images/img7.png diff --git a/public/images/img70.png b/app/assets/images/img70.png similarity index 100% rename from public/images/img70.png rename to app/assets/images/img70.png diff --git a/public/images/img71.png b/app/assets/images/img71.png similarity index 100% rename from public/images/img71.png rename to app/assets/images/img71.png diff --git a/public/images/img72.png b/app/assets/images/img72.png similarity index 100% rename from public/images/img72.png rename to app/assets/images/img72.png diff --git a/public/images/img73.png b/app/assets/images/img73.png similarity index 100% rename from public/images/img73.png rename to app/assets/images/img73.png diff --git a/public/images/img74.png b/app/assets/images/img74.png similarity index 100% rename from public/images/img74.png rename to app/assets/images/img74.png diff --git a/public/images/img75.png b/app/assets/images/img75.png similarity index 100% rename from public/images/img75.png rename to app/assets/images/img75.png diff --git a/public/images/img76.png b/app/assets/images/img76.png similarity index 100% rename from public/images/img76.png rename to app/assets/images/img76.png diff --git a/public/images/img77.png b/app/assets/images/img77.png similarity index 100% rename from public/images/img77.png rename to app/assets/images/img77.png diff --git a/public/images/img78.png b/app/assets/images/img78.png similarity index 100% rename from public/images/img78.png rename to app/assets/images/img78.png diff --git a/public/images/img79.png b/app/assets/images/img79.png similarity index 100% rename from public/images/img79.png rename to app/assets/images/img79.png diff --git a/public/images/img8.png b/app/assets/images/img8.png similarity index 100% rename from public/images/img8.png rename to app/assets/images/img8.png diff --git a/public/images/img80.png b/app/assets/images/img80.png similarity index 100% rename from public/images/img80.png rename to app/assets/images/img80.png diff --git a/public/images/img81.png b/app/assets/images/img81.png similarity index 100% rename from public/images/img81.png rename to app/assets/images/img81.png diff --git a/public/images/img82.png b/app/assets/images/img82.png similarity index 100% rename from public/images/img82.png rename to app/assets/images/img82.png diff --git a/public/images/img83.png b/app/assets/images/img83.png similarity index 100% rename from public/images/img83.png rename to app/assets/images/img83.png diff --git a/public/images/img84.png b/app/assets/images/img84.png similarity index 100% rename from public/images/img84.png rename to app/assets/images/img84.png diff --git a/public/images/img85.png b/app/assets/images/img85.png similarity index 100% rename from public/images/img85.png rename to app/assets/images/img85.png diff --git a/public/images/img86.png b/app/assets/images/img86.png similarity index 100% rename from public/images/img86.png rename to app/assets/images/img86.png diff --git a/public/images/img87.png b/app/assets/images/img87.png similarity index 100% rename from public/images/img87.png rename to app/assets/images/img87.png diff --git a/public/images/img88.png b/app/assets/images/img88.png similarity index 100% rename from public/images/img88.png rename to app/assets/images/img88.png diff --git a/public/images/img89.png b/app/assets/images/img89.png similarity index 100% rename from public/images/img89.png rename to app/assets/images/img89.png diff --git a/public/images/img9.png b/app/assets/images/img9.png similarity index 100% rename from public/images/img9.png rename to app/assets/images/img9.png diff --git a/public/images/img90.png b/app/assets/images/img90.png similarity index 100% rename from public/images/img90.png rename to app/assets/images/img90.png diff --git a/public/images/img91.png b/app/assets/images/img91.png similarity index 100% rename from public/images/img91.png rename to app/assets/images/img91.png diff --git a/public/images/img92.png b/app/assets/images/img92.png similarity index 100% rename from public/images/img92.png rename to app/assets/images/img92.png diff --git a/public/images/img93.png b/app/assets/images/img93.png similarity index 100% rename from public/images/img93.png rename to app/assets/images/img93.png diff --git a/public/images/img94.png b/app/assets/images/img94.png similarity index 100% rename from public/images/img94.png rename to app/assets/images/img94.png diff --git a/public/images/img95.png b/app/assets/images/img95.png similarity index 100% rename from public/images/img95.png rename to app/assets/images/img95.png diff --git a/public/images/img96.png b/app/assets/images/img96.png similarity index 100% rename from public/images/img96.png rename to app/assets/images/img96.png diff --git a/public/images/img97.png b/app/assets/images/img97.png similarity index 100% rename from public/images/img97.png rename to app/assets/images/img97.png diff --git a/public/images/img98.png b/app/assets/images/img98.png similarity index 100% rename from public/images/img98.png rename to app/assets/images/img98.png diff --git a/public/images/img99.png b/app/assets/images/img99.png similarity index 100% rename from public/images/img99.png rename to app/assets/images/img99.png diff --git a/public/images/index.gif b/app/assets/images/index.gif similarity index 100% rename from public/images/index.gif rename to app/assets/images/index.gif diff --git a/public/images/index.png b/app/assets/images/index.png similarity index 100% rename from public/images/index.png rename to app/assets/images/index.png diff --git a/public/images/l/Thumbs.db b/app/assets/images/l/Thumbs.db similarity index 100% rename from public/images/l/Thumbs.db rename to app/assets/images/l/Thumbs.db diff --git a/public/images/l/_notes/dwsync.xml b/app/assets/images/l/_notes/dwsync.xml similarity index 100% rename from public/images/l/_notes/dwsync.xml rename to app/assets/images/l/_notes/dwsync.xml diff --git a/public/images/l/apple-touch-icon-precomposed.png b/app/assets/images/l/apple-touch-icon-precomposed.png similarity index 100% rename from public/images/l/apple-touch-icon-precomposed.png rename to app/assets/images/l/apple-touch-icon-precomposed.png diff --git a/public/images/l/apple-touch-icon.png b/app/assets/images/l/apple-touch-icon.png similarity index 100% rename from public/images/l/apple-touch-icon.png rename to app/assets/images/l/apple-touch-icon.png diff --git a/public/images/l/splash.png b/app/assets/images/l/splash.png similarity index 100% rename from public/images/l/splash.png rename to app/assets/images/l/splash.png diff --git a/public/images/lmodelout b/app/assets/images/lmodelout similarity index 100% rename from public/images/lmodelout rename to app/assets/images/lmodelout diff --git a/public/images/loading.gif b/app/assets/images/loading.gif similarity index 100% rename from public/images/loading.gif rename to app/assets/images/loading.gif diff --git a/public/images/lock.png b/app/assets/images/lock.png similarity index 100% rename from public/images/lock.png rename to app/assets/images/lock.png diff --git a/public/images/login.jpg b/app/assets/images/login.jpg similarity index 100% rename from public/images/login.jpg rename to app/assets/images/login.jpg diff --git a/public/images/logo-berkeley.png b/app/assets/images/logo-berkeley.png similarity index 100% rename from public/images/logo-berkeley.png rename to app/assets/images/logo-berkeley.png diff --git a/public/images/logo-bp.png b/app/assets/images/logo-bp.png similarity index 100% rename from public/images/logo-bp.png rename to app/assets/images/logo-bp.png diff --git a/public/images/logo-ebi-footer.jpg b/app/assets/images/logo-ebi-footer.jpg similarity index 100% rename from public/images/logo-ebi-footer.jpg rename to app/assets/images/logo-ebi-footer.jpg diff --git a/public/images/logo-ebi.png b/app/assets/images/logo-ebi.png similarity index 100% rename from public/images/logo-ebi.png rename to app/assets/images/logo-ebi.png diff --git a/public/images/logo-illinois.png b/app/assets/images/logo-illinois.png similarity index 100% rename from public/images/logo-illinois.png rename to app/assets/images/logo-illinois.png diff --git a/public/images/logo-lbl.png b/app/assets/images/logo-lbl.png similarity index 100% rename from public/images/logo-lbl.png rename to app/assets/images/logo-lbl.png diff --git a/public/images/m/Thumbs.db b/app/assets/images/m/Thumbs.db similarity index 100% rename from public/images/m/Thumbs.db rename to app/assets/images/m/Thumbs.db diff --git a/public/images/m/_notes/dwsync.xml b/app/assets/images/m/_notes/dwsync.xml similarity index 100% rename from public/images/m/_notes/dwsync.xml rename to app/assets/images/m/_notes/dwsync.xml diff --git a/public/images/m/apple-touch-icon.png b/app/assets/images/m/apple-touch-icon.png similarity index 100% rename from public/images/m/apple-touch-icon.png rename to app/assets/images/m/apple-touch-icon.png diff --git a/public/images/mag-small.gif b/app/assets/images/mag-small.gif similarity index 100% rename from public/images/mag-small.gif rename to app/assets/images/mag-small.gif diff --git a/public/images/mag1.png b/app/assets/images/mag1.png similarity index 100% rename from public/images/mag1.png rename to app/assets/images/mag1.png diff --git a/public/images/management_new.png b/app/assets/images/management_new.png similarity index 100% rename from public/images/management_new.png rename to app/assets/images/management_new.png diff --git a/public/images/map-large.jpg b/app/assets/images/map-large.jpg similarity index 100% rename from public/images/map-large.jpg rename to app/assets/images/map-large.jpg diff --git a/public/images/map.jpg b/app/assets/images/map.jpg similarity index 100% rename from public/images/map.jpg rename to app/assets/images/map.jpg diff --git a/public/images/miscanthus.jpg b/app/assets/images/miscanthus.jpg similarity index 100% rename from public/images/miscanthus.jpg rename to app/assets/images/miscanthus.jpg diff --git a/public/images/nav-icon-admin.png b/app/assets/images/nav-icon-admin.png similarity index 100% rename from public/images/nav-icon-admin.png rename to app/assets/images/nav-icon-admin.png diff --git a/public/images/nav-icon-data.png b/app/assets/images/nav-icon-data.png similarity index 100% rename from public/images/nav-icon-data.png rename to app/assets/images/nav-icon-data.png diff --git a/public/images/nav-icon-docs.png b/app/assets/images/nav-icon-docs.png similarity index 100% rename from public/images/nav-icon-docs.png rename to app/assets/images/nav-icon-docs.png diff --git a/public/images/nav-icon-home.png b/app/assets/images/nav-icon-home.png similarity index 100% rename from public/images/nav-icon-home.png rename to app/assets/images/nav-icon-home.png diff --git a/public/images/nav-icon-logout.png b/app/assets/images/nav-icon-logout.png similarity index 100% rename from public/images/nav-icon-logout.png rename to app/assets/images/nav-icon-logout.png diff --git a/public/images/nav-icon-maps.png b/app/assets/images/nav-icon-maps.png similarity index 100% rename from public/images/nav-icon-maps.png rename to app/assets/images/nav-icon-maps.png diff --git a/public/images/nav-icon-new.png b/app/assets/images/nav-icon-new.png similarity index 100% rename from public/images/nav-icon-new.png rename to app/assets/images/nav-icon-new.png diff --git a/public/images/nav-separator.png b/app/assets/images/nav-separator.png similarity index 100% rename from public/images/nav-separator.png rename to app/assets/images/nav-separator.png diff --git a/public/images/next.gif b/app/assets/images/next.gif similarity index 100% rename from public/images/next.gif rename to app/assets/images/next.gif diff --git a/public/images/next.png b/app/assets/images/next.png similarity index 100% rename from public/images/next.png rename to app/assets/images/next.png diff --git a/public/images/next_g.gif b/app/assets/images/next_g.gif similarity index 100% rename from public/images/next_g.gif rename to app/assets/images/next_g.gif diff --git a/public/images/next_g.png b/app/assets/images/next_g.png similarity index 100% rename from public/images/next_g.png rename to app/assets/images/next_g.png diff --git a/public/images/nx_grp.gif b/app/assets/images/nx_grp.gif similarity index 100% rename from public/images/nx_grp.gif rename to app/assets/images/nx_grp.gif diff --git a/public/images/nx_grp.png b/app/assets/images/nx_grp.png similarity index 100% rename from public/images/nx_grp.png rename to app/assets/images/nx_grp.png diff --git a/public/images/nx_grp_g.gif b/app/assets/images/nx_grp_g.gif similarity index 100% rename from public/images/nx_grp_g.gif rename to app/assets/images/nx_grp_g.gif diff --git a/public/images/nx_grp_g.png b/app/assets/images/nx_grp_g.png similarity index 100% rename from public/images/nx_grp_g.png rename to app/assets/images/nx_grp_g.png diff --git a/public/images/orangeball.gif b/app/assets/images/orangeball.gif similarity index 100% rename from public/images/orangeball.gif rename to app/assets/images/orangeball.gif diff --git a/public/images/orangeball.png b/app/assets/images/orangeball.png similarity index 100% rename from public/images/orangeball.png rename to app/assets/images/orangeball.png diff --git a/public/images/pinkball.gif b/app/assets/images/pinkball.gif similarity index 100% rename from public/images/pinkball.gif rename to app/assets/images/pinkball.gif diff --git a/public/images/pinkball.png b/app/assets/images/pinkball.png similarity index 100% rename from public/images/pinkball.png rename to app/assets/images/pinkball.png diff --git a/public/images/prev.gif b/app/assets/images/prev.gif similarity index 100% rename from public/images/prev.gif rename to app/assets/images/prev.gif diff --git a/public/images/prev.png b/app/assets/images/prev.png similarity index 100% rename from public/images/prev.png rename to app/assets/images/prev.png diff --git a/public/images/prev_g.gif b/app/assets/images/prev_g.gif similarity index 100% rename from public/images/prev_g.gif rename to app/assets/images/prev_g.gif diff --git a/public/images/prev_g.png b/app/assets/images/prev_g.png similarity index 100% rename from public/images/prev_g.png rename to app/assets/images/prev_g.png diff --git a/public/images/purpleball.gif b/app/assets/images/purpleball.gif similarity index 100% rename from public/images/purpleball.gif rename to app/assets/images/purpleball.gif diff --git a/public/images/purpleball.png b/app/assets/images/purpleball.png similarity index 100% rename from public/images/purpleball.png rename to app/assets/images/purpleball.png diff --git a/public/images/pv_grp.gif b/app/assets/images/pv_grp.gif similarity index 100% rename from public/images/pv_grp.gif rename to app/assets/images/pv_grp.gif diff --git a/public/images/pv_grp.png b/app/assets/images/pv_grp.png similarity index 100% rename from public/images/pv_grp.png rename to app/assets/images/pv_grp.png diff --git a/public/images/pv_grp_g.gif b/app/assets/images/pv_grp_g.gif similarity index 100% rename from public/images/pv_grp_g.gif rename to app/assets/images/pv_grp_g.gif diff --git a/public/images/pv_grp_g.png b/app/assets/images/pv_grp_g.png similarity index 100% rename from public/images/pv_grp_g.png rename to app/assets/images/pv_grp_g.png diff --git a/public/images/question.gif b/app/assets/images/question.gif similarity index 100% rename from public/images/question.gif rename to app/assets/images/question.gif diff --git a/public/images/red-circle_maps.png b/app/assets/images/red-circle_maps.png similarity index 100% rename from public/images/red-circle_maps.png rename to app/assets/images/red-circle_maps.png diff --git a/public/images/redball.gif b/app/assets/images/redball.gif similarity index 100% rename from public/images/redball.gif rename to app/assets/images/redball.gif diff --git a/public/images/redball.png b/app/assets/images/redball.png similarity index 100% rename from public/images/redball.png rename to app/assets/images/redball.png diff --git a/public/images/redcheck.png b/app/assets/images/redcheck.png similarity index 100% rename from public/images/redcheck.png rename to app/assets/images/redcheck.png diff --git a/public/images/register.jpg b/app/assets/images/register.jpg similarity index 100% rename from public/images/register.jpg rename to app/assets/images/register.jpg diff --git a/public/images/selectedcitation.png b/app/assets/images/selectedcitation.png similarity index 100% rename from public/images/selectedcitation.png rename to app/assets/images/selectedcitation.png diff --git a/public/images/sites_new.png b/app/assets/images/sites_new.png similarity index 100% rename from public/images/sites_new.png rename to app/assets/images/sites_new.png diff --git a/public/images/soiltexture.png b/app/assets/images/soiltexture.png similarity index 100% rename from public/images/soiltexture.png rename to app/assets/images/soiltexture.png diff --git a/public/images/sort_asc.png b/app/assets/images/sort_asc.png similarity index 100% rename from public/images/sort_asc.png rename to app/assets/images/sort_asc.png diff --git a/public/images/sort_asc_disabled.png b/app/assets/images/sort_asc_disabled.png similarity index 100% rename from public/images/sort_asc_disabled.png rename to app/assets/images/sort_asc_disabled.png diff --git a/public/images/sort_both.png b/app/assets/images/sort_both.png similarity index 100% rename from public/images/sort_both.png rename to app/assets/images/sort_both.png diff --git a/public/images/sort_desc.png b/app/assets/images/sort_desc.png similarity index 100% rename from public/images/sort_desc.png rename to app/assets/images/sort_desc.png diff --git a/public/images/sort_desc_disabled.png b/app/assets/images/sort_desc_disabled.png similarity index 100% rename from public/images/sort_desc_disabled.png rename to app/assets/images/sort_desc_disabled.png diff --git a/public/images/spinner.gif b/app/assets/images/spinner.gif similarity index 100% rename from public/images/spinner.gif rename to app/assets/images/spinner.gif diff --git a/public/images/starr2008.png b/app/assets/images/starr2008.png similarity index 100% rename from public/images/starr2008.png rename to app/assets/images/starr2008.png diff --git a/public/images/theme/bg-grain-grey.jpg b/app/assets/images/theme/bg-grain-grey.jpg similarity index 100% rename from public/images/theme/bg-grain-grey.jpg rename to app/assets/images/theme/bg-grain-grey.jpg diff --git a/public/images/theme/bg-nav-item.png b/app/assets/images/theme/bg-nav-item.png similarity index 100% rename from public/images/theme/bg-nav-item.png rename to app/assets/images/theme/bg-nav-item.png diff --git a/public/images/theme/bg-nav.jpg b/app/assets/images/theme/bg-nav.jpg similarity index 100% rename from public/images/theme/bg-nav.jpg rename to app/assets/images/theme/bg-nav.jpg diff --git a/public/images/theme/drop-over.png b/app/assets/images/theme/drop-over.png similarity index 100% rename from public/images/theme/drop-over.png rename to app/assets/images/theme/drop-over.png diff --git a/public/images/theme/drop.png b/app/assets/images/theme/drop.png similarity index 100% rename from public/images/theme/drop.png rename to app/assets/images/theme/drop.png diff --git a/public/images/theme/drop2.png b/app/assets/images/theme/drop2.png similarity index 100% rename from public/images/theme/drop2.png rename to app/assets/images/theme/drop2.png diff --git a/public/images/theme/logo-berkeley.png b/app/assets/images/theme/logo-berkeley.png similarity index 100% rename from public/images/theme/logo-berkeley.png rename to app/assets/images/theme/logo-berkeley.png diff --git a/public/images/theme/logo-bp.png b/app/assets/images/theme/logo-bp.png similarity index 100% rename from public/images/theme/logo-bp.png rename to app/assets/images/theme/logo-bp.png diff --git a/public/images/theme/logo-ebi-footer.jpg b/app/assets/images/theme/logo-ebi-footer.jpg similarity index 100% rename from public/images/theme/logo-ebi-footer.jpg rename to app/assets/images/theme/logo-ebi-footer.jpg diff --git a/public/images/theme/logo-ebi.png b/app/assets/images/theme/logo-ebi.png similarity index 100% rename from public/images/theme/logo-ebi.png rename to app/assets/images/theme/logo-ebi.png diff --git a/public/images/theme/logo-illinois.png b/app/assets/images/theme/logo-illinois.png similarity index 100% rename from public/images/theme/logo-illinois.png rename to app/assets/images/theme/logo-illinois.png diff --git a/public/images/theme/logo-lbl.png b/app/assets/images/theme/logo-lbl.png similarity index 100% rename from public/images/theme/logo-lbl.png rename to app/assets/images/theme/logo-lbl.png diff --git a/public/images/theme/nav-icon-admin.png b/app/assets/images/theme/nav-icon-admin.png similarity index 100% rename from public/images/theme/nav-icon-admin.png rename to app/assets/images/theme/nav-icon-admin.png diff --git a/public/images/theme/nav-icon-data.png b/app/assets/images/theme/nav-icon-data.png similarity index 100% rename from public/images/theme/nav-icon-data.png rename to app/assets/images/theme/nav-icon-data.png diff --git a/public/images/theme/nav-icon-docs.png b/app/assets/images/theme/nav-icon-docs.png similarity index 100% rename from public/images/theme/nav-icon-docs.png rename to app/assets/images/theme/nav-icon-docs.png diff --git a/public/images/theme/nav-icon-home.png b/app/assets/images/theme/nav-icon-home.png similarity index 100% rename from public/images/theme/nav-icon-home.png rename to app/assets/images/theme/nav-icon-home.png diff --git a/public/images/theme/nav-icon-logout.png b/app/assets/images/theme/nav-icon-logout.png similarity index 100% rename from public/images/theme/nav-icon-logout.png rename to app/assets/images/theme/nav-icon-logout.png diff --git a/public/images/theme/nav-icon-maps.png b/app/assets/images/theme/nav-icon-maps.png similarity index 100% rename from public/images/theme/nav-icon-maps.png rename to app/assets/images/theme/nav-icon-maps.png diff --git a/public/images/theme/nav-icon-new.png b/app/assets/images/theme/nav-icon-new.png similarity index 100% rename from public/images/theme/nav-icon-new.png rename to app/assets/images/theme/nav-icon-new.png diff --git a/public/images/theme/nav-separator.png b/app/assets/images/theme/nav-separator.png similarity index 100% rename from public/images/theme/nav-separator.png rename to app/assets/images/theme/nav-separator.png diff --git a/public/images/traits_new.png b/app/assets/images/traits_new.png similarity index 100% rename from public/images/traits_new.png rename to app/assets/images/traits_new.png diff --git a/public/images/treatment_new.png b/app/assets/images/treatment_new.png similarity index 100% rename from public/images/treatment_new.png rename to app/assets/images/treatment_new.png diff --git a/public/images/treatments_managements.png b/app/assets/images/treatments_managements.png similarity index 100% rename from public/images/treatments_managements.png rename to app/assets/images/treatments_managements.png diff --git a/public/images/uncheck.gif b/app/assets/images/uncheck.gif similarity index 100% rename from public/images/uncheck.gif rename to app/assets/images/uncheck.gif diff --git a/public/images/up.gif b/app/assets/images/up.gif similarity index 100% rename from public/images/up.gif rename to app/assets/images/up.gif diff --git a/public/images/up.png b/app/assets/images/up.png similarity index 100% rename from public/images/up.png rename to app/assets/images/up.png diff --git a/public/images/up_arrow.gif b/app/assets/images/up_arrow.gif similarity index 100% rename from public/images/up_arrow.gif rename to app/assets/images/up_arrow.gif diff --git a/public/images/up_g.gif b/app/assets/images/up_g.gif similarity index 100% rename from public/images/up_g.gif rename to app/assets/images/up_g.gif diff --git a/public/images/up_g.png b/app/assets/images/up_g.png similarity index 100% rename from public/images/up_g.png rename to app/assets/images/up_g.png diff --git a/public/images/update.jpg b/app/assets/images/update.jpg similarity index 100% rename from public/images/update.jpg rename to app/assets/images/update.jpg diff --git a/public/images/whiteball.gif b/app/assets/images/whiteball.gif similarity index 100% rename from public/images/whiteball.gif rename to app/assets/images/whiteball.gif diff --git a/public/images/whiteball.png b/app/assets/images/whiteball.png similarity index 100% rename from public/images/whiteball.png rename to app/assets/images/whiteball.png diff --git a/public/images/yellowball.gif b/app/assets/images/yellowball.gif similarity index 100% rename from public/images/yellowball.gif rename to app/assets/images/yellowball.gif diff --git a/public/images/yellowball.png b/app/assets/images/yellowball.png similarity index 100% rename from public/images/yellowball.png rename to app/assets/images/yellowball.png diff --git a/public/images/yield_maps/bz_sugarcane.png b/app/assets/images/yield_maps/bz_sugarcane.png similarity index 100% rename from public/images/yield_maps/bz_sugarcane.png rename to app/assets/images/yield_maps/bz_sugarcane.png diff --git a/public/images/yield_maps/us_miscanthus.png b/app/assets/images/yield_maps/us_miscanthus.png similarity index 100% rename from public/images/yield_maps/us_miscanthus.png rename to app/assets/images/yield_maps/us_miscanthus.png diff --git a/public/images/yields_new.png b/app/assets/images/yields_new.png similarity index 100% rename from public/images/yields_new.png rename to app/assets/images/yields_new.png diff --git a/public/images/ylw-circle_maps.png b/app/assets/images/ylw-circle_maps.png similarity index 100% rename from public/images/ylw-circle_maps.png rename to app/assets/images/ylw-circle_maps.png diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 000000000..66d868d2d --- /dev/null +++ b/app/assets/javascripts/application.js @@ -0,0 +1,21 @@ +// Place your application-specific JavaScript functions and classes here +// This file is automatically included by javascript_include_tag :defaults + +//= require jquery +//= require rails-ujs +//= require jquery-ui + +// Remove conflicting definition of $ before loading Prototype: +//= require noconflict + +// defines Form: +//= require prototype + +// defines Effect +//= require effects + +// defines showHide +//= require min + +//= require lazy/simple_search +//= require lazy/application diff --git a/public/javascripts/bootstrap.js b/app/assets/javascripts/bootstrap.js similarity index 100% rename from public/javascripts/bootstrap.js rename to app/assets/javascripts/bootstrap.js diff --git a/public/javascripts/cache/all.js-sample b/app/assets/javascripts/cache/all.js-sample similarity index 100% rename from public/javascripts/cache/all.js-sample rename to app/assets/javascripts/cache/all.js-sample diff --git a/public/javascripts/controls.js b/app/assets/javascripts/controls.js similarity index 100% rename from public/javascripts/controls.js rename to app/assets/javascripts/controls.js diff --git a/public/javascripts/dragdrop.js b/app/assets/javascripts/dragdrop.js similarity index 100% rename from public/javascripts/dragdrop.js rename to app/assets/javascripts/dragdrop.js diff --git a/public/javascripts/effects.js b/app/assets/javascripts/effects.js similarity index 100% rename from public/javascripts/effects.js rename to app/assets/javascripts/effects.js diff --git a/public/javascripts/lazy/application.js b/app/assets/javascripts/lazy/application.js similarity index 100% rename from public/javascripts/lazy/application.js rename to app/assets/javascripts/lazy/application.js diff --git a/public/javascripts/lazy/autocomplete.js b/app/assets/javascripts/lazy/autocomplete.js similarity index 100% rename from public/javascripts/lazy/autocomplete.js rename to app/assets/javascripts/lazy/autocomplete.js diff --git a/public/javascripts/lazy/bulk_upload.js b/app/assets/javascripts/lazy/bulk_upload.js similarity index 100% rename from public/javascripts/lazy/bulk_upload.js rename to app/assets/javascripts/lazy/bulk_upload.js diff --git a/public/javascripts/lazy/feedback.js b/app/assets/javascripts/lazy/feedback.js similarity index 100% rename from public/javascripts/lazy/feedback.js rename to app/assets/javascripts/lazy/feedback.js diff --git a/public/javascripts/lazy/jquery-1.11.0.js b/app/assets/javascripts/lazy/jquery-1.11.0.js similarity index 100% rename from public/javascripts/lazy/jquery-1.11.0.js rename to app/assets/javascripts/lazy/jquery-1.11.0.js diff --git a/public/javascripts/lazy/jquery-1.11.0.min.js b/app/assets/javascripts/lazy/jquery-1.11.0.min.js similarity index 100% rename from public/javascripts/lazy/jquery-1.11.0.min.js rename to app/assets/javascripts/lazy/jquery-1.11.0.min.js diff --git a/public/javascripts/lazy/jquery-1.7.2.js b/app/assets/javascripts/lazy/jquery-1.7.2.js similarity index 100% rename from public/javascripts/lazy/jquery-1.7.2.js rename to app/assets/javascripts/lazy/jquery-1.7.2.js diff --git a/public/javascripts/lazy/jquery-ui-1.10.4.min.js b/app/assets/javascripts/lazy/jquery-ui-1.10.4.min.js similarity index 100% rename from public/javascripts/lazy/jquery-ui-1.10.4.min.js rename to app/assets/javascripts/lazy/jquery-ui-1.10.4.min.js diff --git a/public/javascripts/lazy/login.js b/app/assets/javascripts/lazy/login.js similarity index 100% rename from public/javascripts/lazy/login.js rename to app/assets/javascripts/lazy/login.js diff --git a/public/javascripts/lazy/map_search.js b/app/assets/javascripts/lazy/map_search.js similarity index 100% rename from public/javascripts/lazy/map_search.js rename to app/assets/javascripts/lazy/map_search.js diff --git a/public/javascripts/lazy/schemaSpy.js b/app/assets/javascripts/lazy/schemaSpy.js similarity index 100% rename from public/javascripts/lazy/schemaSpy.js rename to app/assets/javascripts/lazy/schemaSpy.js diff --git a/public/javascripts/lazy/simple_search.js b/app/assets/javascripts/lazy/simple_search.js similarity index 100% rename from public/javascripts/lazy/simple_search.js rename to app/assets/javascripts/lazy/simple_search.js diff --git a/public/javascripts/libs/imgsizer.js b/app/assets/javascripts/libs/imgsizer.js similarity index 100% rename from public/javascripts/libs/imgsizer.js rename to app/assets/javascripts/libs/imgsizer.js diff --git a/public/javascripts/libs/jquery-1.6.2.min.js b/app/assets/javascripts/libs/jquery-1.6.2.min.js similarity index 100% rename from public/javascripts/libs/jquery-1.6.2.min.js rename to app/assets/javascripts/libs/jquery-1.6.2.min.js diff --git a/public/javascripts/libs/jquery-1.7.2.min.js b/app/assets/javascripts/libs/jquery-1.7.2.min.js similarity index 100% rename from public/javascripts/libs/jquery-1.7.2.min.js rename to app/assets/javascripts/libs/jquery-1.7.2.min.js diff --git a/public/javascripts/libs/jquery-1.8.1.min.js b/app/assets/javascripts/libs/jquery-1.8.1.min.js similarity index 100% rename from public/javascripts/libs/jquery-1.8.1.min.js rename to app/assets/javascripts/libs/jquery-1.8.1.min.js diff --git a/public/javascripts/libs/jquery-migrate-1.2.1.js b/app/assets/javascripts/libs/jquery-migrate-1.2.1.js similarity index 100% rename from public/javascripts/libs/jquery-migrate-1.2.1.js rename to app/assets/javascripts/libs/jquery-migrate-1.2.1.js diff --git a/public/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js b/app/assets/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js similarity index 100% rename from public/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js rename to app/assets/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js diff --git a/public/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js b/app/assets/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js similarity index 100% rename from public/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js rename to app/assets/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js diff --git a/public/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.min.js b/app/assets/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.min.js similarity index 100% rename from public/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.min.js rename to app/assets/javascripts/libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.min.js diff --git a/public/javascripts/libs/jquery.autocomplete.js b/app/assets/javascripts/libs/jquery.autocomplete.js similarity index 100% rename from public/javascripts/libs/jquery.autocomplete.js rename to app/assets/javascripts/libs/jquery.autocomplete.js diff --git a/public/javascripts/libs/jquery.dataTables.min.js b/app/assets/javascripts/libs/jquery.dataTables.min.js similarity index 100% rename from public/javascripts/libs/jquery.dataTables.min.js rename to app/assets/javascripts/libs/jquery.dataTables.min.js diff --git a/public/javascripts/libs/jquery.js b/app/assets/javascripts/libs/jquery.js similarity index 100% rename from public/javascripts/libs/jquery.js rename to app/assets/javascripts/libs/jquery.js diff --git a/public/javascripts/libs/modernizr-2.0.6.min.js b/app/assets/javascripts/libs/modernizr-2.0.6.min.js similarity index 100% rename from public/javascripts/libs/modernizr-2.0.6.min.js rename to app/assets/javascripts/libs/modernizr-2.0.6.min.js diff --git a/public/javascripts/libs/respond.min.js b/app/assets/javascripts/libs/respond.min.js similarity index 100% rename from public/javascripts/libs/respond.min.js rename to app/assets/javascripts/libs/respond.min.js diff --git a/public/javascripts/libs/selectivizr-min.js b/app/assets/javascripts/libs/selectivizr-min.js similarity index 100% rename from public/javascripts/libs/selectivizr-min.js rename to app/assets/javascripts/libs/selectivizr-min.js diff --git a/public/javascripts/min.js b/app/assets/javascripts/min.js similarity index 100% rename from public/javascripts/min.js rename to app/assets/javascripts/min.js diff --git a/public/javascripts/mylibs/helper.js b/app/assets/javascripts/mylibs/helper.js similarity index 100% rename from public/javascripts/mylibs/helper.js rename to app/assets/javascripts/mylibs/helper.js diff --git a/public/javascripts/mylibs/imgSizer.js b/app/assets/javascripts/mylibs/imgSizer.js similarity index 100% rename from public/javascripts/mylibs/imgSizer.js rename to app/assets/javascripts/mylibs/imgSizer.js diff --git a/public/javascripts/mylibs/maps.js b/app/assets/javascripts/mylibs/maps.js similarity index 100% rename from public/javascripts/mylibs/maps.js rename to app/assets/javascripts/mylibs/maps.js diff --git a/app/assets/javascripts/noconflict.js b/app/assets/javascripts/noconflict.js new file mode 100644 index 000000000..f4b1f44e8 --- /dev/null +++ b/app/assets/javascripts/noconflict.js @@ -0,0 +1 @@ +jQuery.noConflict(); diff --git a/public/javascripts/plugins.js b/app/assets/javascripts/plugins.js similarity index 100% rename from public/javascripts/plugins.js rename to app/assets/javascripts/plugins.js diff --git a/public/javascripts/prototype.js b/app/assets/javascripts/prototype.js similarity index 100% rename from public/javascripts/prototype.js rename to app/assets/javascripts/prototype.js diff --git a/public/javascripts/rails.js b/app/assets/javascripts/rails.js similarity index 100% rename from public/javascripts/rails.js rename to app/assets/javascripts/rails.js diff --git a/public/javascripts/rails.js.bak b/app/assets/javascripts/rails.js.bak similarity index 100% rename from public/javascripts/rails.js.bak rename to app/assets/javascripts/rails.js.bak diff --git a/public/javascripts/script.js b/app/assets/javascripts/script.js similarity index 100% rename from public/javascripts/script.js rename to app/assets/javascripts/script.js diff --git a/public/javascripts/window.js b/app/assets/javascripts/window.js similarity index 100% rename from public/javascripts/window.js rename to app/assets/javascripts/window.js diff --git a/public/stylesheets/.gitkeep b/app/assets/stylesheets/.gitkeep similarity index 100% rename from public/stylesheets/.gitkeep rename to app/assets/stylesheets/.gitkeep diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 000000000..fc0b14604 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,25 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's + * vendor/assets/stylesheets directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + * =require jquery-ui-1.10.4.min + * =require themes/default + * =require themes/alphacube + * =require scaffold + * =require base + * =require grid + * =require layout + * =require dropdown + * =require tables + * =require demo + * =require jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.css + * =require_self + */ diff --git a/public/stylesheets/base.css b/app/assets/stylesheets/base.css.erb similarity index 99% rename from public/stylesheets/base.css rename to app/assets/stylesheets/base.css.erb index bb007ce18..7e3cc9bb5 100755 --- a/public/stylesheets/base.css +++ b/app/assets/stylesheets/base.css.erb @@ -1698,7 +1698,7 @@ table th[class*="span"], *margin-right: .3em; line-height: 14px; vertical-align: text-top; - background-image: url("../images/glyphicons-halflings.png"); + background-image: url(<%= asset_path("glyphicons-halflings.png") %>); background-position: 14px 14px; background-repeat: no-repeat; } @@ -1718,7 +1718,7 @@ table th[class*="span"], .dropdown-menu > .active > a > [class*=" icon-"], .dropdown-submenu:hover > a > [class^="icon-"], .dropdown-submenu:hover > a > [class*=" icon-"] { - background-image: url("../images/glyphicons-halflings-white.png"); + background-image: url(<%= asset_path("glyphicons-halflings-white.png") %>); } .icon-glass { diff --git a/public/stylesheets/bulk_upload.css b/app/assets/stylesheets/bulk_upload.css similarity index 100% rename from public/stylesheets/bulk_upload.css rename to app/assets/stylesheets/bulk_upload.css diff --git a/public/stylesheets/demo.css b/app/assets/stylesheets/demo.css similarity index 100% rename from public/stylesheets/demo.css rename to app/assets/stylesheets/demo.css diff --git a/public/stylesheets/dropdown.css b/app/assets/stylesheets/dropdown.css.erb similarity index 89% rename from public/stylesheets/dropdown.css rename to app/assets/stylesheets/dropdown.css.erb index 7ec3e9b63..db7597988 100755 --- a/public/stylesheets/dropdown.css +++ b/app/assets/stylesheets/dropdown.css.erb @@ -148,7 +148,7 @@ ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul{ width: 12.5%; /* this will need to be adjusted for your needs */ height: 69px; background-color: transparent; - background-image: url('../images/nav-separator.png'); + background-image: url(<%= asset_path('nav-separator.png') %>); background-position: 0 0; background-repeat: repeat-y; } @@ -169,7 +169,7 @@ ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul{ /* new style for drop list items */ .main-menu li li { background: #000; - background-image: url('../images/nav-separator.png'); + background-image: url(<%= asset_path('nav-separator.png') %>); background-repeat: repeat-y; clear: left; width: 100%; @@ -227,31 +227,31 @@ ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul{ font-size: 14px; } .main-menu li.menu-home > a { - background: transparent url(../images/nav-icon-home.png) 10px 41px no-repeat; + background: transparent url(<%= asset_path("nav-icon-home.png") %>) 10px 41px no-repeat; padding-left: 23px; } .main-menu li.menu-docs > a { - background: transparent url(../images/nav-icon-docs.png) 10px 41px no-repeat; + background: transparent url(<%= asset_path("nav-icon-docs.png") %>) 10px 41px no-repeat; padding-left: 23px; } .main-menu li.menu-maps > a { - background: transparent url(../images/nav-icon-maps.png) 10px 41px no-repeat; + background: transparent url(<%= asset_path("nav-icon-maps.png") %>) 10px 41px no-repeat; padding-left: 23px; } .main-menu li.menu-data > a { - background: transparent url(../images/nav-icon-data.png) 10px 41px no-repeat; + background: transparent url(<%= asset_path("nav-icon-data.png") %>) 10px 41px no-repeat; padding-left: 23px; } .main-menu li.menu-new > a { - background: transparent url(../images/nav-icon-new.png) 10px 41px no-repeat; + background: transparent url(<%= asset_path("nav-icon-new.png") %>) 10px 41px no-repeat; padding-left: 23px; } .main-menu li.menu-admin > a { - background: transparent url(../images/nav-icon-admin.png) 10px 41px no-repeat; + background: transparent url(<%= asset_path("nav-icon-admin.png") %>) 10px 41px no-repeat; padding-left: 23px; } .main-menu li.menu-login > a { - background: transparent url(../images/nav-icon-logout.png) 100% 41px no-repeat; + background: transparent url(<%= asset_path("nav-icon-logout.png") %>) 100% 41px no-repeat; width: 84%; padding-right: 23px; } diff --git a/public/stylesheets/font-awesome.min.css b/app/assets/stylesheets/font-awesome.min.css similarity index 100% rename from public/stylesheets/font-awesome.min.css rename to app/assets/stylesheets/font-awesome.min.css diff --git a/public/stylesheets/grid.css b/app/assets/stylesheets/grid.css similarity index 100% rename from public/stylesheets/grid.css rename to app/assets/stylesheets/grid.css diff --git a/public/stylesheets/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/app/assets/stylesheets/images/ui-bg_gloss-wave_35_f6a828_500x100.png similarity index 100% rename from public/stylesheets/images/ui-bg_gloss-wave_35_f6a828_500x100.png rename to app/assets/stylesheets/images/ui-bg_gloss-wave_35_f6a828_500x100.png diff --git a/public/stylesheets/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/app/assets/stylesheets/images/ui-bg_highlight-soft_100_eeeeee_1x100.png similarity index 100% rename from public/stylesheets/images/ui-bg_highlight-soft_100_eeeeee_1x100.png rename to app/assets/stylesheets/images/ui-bg_highlight-soft_100_eeeeee_1x100.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/animated-overlay.gif b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/animated-overlay.gif similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/animated-overlay.gif rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/animated-overlay.gif diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_222222_256x240.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_222222_256x240.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_222222_256x240.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_222222_256x240.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.css b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.css similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.css rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.css diff --git a/public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css b/app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css rename to app/assets/stylesheets/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css diff --git a/public/stylesheets/jquery-ui-1.10.4.min.css b/app/assets/stylesheets/jquery-ui-1.10.4.min.css similarity index 100% rename from public/stylesheets/jquery-ui-1.10.4.min.css rename to app/assets/stylesheets/jquery-ui-1.10.4.min.css diff --git a/public/stylesheets/layout.css b/app/assets/stylesheets/layout.css.erb similarity index 94% rename from public/stylesheets/layout.css rename to app/assets/stylesheets/layout.css.erb index 4673a9591..5eeedd3dd 100755 --- a/public/stylesheets/layout.css +++ b/app/assets/stylesheets/layout.css.erb @@ -96,8 +96,7 @@ line-height:normal; bottom: 0; right: 0; height: 80px; - width: 80px; - background: url(../../stylesheets/images/resize.png); } + width: 80px; } img { @@ -250,7 +249,7 @@ Bootstrap Styles } .header { - background: #dfdfdf url("../images/bg-grain-grey.jpg") top left repeat; + background: #dfdfdf url(<%= asset_path("bg-grain-grey.jpg") %>) top left repeat; text-shadow: 0px 1px 1px rgba(255,255,255,1); } .header h1 { @@ -273,7 +272,7 @@ Bootstrap Styles width: 100px; text-align: right; display: inline-block; - background: url(../images/logo-ebi.png) top right no-repeat; + background: url(<%= asset_path("logo-ebi.png") %>) top right no-repeat; padding-right: 45px; height: 46px; padding-top: 4px; @@ -300,7 +299,7 @@ Bootstrap Styles color: #444; } body > .nav { - background: #505050 url("../images/bg-nav.jpg") top left repeat-x; + background: #505050 url(<%= asset_path("bg-nav.jpg") %>) top left repeat-x; color: #fff; height: 75px; padding-top: 6px; @@ -383,7 +382,7 @@ body > .nav { } .sidenav .active .icon-chevron-right, .sidenav .active a:hover .icon-chevron-right { - background-image: url(../images/glyphicons-halflings-white.png); + background-image: url(<%= asset_path("glyphicons-halflings-white.png") %>); opacity: 1; } .sidenav.affix { @@ -463,7 +462,7 @@ border-bottom-color: transparent; padding-top: 40px; line-height: 13px; font-size: 11px; - background: url("../images/logo-ebi-footer.jpg") top center no-repeat; + background: url(<%= asset_path("logo-ebi-footer.jpg") %>) top center no-repeat; } .footer .six.columns.omega p:first-child { margin-bottom: 10px; @@ -612,22 +611,22 @@ border-bottom-color: transparent; overflow: hidden; } .footer .footnotes a.illinois { - background: url(../images/logo-illinois.png) 0 0 no-repeat; + background: url(<%= asset_path("logo-illinois.png") %>) 0 0 no-repeat; width: 246px; } .footer .footnotes a.berkeley { - background: url(../images/logo-berkeley.png) 0 0 no-repeat; + background: url(<%= asset_path("logo-berkeley.png") %>) 0 0 no-repeat; width: 145px; margin-left: 20%; } .footer .footnotes a.lbl { - background: url(../images/logo-lbl.png) 0 0 no-repeat; + background: url(<%= asset_path("logo-lbl.png") %>) 0 0 no-repeat; width: 232px; } .footer .footnotes a.bp { - background: url(../images/logo-bp.png) 0 0 no-repeat; + background: url(<%= asset_path("logo-bp.png") %>) 0 0 no-repeat; width: 54px; margin-right: 40%; } diff --git a/public/stylesheets/mobile.css b/app/assets/stylesheets/mobile.css similarity index 100% rename from public/stylesheets/mobile.css rename to app/assets/stylesheets/mobile.css diff --git a/public/stylesheets/scaffold.css b/app/assets/stylesheets/scaffold.css similarity index 99% rename from public/stylesheets/scaffold.css rename to app/assets/stylesheets/scaffold.css index d1bc40749..a649d0da2 100644 --- a/public/stylesheets/scaffold.css +++ b/app/assets/stylesheets/scaffold.css @@ -225,7 +225,7 @@ div#banner a.logo { width: 213px; height: 109px; text-indent: -9999em; - top left no-repeat; + background: top left no-repeat; } div#banner a.bety-db { diff --git a/public/stylesheets/schemaSpy.css b/app/assets/stylesheets/schemaSpy.css similarity index 100% rename from public/stylesheets/schemaSpy.css rename to app/assets/stylesheets/schemaSpy.css diff --git a/public/stylesheets/tables.css b/app/assets/stylesheets/tables.css.erb similarity index 93% rename from public/stylesheets/tables.css rename to app/assets/stylesheets/tables.css.erb index ddaaa2df5..20210e590 100755 --- a/public/stylesheets/tables.css +++ b/app/assets/stylesheets/tables.css.erb @@ -110,25 +110,25 @@ div.dataTables_filter label { } .paginate_disabled_previous { - background: url('../images/back_disabled.png') no-repeat top left; + background: url(<%= asset_path("back_disabled.png") %>) no-repeat top left; } .paginate_enabled_previous { - background: url('../images/back_enabled.png') no-repeat top left; + background: url(<%= asset_path("back_enabled.png") %>) no-repeat top left; } .paginate_enabled_previous:hover { - background: url('../images/back_enabled_hover.png') no-repeat top left; + background: url(<%= asset_path("back_enabled_hover.png") %>) no-repeat top left; } .paginate_disabled_next { - background: url('../images/forward_disabled.png') no-repeat top right; + background: url(<%= asset_path("forward_disabled.png") %>) no-repeat top right; } .paginate_enabled_next { - background: url('../images/forward_enabled.png') no-repeat top right; + background: url(<%= asset_path("forward_enabled.png") %>) no-repeat top right; } .paginate_enabled_next:hover { - background: url('../images/forward_enabled_hover.png') no-repeat top right; + background: url(<%= asset_path("forward_enabled_hover.png") %>) no-repeat top right; } @@ -239,27 +239,27 @@ table.table thead .sorting_desc_disabled { *cursor: hand; } table.table .sorting_asc { - background: url('../images/sort_asc.png') no-repeat center right; + background: url(<%= asset_path("sort_asc.png") %>) no-repeat center right; color: #007eac; } table.table .sorting_desc { - background: url('../images/sort_desc.png') no-repeat center right; + background: url(<%= asset_path("sort_desc.png") %>) no-repeat center right; color: #007eac; } table.table .sorting { - background: url('../images/sort_both.png') no-repeat center right; + background: url(<%= asset_path("sort_both.png") %>) no-repeat center right; } table.table .sorting_asc_disabled { - background: url('../images/sort_asc_disabled.png') no-repeat center right; + background: url(<%= asset_path("sort_asc_disabled.png") %>) no-repeat center right; } table.table .sorting_desc_disabled { - background: url('../images/sort_desc_disabled.png') no-repeat center right; + background: url(<%= asset_path("sort_desc_disabled.png") %>) no-repeat center right; } table.table thead th:active, diff --git a/public/stylesheets/themes/alert.css b/app/assets/stylesheets/themes/alert.css similarity index 100% rename from public/stylesheets/themes/alert.css rename to app/assets/stylesheets/themes/alert.css diff --git a/public/stylesheets/themes/alert/bottom.gif b/app/assets/stylesheets/themes/alert/bottom.gif similarity index 100% rename from public/stylesheets/themes/alert/bottom.gif rename to app/assets/stylesheets/themes/alert/bottom.gif diff --git a/public/stylesheets/themes/alert/bottom_left.gif b/app/assets/stylesheets/themes/alert/bottom_left.gif similarity index 100% rename from public/stylesheets/themes/alert/bottom_left.gif rename to app/assets/stylesheets/themes/alert/bottom_left.gif diff --git a/public/stylesheets/themes/alert/bottom_right.gif b/app/assets/stylesheets/themes/alert/bottom_right.gif similarity index 100% rename from public/stylesheets/themes/alert/bottom_right.gif rename to app/assets/stylesheets/themes/alert/bottom_right.gif diff --git a/public/stylesheets/themes/alert/left.gif b/app/assets/stylesheets/themes/alert/left.gif similarity index 100% rename from public/stylesheets/themes/alert/left.gif rename to app/assets/stylesheets/themes/alert/left.gif diff --git a/public/stylesheets/themes/alert/overlay.png b/app/assets/stylesheets/themes/alert/overlay.png similarity index 100% rename from public/stylesheets/themes/alert/overlay.png rename to app/assets/stylesheets/themes/alert/overlay.png diff --git a/public/stylesheets/themes/alert/progress.gif b/app/assets/stylesheets/themes/alert/progress.gif similarity index 100% rename from public/stylesheets/themes/alert/progress.gif rename to app/assets/stylesheets/themes/alert/progress.gif diff --git a/public/stylesheets/themes/alert/right.gif b/app/assets/stylesheets/themes/alert/right.gif similarity index 100% rename from public/stylesheets/themes/alert/right.gif rename to app/assets/stylesheets/themes/alert/right.gif diff --git a/public/stylesheets/themes/alert/top.gif b/app/assets/stylesheets/themes/alert/top.gif similarity index 100% rename from public/stylesheets/themes/alert/top.gif rename to app/assets/stylesheets/themes/alert/top.gif diff --git a/public/stylesheets/themes/alert/top_left.gif b/app/assets/stylesheets/themes/alert/top_left.gif similarity index 100% rename from public/stylesheets/themes/alert/top_left.gif rename to app/assets/stylesheets/themes/alert/top_left.gif diff --git a/public/stylesheets/themes/alert/top_right.gif b/app/assets/stylesheets/themes/alert/top_right.gif similarity index 100% rename from public/stylesheets/themes/alert/top_right.gif rename to app/assets/stylesheets/themes/alert/top_right.gif diff --git a/public/stylesheets/themes/alert_lite.css b/app/assets/stylesheets/themes/alert_lite.css similarity index 100% rename from public/stylesheets/themes/alert_lite.css rename to app/assets/stylesheets/themes/alert_lite.css diff --git a/public/stylesheets/themes/alphacube.css b/app/assets/stylesheets/themes/alphacube.css similarity index 100% rename from public/stylesheets/themes/alphacube.css rename to app/assets/stylesheets/themes/alphacube.css diff --git a/public/stylesheets/themes/alphacube/bottom-left-c.gif b/app/assets/stylesheets/themes/alphacube/bottom-left-c.gif similarity index 100% rename from public/stylesheets/themes/alphacube/bottom-left-c.gif rename to app/assets/stylesheets/themes/alphacube/bottom-left-c.gif diff --git a/public/stylesheets/themes/alphacube/bottom-middle.gif b/app/assets/stylesheets/themes/alphacube/bottom-middle.gif similarity index 100% rename from public/stylesheets/themes/alphacube/bottom-middle.gif rename to app/assets/stylesheets/themes/alphacube/bottom-middle.gif diff --git a/public/stylesheets/themes/alphacube/bottom-right-c.gif b/app/assets/stylesheets/themes/alphacube/bottom-right-c.gif similarity index 100% rename from public/stylesheets/themes/alphacube/bottom-right-c.gif rename to app/assets/stylesheets/themes/alphacube/bottom-right-c.gif diff --git a/public/stylesheets/themes/alphacube/button-close-focus.gif b/app/assets/stylesheets/themes/alphacube/button-close-focus.gif similarity index 100% rename from public/stylesheets/themes/alphacube/button-close-focus.gif rename to app/assets/stylesheets/themes/alphacube/button-close-focus.gif diff --git a/public/stylesheets/themes/alphacube/button-max-focus.gif b/app/assets/stylesheets/themes/alphacube/button-max-focus.gif similarity index 100% rename from public/stylesheets/themes/alphacube/button-max-focus.gif rename to app/assets/stylesheets/themes/alphacube/button-max-focus.gif diff --git a/public/stylesheets/themes/alphacube/button-min-focus.gif b/app/assets/stylesheets/themes/alphacube/button-min-focus.gif similarity index 100% rename from public/stylesheets/themes/alphacube/button-min-focus.gif rename to app/assets/stylesheets/themes/alphacube/button-min-focus.gif diff --git a/public/stylesheets/themes/alphacube/frame-left.gif b/app/assets/stylesheets/themes/alphacube/frame-left.gif similarity index 100% rename from public/stylesheets/themes/alphacube/frame-left.gif rename to app/assets/stylesheets/themes/alphacube/frame-left.gif diff --git a/public/stylesheets/themes/alphacube/frame-right.gif b/app/assets/stylesheets/themes/alphacube/frame-right.gif similarity index 100% rename from public/stylesheets/themes/alphacube/frame-right.gif rename to app/assets/stylesheets/themes/alphacube/frame-right.gif diff --git a/public/stylesheets/themes/alphacube/left-top.gif b/app/assets/stylesheets/themes/alphacube/left-top.gif similarity index 100% rename from public/stylesheets/themes/alphacube/left-top.gif rename to app/assets/stylesheets/themes/alphacube/left-top.gif diff --git a/public/stylesheets/themes/alphacube/right-top.gif b/app/assets/stylesheets/themes/alphacube/right-top.gif similarity index 100% rename from public/stylesheets/themes/alphacube/right-top.gif rename to app/assets/stylesheets/themes/alphacube/right-top.gif diff --git a/public/stylesheets/themes/alphacube/top-middle.gif b/app/assets/stylesheets/themes/alphacube/top-middle.gif similarity index 100% rename from public/stylesheets/themes/alphacube/top-middle.gif rename to app/assets/stylesheets/themes/alphacube/top-middle.gif diff --git a/public/stylesheets/themes/behavior.htc b/app/assets/stylesheets/themes/behavior.htc similarity index 100% rename from public/stylesheets/themes/behavior.htc rename to app/assets/stylesheets/themes/behavior.htc diff --git a/public/stylesheets/themes/darkX.css b/app/assets/stylesheets/themes/darkX.css similarity index 100% rename from public/stylesheets/themes/darkX.css rename to app/assets/stylesheets/themes/darkX.css diff --git a/public/stylesheets/themes/darkX/button-close-focused.png b/app/assets/stylesheets/themes/darkX/button-close-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/button-close-focused.png rename to app/assets/stylesheets/themes/darkX/button-close-focused.png diff --git a/public/stylesheets/themes/darkX/button-maximize-focused.png b/app/assets/stylesheets/themes/darkX/button-maximize-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/button-maximize-focused.png rename to app/assets/stylesheets/themes/darkX/button-maximize-focused.png diff --git a/public/stylesheets/themes/darkX/button-minimize-focused.png b/app/assets/stylesheets/themes/darkX/button-minimize-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/button-minimize-focused.png rename to app/assets/stylesheets/themes/darkX/button-minimize-focused.png diff --git a/public/stylesheets/themes/darkX/frame-bottom-left-focused.png b/app/assets/stylesheets/themes/darkX/frame-bottom-left-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/frame-bottom-left-focused.png rename to app/assets/stylesheets/themes/darkX/frame-bottom-left-focused.png diff --git a/public/stylesheets/themes/darkX/frame-bottom-mid-focused.png b/app/assets/stylesheets/themes/darkX/frame-bottom-mid-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/frame-bottom-mid-focused.png rename to app/assets/stylesheets/themes/darkX/frame-bottom-mid-focused.png diff --git a/public/stylesheets/themes/darkX/frame-bottom-right-focused.png b/app/assets/stylesheets/themes/darkX/frame-bottom-right-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/frame-bottom-right-focused.png rename to app/assets/stylesheets/themes/darkX/frame-bottom-right-focused.png diff --git a/public/stylesheets/themes/darkX/frame-left-focused.png b/app/assets/stylesheets/themes/darkX/frame-left-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/frame-left-focused.png rename to app/assets/stylesheets/themes/darkX/frame-left-focused.png diff --git a/public/stylesheets/themes/darkX/frame-right-focused.png b/app/assets/stylesheets/themes/darkX/frame-right-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/frame-right-focused.png rename to app/assets/stylesheets/themes/darkX/frame-right-focused.png diff --git a/public/stylesheets/themes/darkX/titlebar-left-focused.png b/app/assets/stylesheets/themes/darkX/titlebar-left-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/titlebar-left-focused.png rename to app/assets/stylesheets/themes/darkX/titlebar-left-focused.png diff --git a/public/stylesheets/themes/darkX/titlebar-mid-focused.png b/app/assets/stylesheets/themes/darkX/titlebar-mid-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/titlebar-mid-focused.png rename to app/assets/stylesheets/themes/darkX/titlebar-mid-focused.png diff --git a/public/stylesheets/themes/darkX/titlebar-right-focused.png b/app/assets/stylesheets/themes/darkX/titlebar-right-focused.png similarity index 100% rename from public/stylesheets/themes/darkX/titlebar-right-focused.png rename to app/assets/stylesheets/themes/darkX/titlebar-right-focused.png diff --git a/public/stylesheets/themes/debug.css b/app/assets/stylesheets/themes/debug.css similarity index 100% rename from public/stylesheets/themes/debug.css rename to app/assets/stylesheets/themes/debug.css diff --git a/public/stylesheets/themes/default.css b/app/assets/stylesheets/themes/default.css similarity index 100% rename from public/stylesheets/themes/default.css rename to app/assets/stylesheets/themes/default.css diff --git a/public/stylesheets/themes/default/bottom_left.gif b/app/assets/stylesheets/themes/default/bottom_left.gif similarity index 100% rename from public/stylesheets/themes/default/bottom_left.gif rename to app/assets/stylesheets/themes/default/bottom_left.gif diff --git a/public/stylesheets/themes/default/bottom_mid.gif b/app/assets/stylesheets/themes/default/bottom_mid.gif similarity index 100% rename from public/stylesheets/themes/default/bottom_mid.gif rename to app/assets/stylesheets/themes/default/bottom_mid.gif diff --git a/public/stylesheets/themes/default/bottom_right.gif b/app/assets/stylesheets/themes/default/bottom_right.gif similarity index 100% rename from public/stylesheets/themes/default/bottom_right.gif rename to app/assets/stylesheets/themes/default/bottom_right.gif diff --git a/public/stylesheets/themes/default/bottom_right_resize.gif b/app/assets/stylesheets/themes/default/bottom_right_resize.gif similarity index 100% rename from public/stylesheets/themes/default/bottom_right_resize.gif rename to app/assets/stylesheets/themes/default/bottom_right_resize.gif diff --git a/public/stylesheets/themes/default/center_left.gif b/app/assets/stylesheets/themes/default/center_left.gif similarity index 100% rename from public/stylesheets/themes/default/center_left.gif rename to app/assets/stylesheets/themes/default/center_left.gif diff --git a/public/stylesheets/themes/default/center_right.gif b/app/assets/stylesheets/themes/default/center_right.gif similarity index 100% rename from public/stylesheets/themes/default/center_right.gif rename to app/assets/stylesheets/themes/default/center_right.gif diff --git a/public/stylesheets/themes/default/clear.gif b/app/assets/stylesheets/themes/default/clear.gif similarity index 100% rename from public/stylesheets/themes/default/clear.gif rename to app/assets/stylesheets/themes/default/clear.gif diff --git a/public/stylesheets/themes/default/close.gif b/app/assets/stylesheets/themes/default/close.gif similarity index 100% rename from public/stylesheets/themes/default/close.gif rename to app/assets/stylesheets/themes/default/close.gif diff --git a/public/stylesheets/themes/default/inspect.gif b/app/assets/stylesheets/themes/default/inspect.gif similarity index 100% rename from public/stylesheets/themes/default/inspect.gif rename to app/assets/stylesheets/themes/default/inspect.gif diff --git a/public/stylesheets/themes/default/maximize.gif b/app/assets/stylesheets/themes/default/maximize.gif similarity index 100% rename from public/stylesheets/themes/default/maximize.gif rename to app/assets/stylesheets/themes/default/maximize.gif diff --git a/public/stylesheets/themes/default/minimize.gif b/app/assets/stylesheets/themes/default/minimize.gif similarity index 100% rename from public/stylesheets/themes/default/minimize.gif rename to app/assets/stylesheets/themes/default/minimize.gif diff --git a/public/stylesheets/themes/default/overlay.png b/app/assets/stylesheets/themes/default/overlay.png similarity index 100% rename from public/stylesheets/themes/default/overlay.png rename to app/assets/stylesheets/themes/default/overlay.png diff --git a/public/stylesheets/themes/default/resize.gif b/app/assets/stylesheets/themes/default/resize.gif similarity index 100% rename from public/stylesheets/themes/default/resize.gif rename to app/assets/stylesheets/themes/default/resize.gif diff --git a/public/stylesheets/themes/default/sizer.gif b/app/assets/stylesheets/themes/default/sizer.gif similarity index 100% rename from public/stylesheets/themes/default/sizer.gif rename to app/assets/stylesheets/themes/default/sizer.gif diff --git a/public/stylesheets/themes/default/top_left.gif b/app/assets/stylesheets/themes/default/top_left.gif similarity index 100% rename from public/stylesheets/themes/default/top_left.gif rename to app/assets/stylesheets/themes/default/top_left.gif diff --git a/public/stylesheets/themes/default/top_mid.gif b/app/assets/stylesheets/themes/default/top_mid.gif similarity index 100% rename from public/stylesheets/themes/default/top_mid.gif rename to app/assets/stylesheets/themes/default/top_mid.gif diff --git a/public/stylesheets/themes/default/top_right.gif b/app/assets/stylesheets/themes/default/top_right.gif similarity index 100% rename from public/stylesheets/themes/default/top_right.gif rename to app/assets/stylesheets/themes/default/top_right.gif diff --git a/public/stylesheets/themes/iefix/blank.gif b/app/assets/stylesheets/themes/iefix/blank.gif similarity index 100% rename from public/stylesheets/themes/iefix/blank.gif rename to app/assets/stylesheets/themes/iefix/blank.gif diff --git a/public/stylesheets/themes/iefix/iepngfix.css b/app/assets/stylesheets/themes/iefix/iepngfix.css similarity index 100% rename from public/stylesheets/themes/iefix/iepngfix.css rename to app/assets/stylesheets/themes/iefix/iepngfix.css diff --git a/public/stylesheets/themes/iefix/iepngfix.htc b/app/assets/stylesheets/themes/iefix/iepngfix.htc similarity index 100% rename from public/stylesheets/themes/iefix/iepngfix.htc rename to app/assets/stylesheets/themes/iefix/iepngfix.htc diff --git a/public/stylesheets/themes/lighting.css b/app/assets/stylesheets/themes/lighting.css similarity index 100% rename from public/stylesheets/themes/lighting.css rename to app/assets/stylesheets/themes/lighting.css diff --git a/public/stylesheets/themes/lighting/background_buttons.gif b/app/assets/stylesheets/themes/lighting/background_buttons.gif similarity index 100% rename from public/stylesheets/themes/lighting/background_buttons.gif rename to app/assets/stylesheets/themes/lighting/background_buttons.gif diff --git a/public/stylesheets/themes/lighting/bottom-left-blue.png b/app/assets/stylesheets/themes/lighting/bottom-left-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-left-blue.png rename to app/assets/stylesheets/themes/lighting/bottom-left-blue.png diff --git a/public/stylesheets/themes/lighting/bottom-left-darkblue.png b/app/assets/stylesheets/themes/lighting/bottom-left-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-left-darkblue.png rename to app/assets/stylesheets/themes/lighting/bottom-left-darkblue.png diff --git a/public/stylesheets/themes/lighting/bottom-left-green.png b/app/assets/stylesheets/themes/lighting/bottom-left-green.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-left-green.png rename to app/assets/stylesheets/themes/lighting/bottom-left-green.png diff --git a/public/stylesheets/themes/lighting/bottom-left-grey.png b/app/assets/stylesheets/themes/lighting/bottom-left-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-left-grey.png rename to app/assets/stylesheets/themes/lighting/bottom-left-grey.png diff --git a/public/stylesheets/themes/lighting/bottom-middle-blue.png b/app/assets/stylesheets/themes/lighting/bottom-middle-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-middle-blue.png rename to app/assets/stylesheets/themes/lighting/bottom-middle-blue.png diff --git a/public/stylesheets/themes/lighting/bottom-middle-darkblue.png b/app/assets/stylesheets/themes/lighting/bottom-middle-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-middle-darkblue.png rename to app/assets/stylesheets/themes/lighting/bottom-middle-darkblue.png diff --git a/public/stylesheets/themes/lighting/bottom-middle-green.png b/app/assets/stylesheets/themes/lighting/bottom-middle-green.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-middle-green.png rename to app/assets/stylesheets/themes/lighting/bottom-middle-green.png diff --git a/public/stylesheets/themes/lighting/bottom-middle-grey.png b/app/assets/stylesheets/themes/lighting/bottom-middle-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-middle-grey.png rename to app/assets/stylesheets/themes/lighting/bottom-middle-grey.png diff --git a/public/stylesheets/themes/lighting/bottom-right-blue.png b/app/assets/stylesheets/themes/lighting/bottom-right-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-right-blue.png rename to app/assets/stylesheets/themes/lighting/bottom-right-blue.png diff --git a/public/stylesheets/themes/lighting/bottom-right-darkblue.png b/app/assets/stylesheets/themes/lighting/bottom-right-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-right-darkblue.png rename to app/assets/stylesheets/themes/lighting/bottom-right-darkblue.png diff --git a/public/stylesheets/themes/lighting/bottom-right-green.png b/app/assets/stylesheets/themes/lighting/bottom-right-green.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-right-green.png rename to app/assets/stylesheets/themes/lighting/bottom-right-green.png diff --git a/public/stylesheets/themes/lighting/bottom-right-grey.png b/app/assets/stylesheets/themes/lighting/bottom-right-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/bottom-right-grey.png rename to app/assets/stylesheets/themes/lighting/bottom-right-grey.png diff --git a/public/stylesheets/themes/lighting/button-close-blue.png b/app/assets/stylesheets/themes/lighting/button-close-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/button-close-blue.png rename to app/assets/stylesheets/themes/lighting/button-close-blue.png diff --git a/public/stylesheets/themes/lighting/button-close-darkblue.png b/app/assets/stylesheets/themes/lighting/button-close-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/button-close-darkblue.png rename to app/assets/stylesheets/themes/lighting/button-close-darkblue.png diff --git a/public/stylesheets/themes/lighting/button-close-green.png b/app/assets/stylesheets/themes/lighting/button-close-green.png similarity index 100% rename from public/stylesheets/themes/lighting/button-close-green.png rename to app/assets/stylesheets/themes/lighting/button-close-green.png diff --git a/public/stylesheets/themes/lighting/button-close-grey.png b/app/assets/stylesheets/themes/lighting/button-close-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/button-close-grey.png rename to app/assets/stylesheets/themes/lighting/button-close-grey.png diff --git a/public/stylesheets/themes/lighting/button-maximize-blue.png b/app/assets/stylesheets/themes/lighting/button-maximize-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/button-maximize-blue.png rename to app/assets/stylesheets/themes/lighting/button-maximize-blue.png diff --git a/public/stylesheets/themes/lighting/button-maximize-darkblue.png b/app/assets/stylesheets/themes/lighting/button-maximize-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/button-maximize-darkblue.png rename to app/assets/stylesheets/themes/lighting/button-maximize-darkblue.png diff --git a/public/stylesheets/themes/lighting/button-maximize-green.png b/app/assets/stylesheets/themes/lighting/button-maximize-green.png similarity index 100% rename from public/stylesheets/themes/lighting/button-maximize-green.png rename to app/assets/stylesheets/themes/lighting/button-maximize-green.png diff --git a/public/stylesheets/themes/lighting/button-maximize-grey.png b/app/assets/stylesheets/themes/lighting/button-maximize-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/button-maximize-grey.png rename to app/assets/stylesheets/themes/lighting/button-maximize-grey.png diff --git a/public/stylesheets/themes/lighting/button-minimize-blue.png b/app/assets/stylesheets/themes/lighting/button-minimize-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/button-minimize-blue.png rename to app/assets/stylesheets/themes/lighting/button-minimize-blue.png diff --git a/public/stylesheets/themes/lighting/button-minimize-darkblue.png b/app/assets/stylesheets/themes/lighting/button-minimize-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/button-minimize-darkblue.png rename to app/assets/stylesheets/themes/lighting/button-minimize-darkblue.png diff --git a/public/stylesheets/themes/lighting/button-minimize-green.png b/app/assets/stylesheets/themes/lighting/button-minimize-green.png similarity index 100% rename from public/stylesheets/themes/lighting/button-minimize-green.png rename to app/assets/stylesheets/themes/lighting/button-minimize-green.png diff --git a/public/stylesheets/themes/lighting/button-minimize-grey.png b/app/assets/stylesheets/themes/lighting/button-minimize-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/button-minimize-grey.png rename to app/assets/stylesheets/themes/lighting/button-minimize-grey.png diff --git a/public/stylesheets/themes/lighting/left-blue.png b/app/assets/stylesheets/themes/lighting/left-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/left-blue.png rename to app/assets/stylesheets/themes/lighting/left-blue.png diff --git a/public/stylesheets/themes/lighting/left-darkblue.png b/app/assets/stylesheets/themes/lighting/left-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/left-darkblue.png rename to app/assets/stylesheets/themes/lighting/left-darkblue.png diff --git a/public/stylesheets/themes/lighting/left-green.png b/app/assets/stylesheets/themes/lighting/left-green.png similarity index 100% rename from public/stylesheets/themes/lighting/left-green.png rename to app/assets/stylesheets/themes/lighting/left-green.png diff --git a/public/stylesheets/themes/lighting/left-grey.png b/app/assets/stylesheets/themes/lighting/left-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/left-grey.png rename to app/assets/stylesheets/themes/lighting/left-grey.png diff --git a/public/stylesheets/themes/lighting/pngbehavior.htc b/app/assets/stylesheets/themes/lighting/pngbehavior.htc similarity index 100% rename from public/stylesheets/themes/lighting/pngbehavior.htc rename to app/assets/stylesheets/themes/lighting/pngbehavior.htc diff --git a/public/stylesheets/themes/lighting/right-blue.png b/app/assets/stylesheets/themes/lighting/right-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/right-blue.png rename to app/assets/stylesheets/themes/lighting/right-blue.png diff --git a/public/stylesheets/themes/lighting/right-darkblue.png b/app/assets/stylesheets/themes/lighting/right-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/right-darkblue.png rename to app/assets/stylesheets/themes/lighting/right-darkblue.png diff --git a/public/stylesheets/themes/lighting/right-green.png b/app/assets/stylesheets/themes/lighting/right-green.png similarity index 100% rename from public/stylesheets/themes/lighting/right-green.png rename to app/assets/stylesheets/themes/lighting/right-green.png diff --git a/public/stylesheets/themes/lighting/right-grey.png b/app/assets/stylesheets/themes/lighting/right-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/right-grey.png rename to app/assets/stylesheets/themes/lighting/right-grey.png diff --git a/public/stylesheets/themes/lighting/spinner.gif b/app/assets/stylesheets/themes/lighting/spinner.gif similarity index 100% rename from public/stylesheets/themes/lighting/spinner.gif rename to app/assets/stylesheets/themes/lighting/spinner.gif diff --git a/public/stylesheets/themes/lighting/top-left-blue.png b/app/assets/stylesheets/themes/lighting/top-left-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/top-left-blue.png rename to app/assets/stylesheets/themes/lighting/top-left-blue.png diff --git a/public/stylesheets/themes/lighting/top-left-darkblue.png b/app/assets/stylesheets/themes/lighting/top-left-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/top-left-darkblue.png rename to app/assets/stylesheets/themes/lighting/top-left-darkblue.png diff --git a/public/stylesheets/themes/lighting/top-left-green.png b/app/assets/stylesheets/themes/lighting/top-left-green.png similarity index 100% rename from public/stylesheets/themes/lighting/top-left-green.png rename to app/assets/stylesheets/themes/lighting/top-left-green.png diff --git a/public/stylesheets/themes/lighting/top-left-grey.png b/app/assets/stylesheets/themes/lighting/top-left-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/top-left-grey.png rename to app/assets/stylesheets/themes/lighting/top-left-grey.png diff --git a/public/stylesheets/themes/lighting/top-middle-blue.png b/app/assets/stylesheets/themes/lighting/top-middle-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/top-middle-blue.png rename to app/assets/stylesheets/themes/lighting/top-middle-blue.png diff --git a/public/stylesheets/themes/lighting/top-middle-darkblue.png b/app/assets/stylesheets/themes/lighting/top-middle-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/top-middle-darkblue.png rename to app/assets/stylesheets/themes/lighting/top-middle-darkblue.png diff --git a/public/stylesheets/themes/lighting/top-middle-green.png b/app/assets/stylesheets/themes/lighting/top-middle-green.png similarity index 100% rename from public/stylesheets/themes/lighting/top-middle-green.png rename to app/assets/stylesheets/themes/lighting/top-middle-green.png diff --git a/public/stylesheets/themes/lighting/top-middle-grey.png b/app/assets/stylesheets/themes/lighting/top-middle-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/top-middle-grey.png rename to app/assets/stylesheets/themes/lighting/top-middle-grey.png diff --git a/public/stylesheets/themes/lighting/top-right-blue.png b/app/assets/stylesheets/themes/lighting/top-right-blue.png similarity index 100% rename from public/stylesheets/themes/lighting/top-right-blue.png rename to app/assets/stylesheets/themes/lighting/top-right-blue.png diff --git a/public/stylesheets/themes/lighting/top-right-darkblue.png b/app/assets/stylesheets/themes/lighting/top-right-darkblue.png similarity index 100% rename from public/stylesheets/themes/lighting/top-right-darkblue.png rename to app/assets/stylesheets/themes/lighting/top-right-darkblue.png diff --git a/public/stylesheets/themes/lighting/top-right-green.png b/app/assets/stylesheets/themes/lighting/top-right-green.png similarity index 100% rename from public/stylesheets/themes/lighting/top-right-green.png rename to app/assets/stylesheets/themes/lighting/top-right-green.png diff --git a/public/stylesheets/themes/lighting/top-right-grey.png b/app/assets/stylesheets/themes/lighting/top-right-grey.png similarity index 100% rename from public/stylesheets/themes/lighting/top-right-grey.png rename to app/assets/stylesheets/themes/lighting/top-right-grey.png diff --git a/public/stylesheets/themes/mac_os_x.css b/app/assets/stylesheets/themes/mac_os_x.css similarity index 100% rename from public/stylesheets/themes/mac_os_x.css rename to app/assets/stylesheets/themes/mac_os_x.css diff --git a/public/stylesheets/themes/mac_os_x/B.png b/app/assets/stylesheets/themes/mac_os_x/B.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/B.png rename to app/assets/stylesheets/themes/mac_os_x/B.png diff --git a/public/stylesheets/themes/mac_os_x/BL.png b/app/assets/stylesheets/themes/mac_os_x/BL.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/BL.png rename to app/assets/stylesheets/themes/mac_os_x/BL.png diff --git a/public/stylesheets/themes/mac_os_x/BL_Main.png b/app/assets/stylesheets/themes/mac_os_x/BL_Main.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/BL_Main.png rename to app/assets/stylesheets/themes/mac_os_x/BL_Main.png diff --git a/public/stylesheets/themes/mac_os_x/BR.png b/app/assets/stylesheets/themes/mac_os_x/BR.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/BR.png rename to app/assets/stylesheets/themes/mac_os_x/BR.png diff --git a/public/stylesheets/themes/mac_os_x/BR_Main.png b/app/assets/stylesheets/themes/mac_os_x/BR_Main.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/BR_Main.png rename to app/assets/stylesheets/themes/mac_os_x/BR_Main.png diff --git a/public/stylesheets/themes/mac_os_x/B_Main.png b/app/assets/stylesheets/themes/mac_os_x/B_Main.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/B_Main.png rename to app/assets/stylesheets/themes/mac_os_x/B_Main.png diff --git a/public/stylesheets/themes/mac_os_x/L.png b/app/assets/stylesheets/themes/mac_os_x/L.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/L.png rename to app/assets/stylesheets/themes/mac_os_x/L.png diff --git a/public/stylesheets/themes/mac_os_x/L_Main.png b/app/assets/stylesheets/themes/mac_os_x/L_Main.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/L_Main.png rename to app/assets/stylesheets/themes/mac_os_x/L_Main.png diff --git a/public/stylesheets/themes/mac_os_x/R.png b/app/assets/stylesheets/themes/mac_os_x/R.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/R.png rename to app/assets/stylesheets/themes/mac_os_x/R.png diff --git a/public/stylesheets/themes/mac_os_x/R_Main.png b/app/assets/stylesheets/themes/mac_os_x/R_Main.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/R_Main.png rename to app/assets/stylesheets/themes/mac_os_x/R_Main.png diff --git a/public/stylesheets/themes/mac_os_x/T.png b/app/assets/stylesheets/themes/mac_os_x/T.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/T.png rename to app/assets/stylesheets/themes/mac_os_x/T.png diff --git a/public/stylesheets/themes/mac_os_x/TL.png b/app/assets/stylesheets/themes/mac_os_x/TL.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/TL.png rename to app/assets/stylesheets/themes/mac_os_x/TL.png diff --git a/public/stylesheets/themes/mac_os_x/TL_Main.png b/app/assets/stylesheets/themes/mac_os_x/TL_Main.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/TL_Main.png rename to app/assets/stylesheets/themes/mac_os_x/TL_Main.png diff --git a/public/stylesheets/themes/mac_os_x/TR.png b/app/assets/stylesheets/themes/mac_os_x/TR.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/TR.png rename to app/assets/stylesheets/themes/mac_os_x/TR.png diff --git a/public/stylesheets/themes/mac_os_x/TR_Main.png b/app/assets/stylesheets/themes/mac_os_x/TR_Main.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/TR_Main.png rename to app/assets/stylesheets/themes/mac_os_x/TR_Main.png diff --git a/public/stylesheets/themes/mac_os_x/T_Main.png b/app/assets/stylesheets/themes/mac_os_x/T_Main.png similarity index 100% rename from public/stylesheets/themes/mac_os_x/T_Main.png rename to app/assets/stylesheets/themes/mac_os_x/T_Main.png diff --git a/public/stylesheets/themes/mac_os_x/close.gif b/app/assets/stylesheets/themes/mac_os_x/close.gif similarity index 100% rename from public/stylesheets/themes/mac_os_x/close.gif rename to app/assets/stylesheets/themes/mac_os_x/close.gif diff --git a/public/stylesheets/themes/mac_os_x/maximize.gif b/app/assets/stylesheets/themes/mac_os_x/maximize.gif similarity index 100% rename from public/stylesheets/themes/mac_os_x/maximize.gif rename to app/assets/stylesheets/themes/mac_os_x/maximize.gif diff --git a/public/stylesheets/themes/mac_os_x/minimize.gif b/app/assets/stylesheets/themes/mac_os_x/minimize.gif similarity index 100% rename from public/stylesheets/themes/mac_os_x/minimize.gif rename to app/assets/stylesheets/themes/mac_os_x/minimize.gif diff --git a/public/stylesheets/themes/mac_os_x_dialog.css b/app/assets/stylesheets/themes/mac_os_x_dialog.css similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog.css rename to app/assets/stylesheets/themes/mac_os_x_dialog.css diff --git a/public/stylesheets/themes/mac_os_x_dialog/B.png b/app/assets/stylesheets/themes/mac_os_x_dialog/B.png similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/B.png rename to app/assets/stylesheets/themes/mac_os_x_dialog/B.png diff --git a/public/stylesheets/themes/mac_os_x_dialog/BL.png b/app/assets/stylesheets/themes/mac_os_x_dialog/BL.png similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/BL.png rename to app/assets/stylesheets/themes/mac_os_x_dialog/BL.png diff --git a/public/stylesheets/themes/mac_os_x_dialog/BR.png b/app/assets/stylesheets/themes/mac_os_x_dialog/BR.png similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/BR.png rename to app/assets/stylesheets/themes/mac_os_x_dialog/BR.png diff --git a/public/stylesheets/themes/mac_os_x_dialog/L.png b/app/assets/stylesheets/themes/mac_os_x_dialog/L.png similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/L.png rename to app/assets/stylesheets/themes/mac_os_x_dialog/L.png diff --git a/public/stylesheets/themes/mac_os_x_dialog/R.png b/app/assets/stylesheets/themes/mac_os_x_dialog/R.png similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/R.png rename to app/assets/stylesheets/themes/mac_os_x_dialog/R.png diff --git a/public/stylesheets/themes/mac_os_x_dialog/T.png b/app/assets/stylesheets/themes/mac_os_x_dialog/T.png similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/T.png rename to app/assets/stylesheets/themes/mac_os_x_dialog/T.png diff --git a/public/stylesheets/themes/mac_os_x_dialog/TL.png b/app/assets/stylesheets/themes/mac_os_x_dialog/TL.png similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/TL.png rename to app/assets/stylesheets/themes/mac_os_x_dialog/TL.png diff --git a/public/stylesheets/themes/mac_os_x_dialog/TR.png b/app/assets/stylesheets/themes/mac_os_x_dialog/TR.png similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/TR.png rename to app/assets/stylesheets/themes/mac_os_x_dialog/TR.png diff --git a/public/stylesheets/themes/mac_os_x_dialog/bg.gif b/app/assets/stylesheets/themes/mac_os_x_dialog/bg.gif similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/bg.gif rename to app/assets/stylesheets/themes/mac_os_x_dialog/bg.gif diff --git a/public/stylesheets/themes/mac_os_x_dialog/close.gif b/app/assets/stylesheets/themes/mac_os_x_dialog/close.gif similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/close.gif rename to app/assets/stylesheets/themes/mac_os_x_dialog/close.gif diff --git a/public/stylesheets/themes/mac_os_x_dialog/maximize.gif b/app/assets/stylesheets/themes/mac_os_x_dialog/maximize.gif similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/maximize.gif rename to app/assets/stylesheets/themes/mac_os_x_dialog/maximize.gif diff --git a/public/stylesheets/themes/mac_os_x_dialog/minimize.gif b/app/assets/stylesheets/themes/mac_os_x_dialog/minimize.gif similarity index 100% rename from public/stylesheets/themes/mac_os_x_dialog/minimize.gif rename to app/assets/stylesheets/themes/mac_os_x_dialog/minimize.gif diff --git a/public/stylesheets/themes/nuncio.css b/app/assets/stylesheets/themes/nuncio.css similarity index 100% rename from public/stylesheets/themes/nuncio.css rename to app/assets/stylesheets/themes/nuncio.css diff --git a/public/stylesheets/themes/nuncio/bottom_left.png b/app/assets/stylesheets/themes/nuncio/bottom_left.png similarity index 100% rename from public/stylesheets/themes/nuncio/bottom_left.png rename to app/assets/stylesheets/themes/nuncio/bottom_left.png diff --git a/public/stylesheets/themes/nuncio/bottom_mid.png b/app/assets/stylesheets/themes/nuncio/bottom_mid.png similarity index 100% rename from public/stylesheets/themes/nuncio/bottom_mid.png rename to app/assets/stylesheets/themes/nuncio/bottom_mid.png diff --git a/public/stylesheets/themes/nuncio/bottom_right.png b/app/assets/stylesheets/themes/nuncio/bottom_right.png similarity index 100% rename from public/stylesheets/themes/nuncio/bottom_right.png rename to app/assets/stylesheets/themes/nuncio/bottom_right.png diff --git a/public/stylesheets/themes/nuncio/center_left.png b/app/assets/stylesheets/themes/nuncio/center_left.png similarity index 100% rename from public/stylesheets/themes/nuncio/center_left.png rename to app/assets/stylesheets/themes/nuncio/center_left.png diff --git a/public/stylesheets/themes/nuncio/center_right.png b/app/assets/stylesheets/themes/nuncio/center_right.png similarity index 100% rename from public/stylesheets/themes/nuncio/center_right.png rename to app/assets/stylesheets/themes/nuncio/center_right.png diff --git a/public/stylesheets/themes/nuncio/close.png b/app/assets/stylesheets/themes/nuncio/close.png similarity index 100% rename from public/stylesheets/themes/nuncio/close.png rename to app/assets/stylesheets/themes/nuncio/close.png diff --git a/public/stylesheets/themes/nuncio/minimize.png b/app/assets/stylesheets/themes/nuncio/minimize.png similarity index 100% rename from public/stylesheets/themes/nuncio/minimize.png rename to app/assets/stylesheets/themes/nuncio/minimize.png diff --git a/public/stylesheets/themes/nuncio/overlay.png b/app/assets/stylesheets/themes/nuncio/overlay.png similarity index 100% rename from public/stylesheets/themes/nuncio/overlay.png rename to app/assets/stylesheets/themes/nuncio/overlay.png diff --git a/public/stylesheets/themes/nuncio/top_left.png b/app/assets/stylesheets/themes/nuncio/top_left.png similarity index 100% rename from public/stylesheets/themes/nuncio/top_left.png rename to app/assets/stylesheets/themes/nuncio/top_left.png diff --git a/public/stylesheets/themes/nuncio/top_mid.png b/app/assets/stylesheets/themes/nuncio/top_mid.png similarity index 100% rename from public/stylesheets/themes/nuncio/top_mid.png rename to app/assets/stylesheets/themes/nuncio/top_mid.png diff --git a/public/stylesheets/themes/nuncio/top_right.png b/app/assets/stylesheets/themes/nuncio/top_right.png similarity index 100% rename from public/stylesheets/themes/nuncio/top_right.png rename to app/assets/stylesheets/themes/nuncio/top_right.png diff --git a/public/stylesheets/themes/spread.css b/app/assets/stylesheets/themes/spread.css similarity index 100% rename from public/stylesheets/themes/spread.css rename to app/assets/stylesheets/themes/spread.css diff --git a/public/stylesheets/themes/spread/.gif b/app/assets/stylesheets/themes/spread/.gif similarity index 100% rename from public/stylesheets/themes/spread/.gif rename to app/assets/stylesheets/themes/spread/.gif diff --git a/public/stylesheets/themes/spread/bottom-left-c.gif b/app/assets/stylesheets/themes/spread/bottom-left-c.gif similarity index 100% rename from public/stylesheets/themes/spread/bottom-left-c.gif rename to app/assets/stylesheets/themes/spread/bottom-left-c.gif diff --git a/public/stylesheets/themes/spread/bottom-middle.gif b/app/assets/stylesheets/themes/spread/bottom-middle.gif similarity index 100% rename from public/stylesheets/themes/spread/bottom-middle.gif rename to app/assets/stylesheets/themes/spread/bottom-middle.gif diff --git a/public/stylesheets/themes/spread/bottom-right-c.gif b/app/assets/stylesheets/themes/spread/bottom-right-c.gif similarity index 100% rename from public/stylesheets/themes/spread/bottom-right-c.gif rename to app/assets/stylesheets/themes/spread/bottom-right-c.gif diff --git a/public/stylesheets/themes/spread/button-close-focus.gif b/app/assets/stylesheets/themes/spread/button-close-focus.gif similarity index 100% rename from public/stylesheets/themes/spread/button-close-focus.gif rename to app/assets/stylesheets/themes/spread/button-close-focus.gif diff --git a/public/stylesheets/themes/spread/button-max-focus.gif b/app/assets/stylesheets/themes/spread/button-max-focus.gif similarity index 100% rename from public/stylesheets/themes/spread/button-max-focus.gif rename to app/assets/stylesheets/themes/spread/button-max-focus.gif diff --git a/public/stylesheets/themes/spread/button-min-focus.gif b/app/assets/stylesheets/themes/spread/button-min-focus.gif similarity index 100% rename from public/stylesheets/themes/spread/button-min-focus.gif rename to app/assets/stylesheets/themes/spread/button-min-focus.gif diff --git a/public/stylesheets/themes/spread/frame-left.gif b/app/assets/stylesheets/themes/spread/frame-left.gif similarity index 100% rename from public/stylesheets/themes/spread/frame-left.gif rename to app/assets/stylesheets/themes/spread/frame-left.gif diff --git a/public/stylesheets/themes/spread/frame-right.gif b/app/assets/stylesheets/themes/spread/frame-right.gif similarity index 100% rename from public/stylesheets/themes/spread/frame-right.gif rename to app/assets/stylesheets/themes/spread/frame-right.gif diff --git a/public/stylesheets/themes/spread/left-top.gif b/app/assets/stylesheets/themes/spread/left-top.gif similarity index 100% rename from public/stylesheets/themes/spread/left-top.gif rename to app/assets/stylesheets/themes/spread/left-top.gif diff --git a/public/stylesheets/themes/spread/right-top.gif b/app/assets/stylesheets/themes/spread/right-top.gif similarity index 100% rename from public/stylesheets/themes/spread/right-top.gif rename to app/assets/stylesheets/themes/spread/right-top.gif diff --git a/public/stylesheets/themes/spread/top-middle.gif b/app/assets/stylesheets/themes/spread/top-middle.gif similarity index 100% rename from public/stylesheets/themes/spread/top-middle.gif rename to app/assets/stylesheets/themes/spread/top-middle.gif diff --git a/public/stylesheets/windows_js_1.3.zip b/app/assets/stylesheets/windows_js_1.3.zip similarity index 100% rename from public/stylesheets/windows_js_1.3.zip rename to app/assets/stylesheets/windows_js_1.3.zip diff --git a/public/stylesheets/windows_js_1.3/MIT-LICENSE b/app/assets/stylesheets/windows_js_1.3/MIT-LICENSE similarity index 100% rename from public/stylesheets/windows_js_1.3/MIT-LICENSE rename to app/assets/stylesheets/windows_js_1.3/MIT-LICENSE diff --git a/public/stylesheets/windows_js_1.3/PWC-OS/body-bg.png b/app/assets/stylesheets/windows_js_1.3/PWC-OS/body-bg.png similarity index 100% rename from public/stylesheets/windows_js_1.3/PWC-OS/body-bg.png rename to app/assets/stylesheets/windows_js_1.3/PWC-OS/body-bg.png diff --git a/public/stylesheets/windows_js_1.3/PWC-OS/button-bg.gif b/app/assets/stylesheets/windows_js_1.3/PWC-OS/button-bg.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/PWC-OS/button-bg.gif rename to app/assets/stylesheets/windows_js_1.3/PWC-OS/button-bg.gif diff --git a/public/stylesheets/windows_js_1.3/PWC-OS/dock-bg.gif b/app/assets/stylesheets/windows_js_1.3/PWC-OS/dock-bg.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/PWC-OS/dock-bg.gif rename to app/assets/stylesheets/windows_js_1.3/PWC-OS/dock-bg.gif diff --git a/public/stylesheets/windows_js_1.3/PWC-OS/index.html b/app/assets/stylesheets/windows_js_1.3/PWC-OS/index.html similarity index 100% rename from public/stylesheets/windows_js_1.3/PWC-OS/index.html rename to app/assets/stylesheets/windows_js_1.3/PWC-OS/index.html diff --git a/public/stylesheets/windows_js_1.3/PWC-OS/pwc-os.css b/app/assets/stylesheets/windows_js_1.3/PWC-OS/pwc-os.css similarity index 100% rename from public/stylesheets/windows_js_1.3/PWC-OS/pwc-os.css rename to app/assets/stylesheets/windows_js_1.3/PWC-OS/pwc-os.css diff --git a/public/stylesheets/windows_js_1.3/PWC-OS/pwc-os.js b/app/assets/stylesheets/windows_js_1.3/PWC-OS/pwc-os.js similarity index 100% rename from public/stylesheets/windows_js_1.3/PWC-OS/pwc-os.js rename to app/assets/stylesheets/windows_js_1.3/PWC-OS/pwc-os.js diff --git a/public/stylesheets/windows_js_1.3/README b/app/assets/stylesheets/windows_js_1.3/README similarity index 100% rename from public/stylesheets/windows_js_1.3/README rename to app/assets/stylesheets/windows_js_1.3/README diff --git a/public/stylesheets/windows_js_1.3/documentation/PWC-OS/body-bg.png b/app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/body-bg.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/PWC-OS/body-bg.png rename to app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/body-bg.png diff --git a/public/stylesheets/windows_js_1.3/documentation/PWC-OS/button-bg.gif b/app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/button-bg.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/PWC-OS/button-bg.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/button-bg.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/PWC-OS/dock-bg.gif b/app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/dock-bg.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/PWC-OS/dock-bg.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/dock-bg.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/PWC-OS/index.html b/app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/index.html similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/PWC-OS/index.html rename to app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/index.html diff --git a/public/stylesheets/windows_js_1.3/documentation/PWC-OS/pwc-os.css b/app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/pwc-os.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/PWC-OS/pwc-os.css rename to app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/pwc-os.css diff --git a/public/stylesheets/windows_js_1.3/documentation/PWC-OS/pwc-os.js b/app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/pwc-os.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/PWC-OS/pwc-os.js rename to app/assets/stylesheets/windows_js_1.3/documentation/PWC-OS/pwc-os.js diff --git a/public/stylesheets/windows_js_1.3/documentation/debug.html b/app/assets/stylesheets/windows_js_1.3/documentation/debug.html similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/debug.html rename to app/assets/stylesheets/windows_js_1.3/documentation/debug.html diff --git a/public/stylesheets/windows_js_1.3/documentation/documentation.html b/app/assets/stylesheets/windows_js_1.3/documentation/documentation.html similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/documentation.html rename to app/assets/stylesheets/windows_js_1.3/documentation/documentation.html diff --git a/public/stylesheets/windows_js_1.3/documentation/info_panel.html b/app/assets/stylesheets/windows_js_1.3/documentation/info_panel.html similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/info_panel.html rename to app/assets/stylesheets/windows_js_1.3/documentation/info_panel.html diff --git a/public/stylesheets/windows_js_1.3/documentation/javascripts/debug.js b/app/assets/stylesheets/windows_js_1.3/documentation/javascripts/debug.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/javascripts/debug.js rename to app/assets/stylesheets/windows_js_1.3/documentation/javascripts/debug.js diff --git a/public/stylesheets/windows_js_1.3/documentation/javascripts/effects.js b/app/assets/stylesheets/windows_js_1.3/documentation/javascripts/effects.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/javascripts/effects.js rename to app/assets/stylesheets/windows_js_1.3/documentation/javascripts/effects.js diff --git a/public/stylesheets/windows_js_1.3/documentation/javascripts/extended_debug.js b/app/assets/stylesheets/windows_js_1.3/documentation/javascripts/extended_debug.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/javascripts/extended_debug.js rename to app/assets/stylesheets/windows_js_1.3/documentation/javascripts/extended_debug.js diff --git a/public/stylesheets/windows_js_1.3/documentation/javascripts/prototype.js b/app/assets/stylesheets/windows_js_1.3/documentation/javascripts/prototype.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/javascripts/prototype.js rename to app/assets/stylesheets/windows_js_1.3/documentation/javascripts/prototype.js diff --git a/public/stylesheets/windows_js_1.3/documentation/javascripts/tooltip.js b/app/assets/stylesheets/windows_js_1.3/documentation/javascripts/tooltip.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/javascripts/tooltip.js rename to app/assets/stylesheets/windows_js_1.3/documentation/javascripts/tooltip.js diff --git a/public/stylesheets/windows_js_1.3/documentation/javascripts/window.js b/app/assets/stylesheets/windows_js_1.3/documentation/javascripts/window.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/javascripts/window.js rename to app/assets/stylesheets/windows_js_1.3/documentation/javascripts/window.js diff --git a/public/stylesheets/windows_js_1.3/documentation/javascripts/window_effects.js b/app/assets/stylesheets/windows_js_1.3/documentation/javascripts/window_effects.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/javascripts/window_effects.js rename to app/assets/stylesheets/windows_js_1.3/documentation/javascripts/window_effects.js diff --git a/public/stylesheets/windows_js_1.3/documentation/javascripts/window_ext.js b/app/assets/stylesheets/windows_js_1.3/documentation/javascripts/window_ext.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/javascripts/window_ext.js rename to app/assets/stylesheets/windows_js_1.3/documentation/javascripts/window_ext.js diff --git a/public/stylesheets/windows_js_1.3/documentation/js/application.js b/app/assets/stylesheets/windows_js_1.3/documentation/js/application.js similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/js/application.js rename to app/assets/stylesheets/windows_js_1.3/documentation/js/application.js diff --git a/public/stylesheets/windows_js_1.3/documentation/logo.gif b/app/assets/stylesheets/windows_js_1.3/documentation/logo.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/logo.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/logo.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/pwc.gif b/app/assets/stylesheets/windows_js_1.3/documentation/pwc.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/pwc.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/pwc.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/pwc_os_thumb.png b/app/assets/stylesheets/windows_js_1.3/documentation/pwc_os_thumb.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/pwc_os_thumb.png rename to app/assets/stylesheets/windows_js_1.3/documentation/pwc_os_thumb.png diff --git a/public/stylesheets/windows_js_1.3/documentation/samples.html b/app/assets/stylesheets/windows_js_1.3/documentation/samples.html similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/samples.html rename to app/assets/stylesheets/windows_js_1.3/documentation/samples.html diff --git a/public/stylesheets/windows_js_1.3/documentation/stylesheets/login.css b/app/assets/stylesheets/windows_js_1.3/documentation/stylesheets/login.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/stylesheets/login.css rename to app/assets/stylesheets/windows_js_1.3/documentation/stylesheets/login.css diff --git a/public/stylesheets/windows_js_1.3/documentation/stylesheets/style.css b/app/assets/stylesheets/windows_js_1.3/documentation/stylesheets/style.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/stylesheets/style.css rename to app/assets/stylesheets/windows_js_1.3/documentation/stylesheets/style.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes.html b/app/assets/stylesheets/windows_js_1.3/documentation/themes.html similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes.html rename to app/assets/stylesheets/windows_js_1.3/documentation/themes.html diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/bottom.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/bottom.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/bottom.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/bottom.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/bottom_left.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/bottom_left.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/bottom_left.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/bottom_left.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/bottom_right.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/bottom_right.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/bottom_right.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/bottom_right.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/left.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/left.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/left.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/left.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/overlay.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/overlay.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/overlay.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/overlay.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/progress.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/progress.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/progress.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/progress.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/right.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/right.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/right.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/right.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/top.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/top.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/top.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/top.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/top_left.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/top_left.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/top_left.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/top_left.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert/top_right.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/top_right.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert/top_right.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert/top_right.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alert_lite.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alert_lite.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alert_lite.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alert_lite.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-left-c.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-left-c.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-left-c.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-left-c.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-middle.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-middle.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-middle.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-middle.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-right-c.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-right-c.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-right-c.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/bottom-right-c.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-close-focus.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-close-focus.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-close-focus.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-close-focus.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-max-focus.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-max-focus.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-max-focus.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-max-focus.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-min-focus.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-min-focus.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-min-focus.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/button-min-focus.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/frame-left.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/frame-left.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/frame-left.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/frame-left.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/frame-right.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/frame-right.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/frame-right.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/frame-right.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/left-top.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/left-top.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/left-top.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/left-top.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/right-top.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/right-top.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/right-top.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/right-top.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/alphacube/top-middle.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/top-middle.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/alphacube/top-middle.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/alphacube/top-middle.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/behavior.htc b/app/assets/stylesheets/windows_js_1.3/documentation/themes/behavior.htc similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/behavior.htc rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/behavior.htc diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/button-close-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/button-close-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/button-close-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/button-close-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/button-maximize-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/button-maximize-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/button-maximize-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/button-maximize-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/button-minimize-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/button-minimize-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/button-minimize-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/button-minimize-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-left-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-left-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-left-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-left-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-mid-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-mid-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-mid-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-mid-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-right-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-right-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-right-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-bottom-right-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-left-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-left-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-left-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-left-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-right-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-right-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-right-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/frame-right-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-left-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-left-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-left-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-left-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-mid-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-mid-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-mid-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-mid-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-right-focused.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-right-focused.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-right-focused.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/darkX/titlebar-right-focused.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/debug.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/debug.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/debug.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/debug.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/bottom_left.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/bottom_left.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/bottom_left.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/bottom_left.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/bottom_mid.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/bottom_mid.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/bottom_mid.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/bottom_mid.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/bottom_right.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/bottom_right.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/bottom_right.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/bottom_right.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/bottom_right_resize.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/bottom_right_resize.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/bottom_right_resize.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/bottom_right_resize.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/center_left.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/center_left.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/center_left.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/center_left.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/center_right.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/center_right.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/center_right.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/center_right.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/clear.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/clear.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/clear.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/clear.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/close.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/close.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/close.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/close.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/inspect.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/inspect.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/inspect.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/inspect.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/maximize.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/maximize.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/maximize.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/maximize.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/minimize.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/minimize.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/minimize.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/minimize.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/overlay.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/overlay.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/overlay.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/overlay.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/resize.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/resize.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/resize.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/resize.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/sizer.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/sizer.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/sizer.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/sizer.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/top_left.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/top_left.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/top_left.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/top_left.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/top_mid.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/top_mid.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/top_mid.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/top_mid.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/default/top_right.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/default/top_right.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/default/top_right.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/default/top_right.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/iefix/blank.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/iefix/blank.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/iefix/blank.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/iefix/blank.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/iefix/iepngfix.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/iefix/iepngfix.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/iefix/iepngfix.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/iefix/iepngfix.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/iefix/iepngfix.htc b/app/assets/stylesheets/windows_js_1.3/documentation/themes/iefix/iepngfix.htc similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/iefix/iepngfix.htc rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/iefix/iepngfix.htc diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/background_buttons.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/background_buttons.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/background_buttons.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/background_buttons.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-left-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-middle-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/bottom-right-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-close-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-maximize-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/button-minimize-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/left-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/left-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/left-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/left-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/left-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/left-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/left-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/left-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/left-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/left-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/left-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/left-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/left-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/left-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/left-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/left-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/pngbehavior.htc b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/pngbehavior.htc similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/pngbehavior.htc rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/pngbehavior.htc diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/right-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/right-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/right-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/right-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/right-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/right-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/right-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/right-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/right-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/right-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/right-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/right-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/right-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/right-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/right-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/right-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/spinner.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/spinner.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/spinner.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/spinner.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-left-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-middle-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-blue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-blue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-blue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-blue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-darkblue.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-darkblue.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-darkblue.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-darkblue.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-green.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-green.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-green.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-green.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-grey.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-grey.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-grey.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/lighting/top-right-grey.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/B.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/B.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/B.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/B.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BL.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BL.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BL.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BL.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BL_Main.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BL_Main.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BL_Main.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BL_Main.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BR.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BR.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BR.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BR.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BR_Main.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BR_Main.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BR_Main.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/BR_Main.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/B_Main.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/B_Main.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/B_Main.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/B_Main.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/L.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/L.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/L.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/L.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/L_Main.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/L_Main.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/L_Main.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/L_Main.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/R.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/R.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/R.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/R.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/R_Main.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/R_Main.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/R_Main.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/R_Main.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/T.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/T.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/T.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/T.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TL.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TL.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TL.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TL.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TL_Main.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TL_Main.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TL_Main.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TL_Main.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TR.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TR.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TR.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TR.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TR_Main.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TR_Main.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TR_Main.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/TR_Main.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/T_Main.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/T_Main.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/T_Main.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/T_Main.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/close.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/close.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/close.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/close.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/maximize.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/maximize.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/maximize.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/maximize.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/minimize.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/minimize.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/minimize.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x/minimize.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/B.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/B.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/B.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/B.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/BL.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/BL.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/BL.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/BL.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/BR.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/BR.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/BR.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/BR.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/L.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/L.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/L.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/L.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/R.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/R.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/R.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/R.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/T.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/T.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/T.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/T.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/TL.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/TL.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/TL.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/TL.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/TR.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/TR.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/TR.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/TR.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/bg.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/bg.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/bg.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/bg.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/close.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/close.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/close.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/close.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/maximize.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/maximize.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/maximize.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/maximize.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/minimize.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/minimize.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/minimize.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/mac_os_x_dialog/minimize.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_left.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_left.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_left.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_left.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_mid.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_mid.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_mid.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_mid.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_right.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_right.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_right.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/bottom_right.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/center_left.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/center_left.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/center_left.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/center_left.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/center_right.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/center_right.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/center_right.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/center_right.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/close.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/close.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/close.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/close.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/minimize.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/minimize.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/minimize.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/minimize.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/overlay.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/overlay.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/overlay.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/overlay.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_left.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_left.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_left.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_left.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_mid.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_mid.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_mid.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_mid.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_right.png b/app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_right.png similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_right.png rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/nuncio/top_right.png diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread.css b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread.css similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread.css rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread.css diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-left-c.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-left-c.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-left-c.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-left-c.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-middle.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-middle.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-middle.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-middle.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-right-c.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-right-c.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-right-c.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/bottom-right-c.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/button-close-focus.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/button-close-focus.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/button-close-focus.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/button-close-focus.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/button-max-focus.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/button-max-focus.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/button-max-focus.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/button-max-focus.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/button-min-focus.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/button-min-focus.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/button-min-focus.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/button-min-focus.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/frame-left.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/frame-left.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/frame-left.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/frame-left.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/frame-right.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/frame-right.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/frame-right.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/frame-right.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/left-top.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/left-top.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/left-top.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/left-top.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/right-top.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/right-top.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/right-top.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/right-top.gif diff --git a/public/stylesheets/windows_js_1.3/documentation/themes/spread/top-middle.gif b/app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/top-middle.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/documentation/themes/spread/top-middle.gif rename to app/assets/stylesheets/windows_js_1.3/documentation/themes/spread/top-middle.gif diff --git a/public/stylesheets/windows_js_1.3/helper/prototype_window_class_helper.rb b/app/assets/stylesheets/windows_js_1.3/helper/prototype_window_class_helper.rb similarity index 100% rename from public/stylesheets/windows_js_1.3/helper/prototype_window_class_helper.rb rename to app/assets/stylesheets/windows_js_1.3/helper/prototype_window_class_helper.rb diff --git a/public/stylesheets/windows_js_1.3/javascripts/debug.js b/app/assets/stylesheets/windows_js_1.3/javascripts/debug.js similarity index 100% rename from public/stylesheets/windows_js_1.3/javascripts/debug.js rename to app/assets/stylesheets/windows_js_1.3/javascripts/debug.js diff --git a/public/stylesheets/windows_js_1.3/javascripts/effects.js b/app/assets/stylesheets/windows_js_1.3/javascripts/effects.js similarity index 100% rename from public/stylesheets/windows_js_1.3/javascripts/effects.js rename to app/assets/stylesheets/windows_js_1.3/javascripts/effects.js diff --git a/public/stylesheets/windows_js_1.3/javascripts/extended_debug.js b/app/assets/stylesheets/windows_js_1.3/javascripts/extended_debug.js similarity index 100% rename from public/stylesheets/windows_js_1.3/javascripts/extended_debug.js rename to app/assets/stylesheets/windows_js_1.3/javascripts/extended_debug.js diff --git a/public/stylesheets/windows_js_1.3/javascripts/prototype.js b/app/assets/stylesheets/windows_js_1.3/javascripts/prototype.js similarity index 100% rename from public/stylesheets/windows_js_1.3/javascripts/prototype.js rename to app/assets/stylesheets/windows_js_1.3/javascripts/prototype.js diff --git a/public/stylesheets/windows_js_1.3/javascripts/tooltip.js b/app/assets/stylesheets/windows_js_1.3/javascripts/tooltip.js similarity index 100% rename from public/stylesheets/windows_js_1.3/javascripts/tooltip.js rename to app/assets/stylesheets/windows_js_1.3/javascripts/tooltip.js diff --git a/public/stylesheets/windows_js_1.3/javascripts/window_effects.js b/app/assets/stylesheets/windows_js_1.3/javascripts/window_effects.js similarity index 100% rename from public/stylesheets/windows_js_1.3/javascripts/window_effects.js rename to app/assets/stylesheets/windows_js_1.3/javascripts/window_effects.js diff --git a/public/stylesheets/windows_js_1.3/javascripts/window_ext.js b/app/assets/stylesheets/windows_js_1.3/javascripts/window_ext.js similarity index 100% rename from public/stylesheets/windows_js_1.3/javascripts/window_ext.js rename to app/assets/stylesheets/windows_js_1.3/javascripts/window_ext.js diff --git a/public/stylesheets/windows_js_1.3/samples/constraint.html b/app/assets/stylesheets/windows_js_1.3/samples/constraint.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/constraint.html rename to app/assets/stylesheets/windows_js_1.3/samples/constraint.html diff --git a/public/stylesheets/windows_js_1.3/samples/dialog.html b/app/assets/stylesheets/windows_js_1.3/samples/dialog.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/dialog.html rename to app/assets/stylesheets/windows_js_1.3/samples/dialog.html diff --git a/public/stylesheets/windows_js_1.3/samples/dialog_ajax.html b/app/assets/stylesheets/windows_js_1.3/samples/dialog_ajax.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/dialog_ajax.html rename to app/assets/stylesheets/windows_js_1.3/samples/dialog_ajax.html diff --git a/public/stylesheets/windows_js_1.3/samples/inframe.html b/app/assets/stylesheets/windows_js_1.3/samples/inframe.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/inframe.html rename to app/assets/stylesheets/windows_js_1.3/samples/inframe.html diff --git a/public/stylesheets/windows_js_1.3/samples/inset.html b/app/assets/stylesheets/windows_js_1.3/samples/inset.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/inset.html rename to app/assets/stylesheets/windows_js_1.3/samples/inset.html diff --git a/public/stylesheets/windows_js_1.3/samples/multi_modal.html b/app/assets/stylesheets/windows_js_1.3/samples/multi_modal.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/multi_modal.html rename to app/assets/stylesheets/windows_js_1.3/samples/multi_modal.html diff --git a/public/stylesheets/windows_js_1.3/samples/oldFirstSampleCode.html b/app/assets/stylesheets/windows_js_1.3/samples/oldFirstSampleCode.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/oldFirstSampleCode.html rename to app/assets/stylesheets/windows_js_1.3/samples/oldFirstSampleCode.html diff --git a/public/stylesheets/windows_js_1.3/samples/openInside.html b/app/assets/stylesheets/windows_js_1.3/samples/openInside.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/openInside.html rename to app/assets/stylesheets/windows_js_1.3/samples/openInside.html diff --git a/public/stylesheets/windows_js_1.3/samples/parent.html b/app/assets/stylesheets/windows_js_1.3/samples/parent.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/parent.html rename to app/assets/stylesheets/windows_js_1.3/samples/parent.html diff --git a/public/stylesheets/windows_js_1.3/samples/popup_open.html b/app/assets/stylesheets/windows_js_1.3/samples/popup_open.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/popup_open.html rename to app/assets/stylesheets/windows_js_1.3/samples/popup_open.html diff --git a/public/stylesheets/windows_js_1.3/samples/rico/index.html b/app/assets/stylesheets/windows_js_1.3/samples/rico/index.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/rico/index.html rename to app/assets/stylesheets/windows_js_1.3/samples/rico/index.html diff --git a/public/stylesheets/windows_js_1.3/samples/rico/properties_1.gif b/app/assets/stylesheets/windows_js_1.3/samples/rico/properties_1.gif similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/rico/properties_1.gif rename to app/assets/stylesheets/windows_js_1.3/samples/rico/properties_1.gif diff --git a/public/stylesheets/windows_js_1.3/samples/rico/rico.css b/app/assets/stylesheets/windows_js_1.3/samples/rico/rico.css similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/rico/rico.css rename to app/assets/stylesheets/windows_js_1.3/samples/rico/rico.css diff --git a/public/stylesheets/windows_js_1.3/samples/rico/rico_change.js b/app/assets/stylesheets/windows_js_1.3/samples/rico/rico_change.js similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/rico/rico_change.js rename to app/assets/stylesheets/windows_js_1.3/samples/rico/rico_change.js diff --git a/public/stylesheets/windows_js_1.3/samples/tooltips/tooltip.html b/app/assets/stylesheets/windows_js_1.3/samples/tooltips/tooltip.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/tooltips/tooltip.html rename to app/assets/stylesheets/windows_js_1.3/samples/tooltips/tooltip.html diff --git a/public/stylesheets/windows_js_1.3/samples/tooltips/tooltip_ajax.html b/app/assets/stylesheets/windows_js_1.3/samples/tooltips/tooltip_ajax.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/tooltips/tooltip_ajax.html rename to app/assets/stylesheets/windows_js_1.3/samples/tooltips/tooltip_ajax.html diff --git a/public/stylesheets/windows_js_1.3/samples/tooltips/tooltip_url.html b/app/assets/stylesheets/windows_js_1.3/samples/tooltips/tooltip_url.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/tooltips/tooltip_url.html rename to app/assets/stylesheets/windows_js_1.3/samples/tooltips/tooltip_url.html diff --git a/public/stylesheets/windows_js_1.3/samples/window_key.html b/app/assets/stylesheets/windows_js_1.3/samples/window_key.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/window_key.html rename to app/assets/stylesheets/windows_js_1.3/samples/window_key.html diff --git a/public/stylesheets/windows_js_1.3/samples/window_key_url_content.html b/app/assets/stylesheets/windows_js_1.3/samples/window_key_url_content.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/window_key_url_content.html rename to app/assets/stylesheets/windows_js_1.3/samples/window_key_url_content.html diff --git a/public/stylesheets/windows_js_1.3/samples/window_store.html b/app/assets/stylesheets/windows_js_1.3/samples/window_store.html similarity index 100% rename from public/stylesheets/windows_js_1.3/samples/window_store.html rename to app/assets/stylesheets/windows_js_1.3/samples/window_store.html diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index 06dcbf205..6b75dff5a 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -7,7 +7,7 @@ class Api::BaseController < ActionController::Base protect_from_forgery with: :null_session # before_action :destroy_session <-- Rails 4 - before_filter :destroy_session + before_action :destroy_session def destroy_session request.session_options[:skip] = true @@ -47,7 +47,7 @@ def bad_url # clause "key = value" is replaced by "key::text ~ value*", where "value*" is # "value" with the tilde removed. def query(model, params) - where_params = params.slice(*model.column_names) + where_params = params.permit!.to_hash.slice(*model.column_names) limit = nil if params.has_key? "limit" @@ -129,7 +129,7 @@ def fuzzy_match_restrictions(model_or_relation, where_params) # remove these from where_params where_params.delete_if { |k, v| fuzzy_params.has_key?(k) } - kv_pairs = fuzzy_params.to_a + kv_pairs = fuzzy_params.to_unsafe_h.to_a where_clause_array = kv_pairs.map { |kv| "#{kv[0]}::text ~* ?" } where_clause = where_clause_array.join(" AND ") diff --git a/app/controllers/api/v1/base_controller.rb b/app/controllers/api/v1/base_controller.rb index 2a88c72ec..a417fae24 100644 --- a/app/controllers/api/v1/base_controller.rb +++ b/app/controllers/api/v1/base_controller.rb @@ -3,8 +3,8 @@ class Api::V1::BaseController < Api::BaseController include ApiAuthenticationSystem - before_filter :set_content_type # IMPORTANT: Run this filter first! - before_filter :login_required + before_action :set_content_type # IMPORTANT: Run this filter first! + before_action :login_required NO_CONSTRAINT = lambda { |value| true } diff --git a/app/controllers/api/v1/traits_controller.rb b/app/controllers/api/v1/traits_controller.rb index 9d5221092..e38c3bd93 100644 --- a/app/controllers/api/v1/traits_controller.rb +++ b/app/controllers/api/v1/traits_controller.rb @@ -38,7 +38,7 @@ def create end create_from_xml_string(xml_data) - render status: 201, content_type: "application/xml" + render status: 201 rescue Nokogiri::XML::SyntaxError, InvalidDocument, InvalidData, Yajl::ParseError, Api::CsvHandler::BadHeading diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index cbd8e08ef..fa43257db 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -24,8 +24,7 @@ class ApplicationController < ActionController::Base flash[:error] = e.message end - - redirect_to :back + redirect_back(fallback_location: root_path) end # Be sure to include AuthenticationSystem in Application Controller instead @@ -117,7 +116,7 @@ def log_searches(m, arg = params[:search]) search_info += "\nsearch string: \"" + (params['search'] || "") + "\"" search_info += "\nformat: " + (params['format'] || 'html') search_info += "\nSQL query: " + sql # method_object.call(arg).send(additional_method).to_sql - search_info += "\nall parameters: " + params.inspect + search_info += "\nall parameters: " + params.permit!.inspect logger.info(search_info) @@ -170,7 +169,7 @@ def handle_constraint_violations(e) logger.info(e) match = e.message.match /The value of .*? for .*? .*? must be between .*? and .*?\./ flash[:error] = match && match[0] || e.message - redirect_to :back + redirect_back(fallback_location: root_path) end # Given a model class, a list of columns (attributes) of the model, diff --git a/app/controllers/bulk_upload_controller.rb b/app/controllers/bulk_upload_controller.rb index 198c48f04..55ebbc76d 100644 --- a/app/controllers/bulk_upload_controller.rb +++ b/app/controllers/bulk_upload_controller.rb @@ -44,12 +44,12 @@ # of the session variable. class BulkUploadController < ApplicationController - before_filter :login_required - before_filter :record_stage - before_filter :clear_session_data, only: :start_upload - before_filter :valid_file_required, only: [ :choose_global_data_values, :confirm_data, :insert_data ] + before_action :login_required + before_action :record_stage + before_action :clear_session_data, only: :start_upload + before_action :valid_file_required, only: [ :choose_global_data_values, :confirm_data, :insert_data ] - after_filter :record_bulk_upload_citation + after_action :record_bulk_upload_citation private @@ -207,7 +207,7 @@ def choose_global_citation def display_csv_file uploaded_io = params["CSV file"] - if uploaded_io + if !uploaded_io.blank? # we got here via the "upload file" button @data_set = BulkUploadDataSet.new(session, uploaded_io) elsif session[:csvpath] diff --git a/app/controllers/citations_controller.rb b/app/controllers/citations_controller.rb index 8d188b9dc..415e49973 100644 --- a/app/controllers/citations_controller.rb +++ b/app/controllers/citations_controller.rb @@ -1,6 +1,6 @@ class CitationsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction require 'csv' diff --git a/app/controllers/citations_sites_controller.rb b/app/controllers/citations_sites_controller.rb index da9bd4e3b..9d442b342 100644 --- a/app/controllers/citations_sites_controller.rb +++ b/app/controllers/citations_sites_controller.rb @@ -1,5 +1,5 @@ class CitationsSitesController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] require 'csv' diff --git a/app/controllers/citations_treatments_controller.rb b/app/controllers/citations_treatments_controller.rb index f0ddd02df..9f1b48c2b 100644 --- a/app/controllers/citations_treatments_controller.rb +++ b/app/controllers/citations_treatments_controller.rb @@ -1,5 +1,5 @@ class CitationsTreatmentsController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] require 'csv' diff --git a/app/controllers/covariates_controller.rb b/app/controllers/covariates_controller.rb index 4a160add1..7ef6845ec 100644 --- a/app/controllers/covariates_controller.rb +++ b/app/controllers/covariates_controller.rb @@ -1,5 +1,5 @@ class CovariatesController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction # GET /covariates diff --git a/app/controllers/cultivars_controller.rb b/app/controllers/cultivars_controller.rb index ec3aa5654..f8b4f28c8 100644 --- a/app/controllers/cultivars_controller.rb +++ b/app/controllers/cultivars_controller.rb @@ -1,5 +1,5 @@ class CultivarsController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] helper_method :sort_column, :sort_direction require 'csv' diff --git a/app/controllers/dbfiles_controller.rb b/app/controllers/dbfiles_controller.rb index 14a74ab83..92f2c2983 100644 --- a/app/controllers/dbfiles_controller.rb +++ b/app/controllers/dbfiles_controller.rb @@ -1,6 +1,6 @@ class DbfilesController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction require 'csv' @@ -34,12 +34,12 @@ def unlink respond_to do |format| if dbfile.save flash[:notice] = "File unlinked" - format.html { redirect_to :back } + format.html { redirect_back(fallback_location: root_path) } format.xml { render :xml => 'File unlinked' } format.json { render :json => 'File unlinked' } else flash[:notice] = "File not removed" - format.html {redirect_to :back } + format.html {redirect_back(fallback_location: root_path) } format.xml { render :xml => 'File not removed' } format.json { render :json => 'File not removed' } end diff --git a/app/controllers/ensembles_controller.rb b/app/controllers/ensembles_controller.rb index e956a1090..96f27175f 100644 --- a/app/controllers/ensembles_controller.rb +++ b/app/controllers/ensembles_controller.rb @@ -1,6 +1,6 @@ class EnsemblesController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction # GET /ensembles diff --git a/app/controllers/entities_controller.rb b/app/controllers/entities_controller.rb index a147fef19..6486079bd 100644 --- a/app/controllers/entities_controller.rb +++ b/app/controllers/entities_controller.rb @@ -1,7 +1,7 @@ class EntitiesController < ApplicationController require 'will_paginate/array' - before_filter :login_required + before_action :login_required # GET /entitys # GET /entitys.xml diff --git a/app/controllers/experiments_controller.rb b/app/controllers/experiments_controller.rb index ca7817515..c63a63392 100644 --- a/app/controllers/experiments_controller.rb +++ b/app/controllers/experiments_controller.rb @@ -1,6 +1,6 @@ class ExperimentsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction # GET /experiments diff --git a/app/controllers/formats_controller.rb b/app/controllers/formats_controller.rb index 8a6a3b2fc..edfe78dad 100644 --- a/app/controllers/formats_controller.rb +++ b/app/controllers/formats_controller.rb @@ -1,18 +1,17 @@ class FormatsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction def rem_formats_variables - @formats_variable = FormatsVariable.find(params[:id]) - @format = @formats_variable.format + formats_variable = FormatsVariable.find(params[:id]) + @format = formats_variable.format + formats_variable.destroy - render :update do |page| - if @formats_variable.destroy - page.replace_html 'edit_formats_variables', :partial => 'edit_formats_variables' - else - page.replace_html 'edit_formats_variables', :partial => 'edit_formats_variables' - end + respond_to do |format| + format.js { + render "edit_formats_variables", layout: false + } end end @@ -23,8 +22,10 @@ def add_formats_variables formats_variable.variable = Variable.find(params[:variable_id]) formats_variable.save - render :update do |page| - page.replace_html 'edit_formats_variables', :partial => 'edit_formats_variables' + respond_to do |format| + format.js { + render "edit_formats_variables", layout: false + } end end @@ -33,8 +34,10 @@ def edit_formats_variables @format = formats_variable.format formats_variable.update_attributes(params[:formats_variable]) - render :update do |page| - page.replace_html 'edit_formats_variables', :partial => 'edit_formats_variables' + respond_to do |format| + format.js { + render layout: false + } end end diff --git a/app/controllers/inputs_controller.rb b/app/controllers/inputs_controller.rb index 2798af258..5b5688bed 100644 --- a/app/controllers/inputs_controller.rb +++ b/app/controllers/inputs_controller.rb @@ -1,6 +1,6 @@ class InputsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_direction, :sort_column # general autocompletion @@ -69,9 +69,10 @@ def edit_inputs_files @files = DBFile.where(search_cond).select("id, file_name").page(params[:page]) end - render :update do |page| - page.replace_html :files_index_table, :partial => "edit_inputs_files_table" - page.replace_html :files_search_term, search + respond_to do |format| + format.js { + render layout: false, locals: { search: search } + } end end diff --git a/app/controllers/inputs_runs_controller.rb b/app/controllers/inputs_runs_controller.rb index 6c244eb2d..5bb2237cc 100644 --- a/app/controllers/inputs_runs_controller.rb +++ b/app/controllers/inputs_runs_controller.rb @@ -1,5 +1,5 @@ class InputsRunsController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] require 'csv' diff --git a/app/controllers/likelihoods_controller.rb b/app/controllers/likelihoods_controller.rb index d0133eab6..f412ac12c 100644 --- a/app/controllers/likelihoods_controller.rb +++ b/app/controllers/likelihoods_controller.rb @@ -1,6 +1,6 @@ class LikelihoodsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction # GET /likelihoods diff --git a/app/controllers/machines_controller.rb b/app/controllers/machines_controller.rb index 0f7dae1b1..ad125b4a0 100644 --- a/app/controllers/machines_controller.rb +++ b/app/controllers/machines_controller.rb @@ -1,6 +1,6 @@ class MachinesController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction # GET /machines diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 43df41b40..596a3a15c 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -1,5 +1,5 @@ class ManagementsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction require 'csv' diff --git a/app/controllers/managements_treatments_controller.rb b/app/controllers/managements_treatments_controller.rb index b53abdd58..d6d609694 100644 --- a/app/controllers/managements_treatments_controller.rb +++ b/app/controllers/managements_treatments_controller.rb @@ -1,5 +1,5 @@ class ManagementsTreatmentsController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] require 'csv' diff --git a/app/controllers/methods_controller.rb b/app/controllers/methods_controller.rb index 7a4fd5837..5666682a9 100644 --- a/app/controllers/methods_controller.rb +++ b/app/controllers/methods_controller.rb @@ -1,7 +1,7 @@ # coding: utf-8 class MethodsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction # This action acts as a _source_ for the jQuery UI autocompletion widgets on diff --git a/app/controllers/models_controller.rb b/app/controllers/models_controller.rb index 48bea5e8a..c81ca9d24 100644 --- a/app/controllers/models_controller.rb +++ b/app/controllers/models_controller.rb @@ -1,6 +1,6 @@ class ModelsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction def edit_models_files @@ -52,9 +52,11 @@ def edit_models_files @files = DBFile.where(search_cond).select("id,file_name").page(params[:page]) end - render :update do |page| - page.replace_html :files_index_table, :partial => "edit_models_files_table" - page.replace_html :files_search_term, search + + respond_to do |format| + format.js { + render layout: false, locals: { search: search } + } end end diff --git a/app/controllers/modeltypes_controller.rb b/app/controllers/modeltypes_controller.rb index 2c4ae3d11..9ce1962c6 100644 --- a/app/controllers/modeltypes_controller.rb +++ b/app/controllers/modeltypes_controller.rb @@ -1,18 +1,18 @@ class ModeltypesController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction def remove_modeltypes_format @modeltypes_format = ModeltypesFormat.find(params[:id]) @modeltype = @modeltypes_format.modeltype - render :update do |page| - if @modeltypes_format.destroy - page.replace_html 'edit_formats', :partial => 'edit_formats' - else - page.replace_html 'edit_formats', :partial => 'edit_formats' - end + @modeltypes_format.destroy + + respond_to do |format| + format.js { + render "edit_modeltypes_format", layout: false + } end end @@ -23,8 +23,10 @@ def add_modeltypes_format @modeltypes_format.format = Format.find(params[:format_id]) @modeltypes_format.save - render :update do |page| - page.replace_html 'edit_formats', :partial => 'edit_formats' + respond_to do |format| + format.js { + render "edit_modeltypes_format", layout: false + } end end @@ -33,8 +35,10 @@ def edit_modeltypes_format @modeltype = @modeltypes_format.modeltype @modeltypes_format.update_attributes(params[:modeltypes_format]) - render :update do |page| - page.replace_html 'edit_formats', :partial => 'edit_formats' + respond_to do |format| + format.js { + render layout: false + } end end diff --git a/app/controllers/pfts_controller.rb b/app/controllers/pfts_controller.rb index 6ac964bd3..cbea9d48a 100644 --- a/app/controllers/pfts_controller.rb +++ b/app/controllers/pfts_controller.rb @@ -1,5 +1,5 @@ class PftsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction require 'csv' @@ -96,9 +96,10 @@ def edit2_pfts_species @species = Specie.where(search_cond).select("id, scientificname").page(params[:page]) end - render :update do |page| - page.replace_html :index_table, :partial => "edit2_pfts_species_table" - page.replace_html :search_term, search + respond_to do |format| + format.js { + render layout: false, locals: { search: search } + } end end diff --git a/app/controllers/pfts_priors_controller.rb b/app/controllers/pfts_priors_controller.rb index a03570bb0..58b2d19b1 100644 --- a/app/controllers/pfts_priors_controller.rb +++ b/app/controllers/pfts_priors_controller.rb @@ -1,5 +1,5 @@ class PftsPriorsController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] require 'csv' diff --git a/app/controllers/pfts_species_controller.rb b/app/controllers/pfts_species_controller.rb index 2cfacc78b..5361a64f5 100644 --- a/app/controllers/pfts_species_controller.rb +++ b/app/controllers/pfts_species_controller.rb @@ -1,5 +1,5 @@ class PftsSpeciesController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] require 'csv' diff --git a/app/controllers/posteriors_controller.rb b/app/controllers/posteriors_controller.rb index 96559de37..78fec86c2 100644 --- a/app/controllers/posteriors_controller.rb +++ b/app/controllers/posteriors_controller.rb @@ -1,6 +1,6 @@ class PosteriorsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction # GET /posteriors diff --git a/app/controllers/priors_controller.rb b/app/controllers/priors_controller.rb index e09c67ec1..5da91b59a 100644 --- a/app/controllers/priors_controller.rb +++ b/app/controllers/priors_controller.rb @@ -1,5 +1,5 @@ class PriorsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction require 'csv' @@ -107,9 +107,15 @@ def preview # On ebi-forecast, the version of R we want to use is in # /usr/local/R-3.1.0/bin, so put it first in the path so that that version # gets used if it exists: - ENV["PATH"] = "/usr/local/R-3.1.0/bin:/usr/bin:/usr/local/bin" - o, error_output, s = Open3.capture3("R", "--vanilla", "--args", imgfile, distname, aparam.to_s, bparam.to_s, n.to_s, - stdin_data: Rails.root.join('script/previewhelp.R').read) + path_additions = "/usr/local/R-3.1.0/bin:" + + o, error_output, s = Open3.capture3( + {"PATH" => path_additions + ENV["PATH"]}, + "R", "--vanilla", "--args", imgfile, distname, + aparam.to_s, bparam.to_s, n.to_s, + stdin_data: Rails.root.join('script/previewhelp.R').read + ) + else error_output = sprintf("Invalid argument set:\n\timgfile = %s\n\tdistname = %s\n\taparam = %s\n\tbparam = %s\n\tn = %s\n", imgfile, distname, aparam, bparam, n) diff --git a/app/controllers/runs_controller.rb b/app/controllers/runs_controller.rb index be5425bbf..d11e54441 100644 --- a/app/controllers/runs_controller.rb +++ b/app/controllers/runs_controller.rb @@ -1,6 +1,6 @@ class RunsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction # GET /runs diff --git a/app/controllers/sitegroups_controller.rb b/app/controllers/sitegroups_controller.rb index 55ecf4666..1b69108f6 100644 --- a/app/controllers/sitegroups_controller.rb +++ b/app/controllers/sitegroups_controller.rb @@ -1,6 +1,6 @@ class SitegroupsController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction def edit_sitegroups_sites @@ -52,9 +52,10 @@ def edit_sitegroups_sites @sites = Site.where(search_cond).paginate :page => params[:page] end - render :update do |page| - page.replace_html :sites_index_table, :partial => "edit_sitegroups_sites_table" - page.replace_html :sites_search_term, search + respond_to do |format| + format.js { + render layout: false, locals: { search: search } + } end end diff --git a/app/controllers/sites_controller.rb b/app/controllers/sites_controller.rb index 782316158..38902d794 100644 --- a/app/controllers/sites_controller.rb +++ b/app/controllers/sites_controller.rb @@ -1,5 +1,5 @@ class SitesController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] helper_method :sort_column, :sort_direction layout 'application', :except => [ :map ] @@ -15,13 +15,16 @@ def linked if exists @citation.sites.delete(@site) + @linking = false else @citation.sites<<@site + @linking = true end - render :update do |page| - page.replace_html "site-#{ @site.id }", "" - page.replace_html "linked", :partial => 'linked' + respond_to do |format| + format.js { + render layout: false + } end end diff --git a/app/controllers/species_controller.rb b/app/controllers/species_controller.rb index 03a624afb..3a616c5e2 100644 --- a/app/controllers/species_controller.rb +++ b/app/controllers/species_controller.rb @@ -2,7 +2,7 @@ # RAILS3 added above encoding (actually this is needed with Ruby 1.9.2) class SpeciesController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] helper_method :sort_column, :sort_direction require 'csv' @@ -51,29 +51,16 @@ def species_search @species = Specie.where('LOWER(scientificname) LIKE LOWER(:query) OR LOWER(genus) LIKE LOWER(:query) OR LOWER("AcceptedSymbol") LIKE LOWER(:query) OR LOWER(commonname) LIKE LOWER(:query)' + ' OR LOWER(scientificname) LIKE LOWER(:query2) OR LOWER(genus) LIKE LOWER(:query2) OR LOWER("AcceptedSymbol") LIKE LOWER(:query2) OR LOWER(commonname) LIKE LOWER(:query2)', {:query => @query + "%", :query2 => "%" + @query + "%"}).limit(100).order("scientificname") - @species.uniq! + @species.distinct! else - @species = [] + @species = Specie.none end - render :update do |page| - if params[:cont] == "species" - page.replace_html "search_results", :partial => 'search', :object => @species - else - if @species.empty? - page.replace_html "#{params[:cont]}_specie_id", "" - else - page.replace_html "#{params[:cont]}_specie_id", options_from_collection_for_select(@species, :id, :select_default) - end - end - if params[:symbol].length > 3 - page.replace_html "results", "

Search results for #{sanitize(@query)}

" - else - page.replace_html "results", "

Search must be longer then 3 characters

" - end + respond_to do |format| + format.js { + render layout: false + } end - -# render :partial => 'species/species_search' end diff --git a/app/controllers/traits_controller.rb b/app/controllers/traits_controller.rb index 6b873e369..9e72fc604 100644 --- a/app/controllers/traits_controller.rb +++ b/app/controllers/traits_controller.rb @@ -1,5 +1,5 @@ class TraitsController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] helper_method :sort_column, :sort_direction require 'csv' @@ -11,6 +11,7 @@ def trait_search @trait = Trait.all_limited(current_user). includes([:specie,:variable,:cultivar,:treatment,:citation]). + references([:specie,:variable,:treatment,:citation]). where(%q{ species.scientificname LIKE :query OR species.genus LIKE :query OR species."AcceptedSymbol" LIKE :query @@ -24,52 +25,71 @@ def trait_search @trait = nil end - - render :update do |page| - if params[:symbol].length > 3 - if @trait.length == 100 - page.replace_html "results", "

Search results for #{@query}. More then 100 results, please narrow your search.

" - else - page.replace_html "results", "

Search results for #{@query}

" - end - else - page.replace_html "results", "

Search must be longer then 3 characters

" - end - if @trait.nil? - page.replace_html "#{params[:cont]}_trait_id", "" + if params[:symbol].length > 3 + if @trait.length == 100 + @message = "

Search results for #{@query}. More then 100 results, please narrow your search.

" else - page.replace_html "#{params[:cont]}_trait_id", options_from_collection_for_select(@trait, :id, :select_default) + @message = "

Search results for #{@query}

" end + else + @message = "

Search must be longer then 3 characters

" + end + + if @trait.nil? + @options = "" + else + @options = ActionController::Base.helpers.options_from_collection_for_select(@trait, :id, :select_default) end + respond_to do |format| + format.js { + render layout: false + } + end end def access_level t = Trait.all_limited(current_user).find(params[:id]) - + t.current_user = current_user t.access_level = params[:trait][:access_level] if t - render :update do |page| - if t and t.save - page['access_level-'+t.id.to_s].visual_effect :pulsate - else - page['access_level-'+t.id.to_s].visual_effect :shake - end + @element_id = "access_level-#{t.id}" + + if t && t.save + @saved = true + else + @saved = false + end + + respond_to do |format| + format.js { + render layout: false + } end end def checked - t = Trait.all_limited(current_user).find(params[:id]) - t.current_user = current_user - t.checked = params[:trait][:checked] if t + id = params[:id] + t = Trait.all_limited(current_user).find_by_id(id) - render :update do |page| - if t and t.save - page.replace_html 'checked_notify-'+t.id.to_s, "
Updated to #{t.checked}" - else - page.replace_html 'checked_notify-'+t.id.to_s, "
Something went wrong, not updated!" - end + if t + t.current_user = current_user + t.checked = params[:trait][:checked] + end + + @element_id = "checked_notify-#{id}" + + if t && t.save + @message = "
Updated to #{t.checked}" + else + @message = "
Something went wrong, not updated!" + end + + respond_to do |format| + format.js { + render layout: false + } end end @@ -209,7 +229,7 @@ def update # these "saved" covariates are rolled back if any save errors occur saved_covariates << @covariate else - @trait.errors.add(:covariates, (@covariate.errors.get(:level))[0]) + @trait.errors.add(:covariates, (@covariate.errors[:level])[0]) end end end @@ -254,11 +274,10 @@ def unlink_covariate @trait = Trait.all_limited(current_user).find(params[:id]) Covariate.find(params[:covariate]).destroy respond_to do |format| - format.html { - render :action =>"edit" do |page| - page.replace_html "edit_covariates_traits", :partial =>"edit_covariates_traits" - end + format.js { + render layout: false } + format.html { head :ok } format.xml { head :ok } format.csv { head :ok } end diff --git a/app/controllers/treatments_controller.rb b/app/controllers/treatments_controller.rb index b9aac1311..1ff2b1a56 100644 --- a/app/controllers/treatments_controller.rb +++ b/app/controllers/treatments_controller.rb @@ -1,7 +1,7 @@ require 'will_paginate/array' class TreatmentsController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] helper_method :sort_column, :sort_direction @@ -50,24 +50,17 @@ def create_new_management @management = Management.new(params[:management]) - render :update do |page| - if @management.save - @treatment.managements << @management - flash[:notice] = "Management was successfully created" - page.replace_html 'edit_managements_treatments', :partial => 'edit_managements_treatments' - - # After we've added the newly-created management to the collection, we - # have to pass an unsaved copy of it to the 'new_management' partial so the - # form it contains doesn't try to to a PUT instead of a POST: - @management = @management.dup + if @management.save + @treatment.managements << @management + flash.now[:notice] = "Management was successfully created" + else + flash.now[:error] = "Management was not created" + end - page.replace_html 'new_management', :partial => 'new_management' - page.call 'showHide', 'new_management' - else - flash[:notice] = "Management was not created" - page.replace_html 'edit_managements_treatments', :partial => 'edit_managements_treatments' - page.replace_html 'new_management', :partial => 'new_management' - end + respond_to do |format| + format.js { + render layout: false, locals: { flash: flash } + } end end @@ -75,12 +68,12 @@ def rem_managements_treatments @treatment = Treatment.find(params[:id]) @management = Management.find(params[:management]) - render :update do |page| - if @management.treatments.delete(@treatment) - page.replace_html 'edit_managements_treatments', :partial => 'edit_managements_treatments' - else - page.replace_html 'edit_managements_treatments', :partial => 'edit_managements_treatments' - end + @management.treatments.delete(@treatment) + + respond_to do |format| + format.js { + render "edit_managements_treatments", layout: false + } end end @@ -88,17 +81,18 @@ def edit_managements_treatments @treatment = Treatment.find(params[:id]) - render :update do |page| - if !params[:management].nil? - params[:management][:id].each do |c| - next if c.empty? - @treatment.managements << Management.find(c) - end - page.replace_html 'edit_managements_treatments', :partial => 'edit_managements_treatments' - else - page.replace_html 'edit_managements_treatments', :partial => 'edit_managements_treatments' + if !params[:management].nil? + params[:management][:id].each do |c| + next if c.empty? + @treatment.managements << Management.find(c) end end + + respond_to do |format| + format.js { + render layout: false + } + end end def flag_control @@ -113,12 +107,12 @@ def flag_control respond_to do |format| if @treatment.save flash[:notice] = 'Treatment was successfully updated.' - format.html { redirect_to :back } + format.html { redirect_back(fallback_location: root_path) } format.xml { head :ok } format.csv { head :ok } format.json { head :ok } else - format.html { redirect_to :back } + format.html { redirect_back(fallback_location: root_path) } format.xml { render :xml => @treatment.errors, :status => :unprocessable_entity } format.csv { render :csv => @treatment.errors, :status => :unprocessable_entity } format.json { render :json => @treatment.errors, :status => :unprocessable_entity } diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index d76604555..b2f7fda54 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,7 +1,7 @@ class UsersController < ApplicationController - before_filter :login_required, :except => [:create,:new] - #before_filter :login_required + before_action :login_required, :except => [:create,:new] + helper_method :sort_column, :sort_direction def index diff --git a/app/controllers/variables_controller.rb b/app/controllers/variables_controller.rb index 2e7510635..b02db28c9 100644 --- a/app/controllers/variables_controller.rb +++ b/app/controllers/variables_controller.rb @@ -1,5 +1,5 @@ class VariablesController < ApplicationController - before_filter :login_required + before_action :login_required helper_method :sort_column, :sort_direction require 'csv' diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb index f87094c37..900ab9c0e 100644 --- a/app/controllers/workflows_controller.rb +++ b/app/controllers/workflows_controller.rb @@ -1,5 +1,5 @@ class WorkflowsController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] helper_method :sort_column, :sort_direction require 'csv' diff --git a/app/controllers/yields_controller.rb b/app/controllers/yields_controller.rb index 1aae1a9d5..4d08e5641 100644 --- a/app/controllers/yields_controller.rb +++ b/app/controllers/yields_controller.rb @@ -1,35 +1,50 @@ class YieldsController < ApplicationController - before_filter :login_required, :except => [ :show ] + before_action :login_required, :except => [ :show ] helper_method :sort_column, :sort_direction require 'csv' def checked - y = Yield.all_limited(current_user).find(params[:id]) - - y.checked = params[:y][:checked] + id = params[:id] + y = Yield.all_limited(current_user).find(id) - render :update do |page| - if y and y.save - page.replace_html 'checked_notify-'+y.id.to_s, "
Updated to #{y.checked}" - else - page.replace_html 'checked_notify-'+y.id.to_s, "
Something went wrong, not updated!" - end + if y + y.checked = params[:y][:checked] + end + + @element_id = "checked_notify-#{id}" + binding.pry + if y && y.save + @message = "
Updated to #{y.checked}" + else + @message = "
Something went wrong, not updated!" + end + + respond_to do |format| + format.js { + render layout: false + } end end def access_level y = Yield.all_limited(current_user).find(params[:id]) - y.access_level = params[:yield][:access_level] if y - render :update do |page| - if y and y.save - page['access_level-'+y.id.to_s].visual_effect :pulsate - else - page['access_level-'+y.id.to_s].visual_effect :shake - end + + @element_id = "access_level-#{y.id}" + + if y && y.save + @saved = true + else + @saved = false + end + + respond_to do |format| + format.js { + render layout: false + } end end diff --git a/app/controllers/yieldsviews_controller.rb b/app/controllers/yieldsviews_controller.rb index 99ee39737..b03d920a9 100644 --- a/app/controllers/yieldsviews_controller.rb +++ b/app/controllers/yieldsviews_controller.rb @@ -1,5 +1,5 @@ class YieldsviewsController < ApplicationController - before_filter :login_required + before_action :login_required require 'csv' diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ef633e230..8a5fdc5f2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -44,7 +44,7 @@ def sortable(column, title = nil) title ||= column.titleize css_class = (column == sort_column) ? "current #{sort_direction}" : nil direction = (column == sort_column && sort_direction == "asc") ? "desc" : "asc" - link_to title, params.merge(:sort => column, :direction => direction, :page => nil), {:class => css_class} + link_to title, params.permit(:sort, :direction, :page, :_).merge(:sort => column, :direction => direction, :page => nil), {:class => css_class} end def format_stat(record) @@ -65,7 +65,7 @@ def format_stat(record) # Call this to make a link inside a form that submits the form. def link_to_submit(*args, &block) - link_to_function (block_given? ? capture(&block) : args[0]), "jQuery(this).closest('form').submit()", args.extract_options! + link_to (block_given? ? capture(&block) : args[0]), "#", args.extract_options!.merge(onclick: "jQuery(this).closest('form').submit(); return false") end # Given a FormBuilder object `f`, a string `label`, an SQL table name @@ -157,3 +157,80 @@ def commit_date e = ENV['BETY_GIT_DATE'] e.nil? || e.empty? ? `git log --pretty=format:"%ad" -1` : e end + +# Replacement for the Prototype method of this name. +def observe_field(element_id, **options) + + observed_event = options[:event_name] || "keyup" + + # We assume options has either the key :url or the key :function (but not + # both). + if options.has_key? :url + url = url_for(options[:url]) + connector = url.match(/\?/) ? '&' : '?' + confirmation = options[:confirmation] || "true" + raw( + %Q{} + ).html_safe + else + raw( + %Q{} + ).html_safe + end +end diff --git a/app/models/bulk_upload_data_set.rb b/app/models/bulk_upload_data_set.rb index a6cbd8259..f1367c972 100644 --- a/app/models/bulk_upload_data_set.rb +++ b/app/models/bulk_upload_data_set.rb @@ -1896,7 +1896,7 @@ def get_insertion_data # Get interactively-specified values, or set to empty hash if nil; since we # are going to alter interactively_specified_values, we use clone to make a # copy so that the session value remains as is. - interactively_specified_values = @session["global_values"].clone rescue {} + interactively_specified_values = @session["global_values"].clone rescue ActionController::Parameters.new # TO DO: decide if this code serves any useful purpose: # Double-check that all form fields are were non-empty: @@ -1954,7 +1954,8 @@ def get_insertion_data csv_row_as_hash.merge!(id_values) # Merge the global interactively-specified values into this row: - csv_row_as_hash.merge!(global_values) + # To-Do: Be more specific about which values to permit. + csv_row_as_hash.merge!(global_values.permit!) if csv_row_as_hash.has_key?("SE") # apply rounding to the standard error diff --git a/app/models/experiment.rb b/app/models/experiment.rb index 20bea7b1d..38e7532e8 100644 --- a/app/models/experiment.rb +++ b/app/models/experiment.rb @@ -1,4 +1,5 @@ class Experiment < ActiveRecord::Base + attr_protected [] extend SimpleSearch diff --git a/app/models/modeltypes_format.rb b/app/models/modeltypes_format.rb index a3166b714..a78a8ba2c 100644 --- a/app/models/modeltypes_format.rb +++ b/app/models/modeltypes_format.rb @@ -1,4 +1,6 @@ class ModeltypesFormat < ActiveRecord::Base + attr_protected [] + validates :tag, presence: { message: "tag can't be blank" }, format: { with: /\A[a-z]+\z/, diff --git a/app/views/formats/edit_formats_variables.js.erb b/app/views/formats/edit_formats_variables.js.erb new file mode 100644 index 000000000..2a9651e4d --- /dev/null +++ b/app/views/formats/edit_formats_variables.js.erb @@ -0,0 +1 @@ +jQuery('#edit_formats_variables').html("<%= escape_javascript(render 'edit_formats_variables', format: @format) %>") diff --git a/app/views/inputs/edit_inputs_files.js.erb b/app/views/inputs/edit_inputs_files.js.erb new file mode 100644 index 000000000..f52c48d5a --- /dev/null +++ b/app/views/inputs/edit_inputs_files.js.erb @@ -0,0 +1,3 @@ +jQuery('#files_index_table').html("<%= escape_javascript(render 'edit_inputs_files_table', files: @files, input: @input, searchparam: @searchparam) %>") + +jQuery('#files_search_term').html("<%= search %>") diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index edf8e5b35..450989e8d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -2,7 +2,7 @@ - + <%= if @title then @title else "BETYdb: #{request.env['PATH_INFO']}" end %> @@ -11,17 +11,23 @@ <%= csrf_meta_tag %> + <% if params[:controller] == 'bulk_upload' %> + <%= stylesheet_link_tag 'bulk_upload', media: 'all', 'data-turbolinks-track': 'reload' %> + <% end %> + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + - <%= javascript_include_tag 'lazy/jquery-1.11.0.js' %> - <%= javascript_include_tag 'libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js' %> - <%= javascript_include_tag 'libs/jquery-migrate-1.2.1.js' %> + <%#= javascript_include_tag 'lazy/jquery-1.11.0.js' %> + <%#= javascript_include_tag 'libs/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js' %> + <%#= javascript_include_tag 'libs/jquery-migrate-1.2.1.js' %> - <%= javascript_include_tag 'lazy/jquery-1.7.2.js' %> - <%= javascript_include_tag 'lazy/jquery-ui-1.10.4.min.js' %> - <%= stylesheet_link_tag "jquery-ui-1.10.4.min" %> + <%#= javascript_include_tag 'lazy/jquery-1.7.2.js' %> + <%#= javascript_include_tag 'lazy/jquery-ui-1.10.4.min.js' %> + <%#= stylesheet_link_tag "jquery-ui-1.10.4.min" %> @@ -31,26 +37,26 @@ <% if Rails.env == "production" %> - <%= javascript_include_tag "cache/all" %> + <%#= javascript_include_tag "cache/all" %> <% else %> - <%= javascript_include_tag 'prototype.js' %> - <%= javascript_include_tag 'effects.js' %> - <%= javascript_include_tag 'bootstrap.js' %> - <%= javascript_include_tag 'controls.js' %> - <%= javascript_include_tag 'dragdrop.js' %> - <%= javascript_include_tag 'min.js' %> - <%= javascript_include_tag 'plugins.js' %> - <%= javascript_include_tag 'rails.js' %> - <%= javascript_include_tag 'script.js' %> - <%= javascript_include_tag 'window.js' %> - <%= javascript_include_tag 'application.js' %> + <%#= javascript_include_tag 'prototype.js' %> + <%#= javascript_include_tag 'effects.js' %> + <%#= javascript_include_tag 'bootstrap.js' %> + <%#= javascript_include_tag 'controls.js' %> + <%#= javascript_include_tag 'dragdrop.js' %> + <%#= javascript_include_tag 'min.js' %> + <%#= javascript_include_tag 'plugins.js' %> + <%#= javascript_include_tag 'rails.js' %> + <%#= javascript_include_tag 'script.js' %> + <%#= javascript_include_tag 'window.js' %> + <%#= javascript_include_tag 'application.js' %> <% end %> - <%= javascript_include_tag 'libs/respond.min.js', 'libs/modernizr-2.0.6.min.js' %> + <%#= javascript_include_tag 'libs/respond.min.js', 'libs/modernizr-2.0.6.min.js' %> <%= yield :autocomplete_javascript %> @@ -68,10 +74,10 @@ - - <%= javascript_include_tag 'lazy/simple_search.js' %> - <%= javascript_include_tag 'lazy/application.js' %> + + <%#= javascript_include_tag 'lazy/simple_search.js' %> + <%#= javascript_include_tag 'lazy/application.js' %> <% if params[:controller] == 'sessions' %> <%= javascript_include_tag 'lazy/login' %> @@ -84,8 +90,8 @@ <% end %> - <%= stylesheet_link_tag 'themes/default' %> - <%= stylesheet_link_tag 'themes/alphacube' %> + <%#= stylesheet_link_tag 'themes/default' %> + <%#= stylesheet_link_tag 'themes/alphacube' %>